Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local N = 4
- local function recharge()
- turtle.select(1)
- print(turtle.getFuelLevel())
- if turtle.getFuelLevel() < 4 then
- turtle.refuel(1)
- end
- end
- function Dig(n)
- while n > 0 do
- turtle.dig()
- n=n-1
- end
- end
- function creuse()
- recharge()
- Dig(N)
- turtle.select(3)
- turtle.placeDown()
- turtle.select(1)
- turtle.forward()
- turtle.turnLeft()
- Dig(N)
- turtle.turnRight()
- turtle.turnRight()
- Dig(N)
- turtle.turnLeft()
- turtle.digUp()
- turtle.up()
- turtle.turnLeft()
- Dig(N)
- turtle.turnRight()
- turtle.turnRight()
- Dig(N)
- turtle.turnLeft()
- turtle.down()
- end
- function light()
- turtle.select(2)
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(1)
- end
- print("Creuse v3.0")
- local count = ...
- count = count + 1
- while count > 0 do
- creuse()
- if count%8 == 0 then
- light()
- end
- count = count - 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement