Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- while true do
- e, id, message, protocol = os.pullEvent("rednet_message")
- if (protocol == "toggleDoor") then
- redstone.setAnalogOutput(message, 1)
- os.sleep(0.05)
- redstone.setAnalogOutput(message, 0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement