Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function plant()
- turtle.forward()
- turtle.turnRight()
- turtle.place()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.place()
- turtle.turnLeft()
- turtle.back()
- turtle.place()
- turtle.back()
- turtle.place()
- end
- function chop()
- turtle.dig()
- turtle.forward()
- for i=1,100 do
- turtle.dig()
- turtle.digUp()
- turtle.up()
- end
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- for i=1,100 do
- turtle.digDown()
- turtle.down()
- turtle.dig()
- end
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- plant()
- end
- function grow()
- repeat
- turtle.place()
- until(turtle.inspect().name == "minecraft:log")
- chop()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement