Skip to main content

Is it possible to use MakeCode to place a chest and fill it with items?

Comments

8 comments

  • Cathy Cheo-Isaacs

    Hi Brett Girod! Chests and dispensers are not available in code blocks, but you could place a filled chest or dispenser and use code blocks to clone it somewhere in the world. Would that work with what you're thinking?

    1
  • Brett Girod

    Not quite. The goal would be to load a makecode program that instantly generates a chest with a torch above it and a pickaxe inside it. This way, once the program is created, students would be able to use the program again and again in a variety of worlds. 

    0
  • Jack Sullivan

    You could make the agent drop the item into a hopper, where it goes to a chest. then make a hopper and dropper underneath, to drop the items again when needed.

    0
  • Bryan Sanders
    Bug Zapper Beacon of Knowledge Super Star Moderator

    Clever solution -- I will try to work on that. I have not explored using the agent for collecting and dropping.

    0
  • Moderator Beacon of Knowledge Super Star

    Python AZNB to the rescue again!!! I'm telling you folks, Python is where it is at!

    Maybe I should do a recruitment meeting! =]

    world.set("~ ~ ~1","chest")
    world.put_in("~ ~ ~1","glass bottle",1,2)
    2
  • Laylah Bulman

    Debbie Alexander I like th sound of that.  Maybe a python happy hour?

    1
  • Moderator Beacon of Knowledge Super Star

    =] I think I will look into a friend making a picture of the Agent dipping his toe in the water of Python coding! =]

    0
  • Bryan Sanders
    Bug Zapper Beacon of Knowledge Super Star Moderator

    Going to try this!

    0

Please sign in to leave a comment.