Skip to main content

block names for python notebooks

Comments

3 comments

  • I worked this out. If anyone else needs to know I found this comment in the agent.py file in C:\Program Files (x86)\Microsoft Studios\Minecraft Education Edition\data\python\minecraft_builtins.zip

    To give a block with a non-zero data value, pass a tuple with (name, data_value, components).
     
    I don't know what the components are, but I just gave it an empty string and it worked... here is the code I used:
     
    agent.give(("planks", 1, ""), 64, 2)
    2
  • Moderator Beacon of Knowledge Super Star

    I cannot tell you how much time I have spent trying to find this!!! Nicholas Stebbing  You are a superhero!!!!

    Yippee!!!!!!!!!!!!!!!!!!!!! This changes about 100 of my coding projects!!!!! =] Yippee!!!!!!!!!!!!!

    1
  • amazing!!!! great job 

    0

Please sign in to leave a comment.