Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1017 Bytes

red3_light.md

File metadata and controls

34 lines (26 loc) · 1017 Bytes

@flyoutOnly true

@hideIteration true

@explicitHints true

Light Power

Step 1

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.

~ tutorialhint

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