Guest User

Hopper Turtle

a guest
Sep 12th, 2013
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. -- Num's hopper turtle
  2.  
  3. while true do
  4.     foundItem = false
  5.     slot = 0
  6.     while (not foundItem) do
  7.         slot = slot + 1
  8.         if(turtle.getItemCount(slot) > 0 or slot == 16)
  9.             then foundItem = true end
  10.     end
  11.     turtle.select(slot)
  12.     turtle.dropDown()
  13.     turtle.select(1)
  14.     sleep(10)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment