Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function plante()
- turtle.select(1)
- turtle.place()
- end
- function pousse()
- turtle.select(2)
- for a = 1, 5 do
- turtle.place()
- end
- end
- function coupe()
- turtle.dig()
- turtle.suck()
- end
- function stuff()
- turtle.turnLeft()
- if turtle.getItemCount(2) < 10 then
- turtle.select(2)
- turtle.suck(10)
- end
- turtle.turnLeft()
- for p = 3, 15 do
- turtle.select(p)
- turtle.drop()
- end
- if turtle.getItemCount(1) < 15 then
- turtle.select(1)
- turtle.suck(15)
- end
- turtle.turnLeft()
- if turtle.getItemCount(16) < 5 then
- turtle.select(16)
- turtle.suck(5)
- end
- turtle.turnLeft()
- end
- while true do
- if turtle.getFuelLevel() < 50 then
- turtle.select(16)
- turtle.refuel()
- end
- stuff()
- plante()
- pousse()
- coupe()
- sleep(15)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement