Advertisement
DZCreeper

orePlacer

Oct 8th, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. currentSlot = 1
  2.  
  3. function selectFull()
  4.     turtle.select(currentSlot)
  5.     if turtle.getItemCount(currentSlot) == 0 then
  6.         if currentSlot == 16 then
  7.             turtle.select(1)
  8.    currentSlot = 1
  9.         else
  10.             currentSlot = currentSlot + 1
  11.         end
  12.        
  13.     end
  14. end
  15.  
  16.  
  17. while true do
  18.     if turtle.detectDown() == false then
  19.         turtle.placeDown()
  20.     end
  21.     selectFull()
  22.     sleep(0.5)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement