Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peripheral.find("modem", rednet.open)
- while true do
- local id,msg = rednet.receive()
- if id ~= nil then
- if msg == "turn" then
- enabled = not enabled
- redstone.setOutput("back",enabled)
- end
- print(id,msg)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement