Advertisement
Shaka01

gate receiver

Feb 11th, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. rednet.open("top")
  2. while true do
  3.  
  4. senderID, message, protocol = rednet.receive()
  5.  
  6. if senderID == 20 or senderID == 9 then
  7.     redstone.setOutput("back", true)
  8.     sleep(0.5)
  9.     redstone.setOutput("back", false)
  10. end
  11.  
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement