Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Derriere rangement. droite sapling. gauche coal. dessou Bonemeal
- function place() --place la pousse
- turtle.select(1)
- turtle.place()
- turtle.select(2)
- for p = 1, 5 do
- turtle.place()
- end
- end
- function coupe() --coupe l'arbre
- turtle.dig()
- turtle.forward()
- while turtle.detectUp() do
- turtle.digUp()
- turtle.up()
- end
- while not turtle.detectDown() do
- turtle.down()
- end
- turtle.back()
- end
- function stockCoal()
- turtle.turnLeft()
- if turtle.getItemCount(16) < 5 then
- turtle.select(16)
- turtle.suck(10)
- end
- turtle.turnLeft()
- end
- function range()
- turtle.turnLeft()
- for r = 3, 15 do
- turtle.select(r)
- turtle.drop()
- end
- end
- function stockSapling()
- if turtle.getItemCount(1) < 5 then
- turtle.select(1)
- turtle.suckDown(10)
- end
- end
- function stockBonemeal()
- turtle.turnLeft()
- if turtle.getItemCount(2) < 5 then
- turtle.select(2)
- turtle.suck(5)
- end
- end
- while true do
- if turtle.getFuelLevel() < 50 then
- turtle.select(16)
- turtle.refuel()
- end
- place()
- coupe()
- stockBonemeal()
- range()
- stockCoal()
- stockSapling()
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement