Advertisement
Prusias

DoorToggle

Feb 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. rednet.open("top")
  2.  
  3. while true do
  4. e, id, message, protocol = os.pullEvent("rednet_message")
  5. if (protocol == "toggleDoor") then
  6. redstone.setAnalogOutput(message, 1)
  7. os.sleep(0.05)
  8. redstone.setAnalogOutput(message, 0)
  9. end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement