Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- lastOutput = false
- while true do
- local event, button, x, y = os.pullEvent( "mouse_click" )
- rednet.broadcast(not lastOutput,"Nuclear")
- local id,message, protocol = rednet.receive("NuclearResponse",4)
- if message ~= nil then
- print(message)
- redstone.setOutput("right",message)
- lastOutput = message
- end
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement