Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local n = 1
- local fuel = turtle.getFuelLevel()
- while n==1 do
- for k=1,4 do
- turtle.forward()
- turtle.suckDown()
- end
- if turtle.detectDown() then
- fuel = turtle.getFuelLevel()
- if fuel < 240 then
- turtle.select(15)
- turtle.refuel(3)
- turtle.select(1)
- end
- if turtle.detect() then
- turtle.select(15)
- turtle.suck()
- turtle.select(16)
- turtle.drop(64)
- turtle.select(15)
- local x = turtle.getItemCount()
- x = x - 5
- turtle.drop(x)
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.select(9)
- turtle.suck()
- turtle.select(10)
- turtle.drop(64)
- turtle.select(9)
- local y = turtle.getItemCount()
- y = y - 16
- turtle.drop(y)
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- for a=1,3 do
- turtle.select(a)
- turtle.drop(64)
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnRight()
- shell.run("go forward 3")
- turtle.turnRight()
- end
- else
- turtle.turnLeft()
- if turtle.detect() then
- turtle.dig()
- turtle.forward()
- turtle.digDown()
- turtle.select(9)
- turtle.placeDown()
- turtle.select(1)
- while turtle.detectUp() do
- turtle.digUp()
- turtle.up()
- end
- while not turtle.detectDown() do
- turtle.down()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- else
- turtle.turnRight()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement