Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- leftID = 918
- rightID = 919
- print(os.getComputerID())
- status = false
- while true do
- if redstone.getInput("front") then
- rednet.open("left")
- if status == "false" then
- rednet.send(leftID, "open")
- rednet.send(rightID, "open")
- status = true
- else
- rednet.send(leftID, "close")
- rednet.send(rightID, "close")
- end
- rednet.close("left")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement