Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function refuel()
- if turtle.getFuelLevel() < 10 then
- turtle.select(16)
- turtle.placeUp()
- turtle.suckUp()
- turtle.refuel()
- turtle.dropUp()
- turtle.digUp()
- turtle.select(1)
- end
- end
- while true do
- for frente =0,6 do
- local sucess, data = turtle.inspect()
- if sucess == true then
- if data.state.age == 7 then
- turtle.dig()
- turtle.place()
- end
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- end
- refuel()
- turtle.turnRight()
- for tras =0,6 do
- turtle.forward()
- end
- turtle.turnLeft()
- if turtle.getItemCount(1) >= 1 then
- turtle.select(1)
- turtle.drop()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement