Advertisement
Juksefantomet

cobblestone_generator

Nov 9th, 2015
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. running = 1
  2. tcount = 0
  3. while running==1 do
  4. if turtle.detectUp() == true then
  5.   if turtle.digUp() == true then
  6.   end
  7.   end
  8.  
  9. if turtle.detectDown() == true then
  10.   if turtle.digDown() == true then
  11.   end
  12.   end
  13.   tcount = tcount + turtle.getItemCount(turtle.select(1))
  14. if tcount > 10000 then
  15. os.reboot()
  16. end
  17.  
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement