Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- --Anfang
- local the, block = turtle.inspect()
- if block.name == "minecraft:log" then
- turtle.dig()
- end
- if turtle.inspect() == false then
- local the, block = turtle.inspectDown()
- if block.name == "minecraft:chest" then
- if turtle.getFuelLevel() < 79 then
- turtle.select(16)
- turtle.suckDown(1)
- turtle.refuel(1)
- turtle.select(1)
- end
- turtle.forward()
- end
- end
- local the, block = turtle.inspect()
- if block.name == "minecraft:dispenser" then
- turtle.turnLeft()
- end
- if turtle.inspect() == false then
- local the, block = turtle.inspectDown()
- if block.name == "minecraft:dirt" then
- turtle.digUp()
- turtle.up()
- end
- end
- if turtle.inspectDown() == false then
- local the, block = turtle.inspectUp()
- if block.name == "minecraft:stone" then
- repeat
- until turtle.down() == false
- turtle.forward()
- else
- turtle.digUp()
- turtle.up()
- end
- end
- local the, block = turtle.inspect()
- if block.name == "minecraft:chest" then
- local slot = 2
- for i=2,16 do
- turtle.select(slot)
- turtle.drop(64)
- slot = slot+1
- end
- turtle.select(1)
- turtle.turnLeft()
- end
- local the, block = turtle.inspect()
- if block.name == "minecraft:glowstone" then
- local space = turtle.getItemSpace()
- turtle.suckUp(space)
- turtle.turnLeft()
- turtle.place()
- end
- local the, block = turtle.inspect()
- if block.name == "minecraft:sapling" then
- os.sleep(1)
- end
- --Ende
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement