Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fuel ()
- if turtle.getFuelLevel() == 0 then
- turtle.select(1)
- turtle.refuel(1)
- end
- end
- function chopUp ()
- height = 0
- while turtle.detectUp() do
- fuel()
- turtle.digUp()
- turtle.up()
- height = height+1
- end
- fuel()
- return height
- end
- function killTree()
- fuel()
- turtle.dig()
- turtle.forward()
- height = chopUp()
- while height > 0 do
- fuel()
- turtle.down()
- height = height-1
- end
- fuel()
- turtle.back()
- turtle.select(2)
- turtle.place()
- end
- function chill()
- turtle.select(2)
- while turtle.compare() do --Comparing the sapling in inventory to the sapling in front of it
- turtle.suck()
- turtle.turnRight()
- turtle.suck()
- turtle.turnRight()
- turtle.suck()
- turtle.turnRight()
- turtle.suck()
- turtle.turnRight()
- sleep(10.0)
- end
- killTree()
- end
- while true do
- chill()
- end
Advertisement
Add Comment
Please, Sign In to add comment