Skip to main content

Trying to build a roof in Python



  • Peter Januarius

    Just to follow up - this is really about being able to reverse a stair block and position it upside down...etc. Tried all different ways and still can't do it !

  • Danny Support
    Beacon of Knowledge Bug Zapper Support

    Hey there!

    You can try to have the Agent approach from one side, then once they reach the top, have them stop, return to the ground level from the other side, then place the blocks.

    Let me know if that works for you!

  • Peter Januarius

    Yep, after trying everything I also tried this and it worked. One weird thing is when the agent climbs one step and moves forward by one, it looks like it is trying to move forward about 10 times as is goes kind of crazy. It only does this one way. When it comes back it is fine.

    The real tricky thing is can you place stair blocks upside down? I haven't managed to do this in code and can't see how to do it.

    Thanks for your help!

  • Peter Januarius

    We can do it! Using the block data is the trick!

  • Moderator Beacon of Knowledge Super Star

    Yes, great work. It's all about the language (chat commands, block-based code, MakeCode Python, Python Azure Notebook...) and the range of commands in that language. Then you have to find out what the full capabilities are within those commands. One challenge here in the community is that posts can be in different languages, as you saw on your previous post. Really happy you worked it out!


Please sign in to leave a comment.