Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("open rednet")
- rednet.open("back")
- print("infinitely check for message. NOTE: You have to edit code to see messages from this point!")
- while true do
- rednet_message, id, message, bd = os.pullEvent()
- if message == "order" then
- --check if rednet sent message.
- rs.setOutput("bottom", true)
- --set off the dispenser.
- sleep(1)
- rs.setOutput("bottom", false)
- sleep(10)
- rs.setOutput("bottom", true)
- sleep(1)
- rs.setOutput("bottom", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement