Use the cursor to turn on all of the lights. Once all the lights are on the door will open.
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 to select a light and then ||hoc22.turn on||
to turn it on. Using a loop will make the code a lot simplier, but isn't required.
hoc22.cursorMoveOrientationOneUp(1)
hoc22.cursorMoveOrientationOneDown(1)
hoc22.cursorMoveOrientationOneLeft(1)
hoc22.cursorMoveOrientationOneRight(1)
hoc22.toggleLight()
for (let index = 0; index < 2; index++) { }
hoc22.cursorMoveOrientationOneRight(2)
hoc22.toggleLight()
hoc22.cursorMoveOrientationOneRight(2)
hoc22.toggleLight()
minecraft-hoc22=github:sae220/hoc22-ts