Advertisement
Guest User

startup

a guest
Jan 27th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. redstone.setOutput("top",true)
  2. rednet.open("right")
  3. id,message,distance = rednet.receive()
  4.  
  5. print("Got Message from")
  6. print(id)
  7. print(message)
  8.  
  9. if id == 26 then
  10.  if message == "DeployBridge" then
  11.   shell.run("DeployBridge")
  12.   os.reboot()  
  13.  end
  14. elseif id == 29 then
  15.  if message == "DeployBridge" then
  16.   shell.run("DeployBridge")
  17.   os.reboot()
  18.  end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement