Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function refuel()
- if turtle.getFuelLevel() < 50 then
- turtle.select(16)
- turtle.placeUp()
- turtle.suckUp()
- turtle.refuel()
- turtle.dropUp()
- turtle.digUp()
- turtle.select(1)
- end
- end
- function queimar()
- for baixo =1,5 do
- turtle.down()
- end
- turtle.turnRight()
- turtle.turnRight()
- for frente1 =1,5 do
- turtle.forward()
- end
- turtle.turnLeft()
- for frente2 =1,32 do
- turtle.forward()
- end
- turtle.dropUp()
- turtle.turnLeft()
- turtle.turnLeft()
- for frente3 =1,32 do
- turtle.forward()
- end
- turtle.turnRight()
- for frente4 =1,5 do
- turtle.forward()
- end
- for cima =1,5 do
- turtle.up()
- end
- end
- while true do
- for frente =0,9 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,9 do
- turtle.forward()
- end
- turtle.turnLeft()
- if turtle.getItemCount() >= 32 then
- queimar()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement