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