Knux14

startup

Jul 8th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1.     modem = peripheral.wrap("right")
  2.     modem.open(4)    
  3.     while true do
  4.      local _, a, b, c, d, e = os.pullEvent("modem_message")
  5.      if (d == os.getComputerLabel()) then
  6.        if (not turtle.detect()) then
  7.           shell.run("deploy")
  8.        else
  9.          shell.run("reploy")
  10.        end
  11.      elseif (d == "toggle_all") then
  12.        if (not turtle.detect()) then
  13.           shell.run("deploy")
  14.        else
  15.          shell.run("reploy")
  16.        end
  17.      elseif(d == "UPDATE") then
  18.        shell.run("update")
  19.     end
  20.   end
Advertisement
Add Comment
Please, Sign In to add comment