Advertisement
Guest User

hole

a guest
Nov 26th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. slot = 1
  2. while true do
  3.   if turtle.detectDown() == false then
  4.     print("No block detected")
  5.     if turtle.getItemCount(slot) == 0 then
  6.       slot = slot + 1
  7.       turtle.select(slot)
  8.     end
  9.     turtle.placeDown()
  10.   else
  11.     print("Block detected, up")
  12.     turtle.forward()
  13.   end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement