Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local height
- function getFuel()
- if turtle.getFuelLevel() <=10 then
- turtle.select(1)
- turtle.refuel(2)
- end
- end
- function callTree()
- turtle.select(2)
- if turtle.getItemCount(2) <=4 then
- turtle.suckDown()
- end
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.back()
- turtle.place()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.back()
- turtle.place()
- repeat
- turtle.select(3)
- turtle.place()
- until not turtle.place()
- end
- function chopDatStuffUp()
- repeat
- turtle.dig()
- getFuel()
- turtle.digUp()
- turtle.up()
- height = height+1
- until not turtle.detectUp()
- end
- function chopDatStuffDown()
- repeat
- turtle.dig()
- getFuel()
- turtle.digDown()
- turtle.down()
- height = height-1
- until height == 0
- end
- function cutTree()
- getFuel()
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- chopDatStuffUp()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- chopDatStuffDown()
- turtle.dig()
- turtle.forward()
- turtle.forward()
- end
- function dropItems()
- for i = 2, 14 do
- if i~=3 then
- turtle.select(i)
- turtle.dropDown()
- end
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- function doStuff()
- height=0
- getFuel()
- callTree()
- cutTree()
- dropItems()
- end
- doStuff()
Advertisement
Add Comment
Please, Sign In to add comment