Skip to main content

How to rotate blocks of stairs in any direction?

Comments

11 comments

  • paul matthews

    I want to learn coding

     

    0
  • nevine asfour

    you can import this link using  Minecraft Education edition 

    https://makecode.com/_bAF4Dyc2eT0y

    I made this code to create  rounded stairs. import the URL in Minecraft education edition and run the code

     

    good luck

    0
  • Debbie Alexander
    Moderator Beacon of Knowledge Super Star

    Ahhh, maybe I was misunderstanding the problem. I thought Sergey Popov wanted to set blocks for stairs down and have them face certain directions. I was getting it together in Python AZNB. =D

    Thanks, nevine asfour - and by the way, that makes quite a staircase!

    0
  • Sergey Popov

    Debbie Alexander,

    Yes. The Agent places the BRICK_STAIRS (for ex) in the same direction that it moves.

    When i use Blocks.place() or blocks.fill the BRICK_STAIRS can be place only in one direction. And i can't change it.

    There are a lot of variations in Javascript like BLOCK_SIDE_FACING_EAST but a can't understand how to use them...

    0
  • nevine asfour

    I misunderstood your requirement thanks debbie for the explanation

    0
  • Debbie Alexander
    Moderator Beacon of Knowledge Super Star

    Okay, well I use Python AZNB, and I came up with this:

    0
  • Jan Van Damme

    Hi Debbie,

    Is that the following?

    world.set("~1~~1",("oak_stairs",1,""))

    Code builder doesn't seem to like this code :/

    Could you type it, io a screenshot? Will make copy-pasting so much easier ;)

    Thanks,

    Jan

    0
  • Moderator Beacon of Knowledge Super Star

    Jan Van Damme I apologize! I never saw your request until just now!

    world.set("~1 ~ ~1",("oak_stairs",1,"")) # There you go! 

    The error was those pesky spaces between the tilde coordinates!

    world.set("~1B~B~1",("oak_stairs",1,""))

    Of course, the is an open space, but it is hard to show that. =]

    0
  • Is there a way to change the direction that stairs are placed when using the /fill command? It seems like it's possible using north/south/east/west directions in brackets in java and bedrock editions. For example, /fill x y z x y z stone_stairs [facing=north]

     

    0
  • Debbie Alexander
    Moderator Beacon of Knowledge Super Star

    Correct me if I am wrong, but I believe that the facing field determines the direction of the entity placing the block, such as an agent or player. In any event, if there is a metadata field available in the command, you could try using the 0-6 values to see if they place different versions of the block! That would be really super cool to know! Take a screenshot and let us know! I'd love to see the commands and the results if it works! Maybe you could share your success with us! (Oh, shoot, I couldn't resist! It works! lol!)

    0
  • Peter Januarius

    Maybe I'm late to the party but the world.set(...) solution above does not work. I just get the following:

    can't find called function.....=> Position:set

    In other worlds there is no such function on the World namespace

    Was there an update by any chance?

    I'll keep digging.

     
    0

Please sign in to leave a comment.