Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("What would you like me to do?")
- print("I can turn on lights for you!")
- repeat
- print("Type 1, 2, 3, or 4 to select which light you would like to turn on")
- light = read()
- if light == "1" then
- redstone.setOutput("left" ,true)
- end
- if light == "2" then
- redstone.setOutput("back", true)
- end
- if light == "3" then
- redstone.setOutput("right", true)
- end
- if light == "4" then
- redstone.setOutput("front", true)
- end
- if light == "off" then
- redstone.setOutput("front", false)
- redstone.setOutput("left", false)
- redstone.setOutput("right", false)
- redstone.setOutput("back", false)
- end
- until light == "5"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement