Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mine()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.digDown()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- end
- print("Entrez la longueur de la zone a miner.")
- print("")
- print("Longueur (en face) : ")
- longueur = tonumber(read())
- for i = 1,longueur do
- print(i)
- fuel = turtle.getFuelLevel()
- print(fuel)
- mine()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement