Use your cursor to build a bridge that can help the Crate Minion reach the button! A staircase up will appear once the Crate Minion has pressed the button.
The included example code is broken, can you fix it? Debug the code by running it to see what it does and then edit it to the correct solution.
Use the ||hoc22.cursor move <direction>||
block combined with ||hoc22.place block||
blocks to create a bridge to the button. The crate minion will walk to the button and press it once a bridge has been built for them.
hoc22.cursorMoveOrientationOneUp(1)
hoc22.cursorMoveOrientationOneDown(1)
hoc22.cursorMoveOrientationOneLeft(1)
hoc22.cursorMoveOrientationOneRight(1)
hoc22.placeBlock()
for (let index = 0; index < 2; index++) { }
hoc22.placeBlock()
hoc22.cursorMoveOrientationOneRight(2)
hoc22.placeBlock()
minecraft-hoc22=github:ReWrite-Media/hoc22-ts