Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = peripheral.wrap("right")
- modem.open(4)
- while true do
- local _, a, b, c, d, e = os.pullEvent("modem_message")
- if (d == os.getComputerLabel()) then
- if (not turtle.detect()) then
- shell.run("deploy")
- else
- shell.run("reploy")
- end
- elseif (d == "toggle_all") then
- if (not turtle.detect()) then
- shell.run("deploy")
- else
- shell.run("reploy")
- end
- elseif(d == "UPDATE") then
- shell.run("update")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment