Advertisement
ZottelvonUrvieh

placeturtle

Jun 16th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. function wait()
  2.     rednet.open("right")
  3.     x,y,z = rednet.receive()
  4.     print(y)
  5.     if y=="place" then
  6.         place()
  7.     elseif y=="pick" then
  8.         pick()
  9.     end
  10.    
  11. end
  12.  
  13. function place()
  14.     turtle.select(1)
  15.     turtle.place()
  16.     wait()
  17. end
  18.  
  19. function pick()
  20.     turtle.dig()
  21.     wait()
  22. end
  23.  
  24. wait()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement