Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local arg = { ... }
- local c = arg[1]
- local y = 0
- local x = 1
- for i=1,c do
- for i=1,x do
- turtle.forward()
- end
- local continue = true
- while continue do
- for i=1,4 do
- turtle.dig()
- turtle.turnRight()
- end
- turtle.digDown()
- local moved = turtle.down()
- if moved then
- y = y + 1
- else
- continue = false
- end
- end
- for i=1,y do
- turtle.up()
- end
- y = 0
- turtle.turnRight()
- turtle.turnRight()
- for i=1,x do
- turtle.forward()
- end
- x = x + 3
- for i=1,16 do
- turtle.select(i)
- if turtle.getFuelLevel() < 10000 then
- turtle.refuel()
- end
- data = turtle.getItemDetail()
- if data then
- if (data.name == "minecraft:cobblestone" or data.name == "minecraft:dirt" or data.name == "minecraft:stone") then
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.drop()
- turtle.turnRight()
- turtle.turnRight()
- end
- end
- turtle.drop()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement