Advertisement
zeplintwo

PortalTurtle

Nov 11th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. print("Turtle 68 initializing Portal Creation. Awaiting orders from Computer 66.")
  2. rednet.open("right")
  3.  
  4. while true do
  5. local sendID,mess,dist=rednet.receive()
  6. local i = tonumber(mess)
  7.  
  8. if sendID == 66 then
  9. print("Opening portal #"..mess)
  10. turtle.select(i)
  11. turtle.drop()
  12. sleep(8)
  13. rs.setBundledOutput("left", 1)
  14. turtle.down()
  15. turtle.suck()
  16. turtle.up()
  17. rs.setBundledOutput("left", 0)
  18.  
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement