Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- term.clear()
- term.setCursorPos(1, 1)
- print("Waiting ...")
- while true do
- event, id, text = os.pullEvent()
- if event == "rednet_message" then
- print(id .. "> " .. text)
- if text == "red_on" then
- redstone.setOutput("left", true)
- sleep(0.1)
- redstone.setOutput("bottom", true)
- end
- if text == "red_off" then
- redstone.setOutput("left", false)
- sleep(0.1)
- redstone.setOutput("bottom", false)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement