Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peripheral.find("modem", rednet.open)
- output = false
- redstone.setOutput("front", output)
- while true do
- local id,msg,dist=rednet.receive()
- print('the message ' .. msg .. ' was received from ' .. id)
- if id == 6 or id == 87 and msg == "floor" then
- output = not output
- redstone.setOutput("front", output)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement