Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if turtle.getFuelLevel() == 0 then
- turtle.select(1)
- turtle.refuel(4)
- end
- local fuel = turtle.getFuelLevel()
- print("fuel:"..tostring(fuel))
- local function DigLine(n)
- for i=1, tonumber(n) do
- if turtle.detectDown() then
- print("dig")
- turtle.digDown()
- else
- print("skip")
- end
- turtle.forward()
- end
- end
- turtle.forward()
- DigLine(8)
- turtle.turnRight()
- DigLine(8)
- turtle.turnRight()
- DigLine(8)
- turtle.turnRight()
- DigLine(8)
- turtle.turnRight()
- turtle.back()
Advertisement
Add Comment
Please, Sign In to add comment