Advertisement
derkoch

miningwell turtle startup

Jun 27th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. function digWell()
  4. print("digging")
  5. turtle.moveDown()
  6. turtle.dig()
  7. turtle.moveUp()
  8. end
  9.  
  10. function placeWell()
  11. print("placing")
  12. turtle.moveDown()
  13. turtle.place()
  14. turtle.moveUp()
  15. end
  16.  
  17. while true do
  18. local senderId, message = rednet.receive()
  19. print(message)
  20. if message == "digWell" then
  21. digWell()
  22. elseif message == "placeWell" then
  23. placeWell()
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement