Advertisement
Hammi

Fläche ausgraben mit Enderchest

Apr 14th, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. print("In den 1. Slot eine Enderchest")
  2. write("Drücke (Enter)")
  3. l = io.read()
  4. j=1
  5. o=1
  6. t=0
  7. function forward()
  8.   while(not turtle.forward()) do
  9.     turtle.dig()
  10.   end
  11. end
  12. function digUp()
  13.   while(turtle.detectUp()) do
  14.     turtle.digUp()
  15.     sleep(0.4)
  16.   end
  17. end
  18. while (turtle.getFuelLevel() > 0) do
  19.   turtle.turnRight()
  20.   j=j+0.5
  21.   for k=1,o do
  22.     if(turtle.getItemCount(16) > 0) then
  23.       turtle.select(1)
  24.       turtle.placeUp()
  25.       for i=2,16 do
  26.         turtle.select(i)
  27.         turtle.dropUp()
  28.       end
  29.       turtle.select(1)
  30.       turtle.digUp()
  31.   end
  32.     o = j
  33.     math.floor(o)
  34.     forward()
  35.     digUp()
  36.     turtle.digDown()
  37.   end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement