Advertisement
100Toby1

Untitled

Mar 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. function getItemSlots()
  2. local slots = 16
  3. for i = 1, 16 do
  4. if turtle.getItemCount(i) > 0 then
  5. slots = slots - 1
  6. end
  7. end
  8. return slots
  9. end
  10.  
  11. function dropAllItems()
  12. for i = 1, 16 do
  13. turtle.select(i)
  14. turtle.drop()
  15. end
  16. end
  17.  
  18. dropAllItems()
  19.  
  20. -- while true do
  21. -- while getItemSlots() > 0 do
  22. -- while turtle.dig() do end
  23. -- while turtle.digUp() do end
  24. -- turtle.forward()
  25. -- end
  26. -- --Turtle ran out of space
  27. -- turtle.turnRight()
  28. -- turtle.turnRight()
  29. -- --Turn Back
  30. -- while turtle.inspect.name ~= "minecraft:chest" do
  31. -- turtle.forward()
  32. -- end
  33. -- dropAllItems()
  34. -- turtle.turnRight()
  35. -- turtle.turnRight()
  36. -- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement