Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. rednet.open("back")
  2. lastOutput = false
  3. while true do
  4. local event, button, x, y = os.pullEvent( "mouse_click" )
  5. rednet.broadcast(not lastOutput,"Nuclear")
  6. local id,message, protocol = rednet.receive("NuclearResponse",4)
  7. if message ~= nil then
  8. print(message)
  9. redstone.setOutput("right",message)
  10. lastOutput = message
  11. end
  12. sleep(2)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement