Advertisement
Guest User

tree

a guest
Mar 29th, 2020
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.46 KB | None | 0 0
  1. while true do
  2. --Anfang
  3.  
  4. local the, block = turtle.inspect()
  5. if block.name == "minecraft:log" then
  6.   turtle.dig()
  7. end
  8.  
  9. if turtle.inspect() == false then
  10.   local the, block = turtle.inspectDown()
  11.   if block.name == "minecraft:chest" then
  12.     if turtle.getFuelLevel() < 79 then
  13.       turtle.select(16)
  14.       turtle.suckDown(1)
  15.       turtle.refuel(1)
  16.       turtle.select(1)
  17.     end
  18.     turtle.forward()
  19.   end
  20. end
  21.  
  22. local the, block = turtle.inspect()
  23. if block.name == "minecraft:dispenser" then
  24.   turtle.turnLeft()
  25. end
  26.  
  27. if turtle.inspect() == false then
  28.   local the, block = turtle.inspectDown()
  29.   if block.name == "minecraft:dirt" then
  30.     turtle.digUp()
  31.     turtle.up()
  32.   end
  33. end
  34.  
  35. if turtle.inspectDown() == false then
  36.   local the, block = turtle.inspectUp()
  37.   if block.name == "minecraft:stone" then
  38.   repeat
  39.   until turtle.down() == false
  40.   turtle.forward()
  41.   else
  42.     turtle.digUp()
  43.     turtle.up()
  44.   end  
  45. end
  46.  
  47. local the, block = turtle.inspect()
  48. if block.name == "minecraft:chest" then
  49.   local slot = 2
  50.   for i=2,16 do
  51.     turtle.select(slot)
  52.     turtle.drop(64)
  53.     slot = slot+1
  54.   end
  55.   turtle.select(1)
  56.   turtle.turnLeft()
  57. end
  58.  
  59. local the, block = turtle.inspect()
  60. if block.name == "minecraft:glowstone" then
  61.   local space = turtle.getItemSpace()
  62.   turtle.suckUp(space)
  63.   turtle.turnLeft()
  64.   turtle.place()
  65. end
  66.  
  67. local the, block = turtle.inspect()
  68. if block.name == "minecraft:sapling" then
  69.   os.sleep(1)
  70. end
  71.  
  72. --Ende
  73. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement