Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- state = 1
- rednet.open("left")
- rednet.host("door","controller")
- while (state == 1) do
- mid, msg, ptc = rednet.receive("door",10)
- if (msg == "shutdown") then
- state = 0
- print("shutting down")
- elseif (msg == "id") then
- rednet.send(mid, "controller", "door")
- print("sending id")
- elseif (msg == "toggle") then
- redstone.setOutput("bottom",true)
- sleep(1)
- redstone.setOutput("bottom",false)
- print("toggling")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement