Advertisement
robbim97

Ceiling

Oct 18th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. selectedSlot = 1
  2.  
  3. function items()
  4.     if turtle.getItemCount(selectedSlot) <= 1 then
  5.         selectedSlot = selectedSlot + 1
  6.         if selectedSlot == 17 then
  7.           selectedSlot = 1
  8.         end
  9.         turtle.select(selectedSlot)
  10.     end
  11. end
  12.  
  13. while true do
  14.     while turtle.back() do
  15.         items()
  16.         turtle.place()
  17.     end
  18.     turtle.turnLeft()
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement