Advertisement
kEOKIX

ClearInvsToChest

Sep 27th, 2022 (edited)
1,292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. function ClearInv()
  2.     turtle.suckUp()
  3.     turtle.forward()
  4.     Start()
  5. end
  6.  
  7. function BackToStart()
  8.     turtle.turnLeft()
  9.     while(not turtle.detect()) do
  10.         turtle.forward()
  11.     end
  12.     turtle.turnLeft()
  13.     turtle.turnLeft()
  14.     sleep(5)
  15.     Start()
  16. end
  17.  
  18. function Start()
  19.     turtle.suckUp()
  20.     if turtle.detect() then
  21.         turtle.turnLeft()
  22.         for i = 1, 16 do
  23.             turtle.select(i)
  24.             turtle.drop()
  25.         end
  26.         BackToStart()
  27.     end
  28.     ClearInv()
  29. end
  30.  
  31. Start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement