Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function energie()
- if turtle.getFuelLevel() == 0 then
- print("Rechargement")
- turtle.select(1)
- turtle.refuel(1)
- end
- end
- function miner()
- local nomBloc
- nomBloc = turtle.inspect()
- print(nomBloc.name)
- turtle.dig()
- turtle.forward()
- nomBloc = turtle.inspectUp()
- print(nomBloc.name)
- turtle.digUp()
- nomBloc = turtle.inspectDown()
- print(nomBloc.name)
- turtle.digDown()
- end
- miner()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement