Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- state = 1
- redstone.setOutput("right", true)
- rednet.open("top")
- while true do
- id, message = rednet.receive()
- if message == "door123" then
- if state == 1 then
- redstone.setOutput("right", false)
- state = 0
- else
- redstone.setOutput("right", true)
- state = 1
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement