robbim97

CobbleFiller

Oct 1st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. selectedSlot = 1
  2.  
  3. current_two = 0
  4.  
  5. current = 0
  6. run = 1
  7.  
  8. function items()
  9.     if turtle.getItemCount(selectedSlot) <= 1 then
  10.         selectedSlot = selectedSlot + 1
  11.         if selectedSlot == 17 then
  12.           selectedSlot = 1
  13.         end
  14.         turtle.select(selectedSlot)
  15.     end
  16. end
  17.  
  18. while true do
  19.     while turtle.back() do
  20.         items()
  21.         turtle.place()
  22.     end
  23.     turtle.up()
  24.     items()
  25.     turtle.placeDown()
  26.     turtle.turnLeft()
  27.     turtle.turnLeft()
  28. end
Add Comment
Please, Sign In to add comment