Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- while true do
- command = read()
- if command == "light on" then
- redstone.setOutput("bottom",true)
- term.clear()
- term.setCursorPos(1,1)
- write("Lights are now on")
- term.setCursorPos(1,2)
- end
- if command == "light off" then
- redstone.setOutput("bottom",false)
- term.clear()
- term.setCursorPos(1,1)
- write("Lights are now off")
- term.setCursorPos(1,2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement