Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- --plant the sapling
- turtle.select(15)
- turtle.place()
- turtle.select(16)
- --while the tree isn't grown, sleep
- while not turtle.compare() do
- os.sleep(2)
- end
- --we've found a tree block, now separate it for collection
- turtle.select(1)
- --go up the tree and break the blocks
- while turtle.detect() or turtle.detectUp() do
- turtle.dig()
- turtle.digUp()
- turtle.up()
- end
- while not turtle.detectDown() do
- turtle.down()
- end
- --place the items in the chest behind the turtle
- turtle.turnRight()
- turtle.turnRight()
- turtle.drop()
- turtle.turnRight()
- turtle.turnRight()
- end
Add Comment
Please, Sign In to add comment