Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- -- Check if a tree has grown
- turtle.select(2)
- if turtle.compare("true")
- turtle.dig()
- turtle.forward()
- -- Chop the tree
- while turtle.digUp() do
- turtle.up()
- end
- -- Done chopping, return to the bottom
- while not turtle.detectDown() do
- turtle.down()
- end
- -- Turn, move onto the chest, then deposit the items
- turtle.turnRight()
- turtle.turnRight()
- turtle.forward()
- for i = 3,16 do
- turtle.select(i)
- dropDown()
- end
- -- Place a sapling
- turtle.turnRight()
- turtle.turnRight()
- turtle.select(1)
- turtle.place()
- else
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment