Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function checkFuel()
- while turtle.getFuelLevel() < 100 do
- turtle.select(2)
- turtle.refuel(1)
- end
- end
- local function chopUp()
- while turtle.detectUp() do
- turtle.digUp()
- turtle.up()
- turtle.dig()
- x=x+1
- end
- end
- local function chopDown()
- for a=2,x do
- turtle.dig()
- turtle.digDown()
- turtle.down()
- end
- end
- local function stumpRemove()
- turtle.select(1)
- turtle.digDown()
- turtle.placeDown()
- turtle.dig()
- turtle.forward()
- turtle.digDown()
- turtle.placeDown()
- turtle.turnLeft()
- turtle.forward()
- turtle.digDown()
- turtle.placeDown()
- turtle.turnLeft()
- turtle.forward()
- turtle.digDown()
- turtle.placeDown()
- turtle.forward()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- local function placeItems()
- for a=3,16 do
- turtle.select(a)
- turtle.dropDown()
- end
- turtle.select(1)
- end
- while true do
- if turtle.detect() then
- checkFuel()
- turtle.dig()
- turtle.forward()
- turtle.dig()
- x=1
- chopUp()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- chopDown()
- stumpRemove()
- placeItems()
- end
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement