Advertisement
Guest User

startup

a guest
Jul 20th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. while true do
  2. turtle.up()
  3. for i=1,7 do
  4. avancer()
  5. ins()
  6. end
  7. turtle.turnRight()
  8. avancer()
  9. ins()
  10. turtle.turnRight()
  11. for i=1,6 do
  12. avancer()
  13. ins()
  14. end
  15. turtle.turnLeft()
  16. avancer()
  17. ins()
  18. turtle.turnLeft()
  19.  
  20.  
  21. function avancer()
  22. turtle.forward()
  23. end
  24. function ins ()
  25. block, meta = turtle.inspect()
  26. print(meta.metadata)
  27. if meta.metadata ==7 then
  28. turtle.digDown()
  29. turtle.placeDown()
  30. end
  31. sleep(1)
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement