Advertisement
TheProdigy22

Untitled

Mar 13th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. function place()
  2. while turtle.getItemCount() == 0 do
  3. turtle.select(((turtle.getSelectedSlot() + 1) % 16) + 1)
  4. end
  5. turtle.place()
  6. end
  7.  
  8. local loop = true
  9. local turnCount = 0
  10. while loop do
  11. if turtle.back() then
  12. turnCount = 0
  13. place()
  14. else
  15. turtle.turnLeft()
  16. turnCount = turnCount + 1
  17. end
  18.  
  19. if turnCount == 4 then
  20. loop = false
  21. end
  22. end
  23. turtle.down()
  24. turtle.placeUp()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement