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 base()
- turtle.up()
- turtle.turnRight()
- for frente1 =0,34 do
- turtle.forward()
- end
- turtle.turnRight()
- for frente2 =0,8 do
- turtle.forward()
- end
- for baixo =0,6 do
- turtle.down()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- for cima =0,6() do
- turtle.up()
- end
- for frente3 =0,8 do
- turtle.forward()
- end
- turtle.turnLeft()
- for frente4 =0,34 do
- turtle.forward()
- end
- turtle.turnRight()
- turtle.down()
- 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() >= 1 then
- base()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement