Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = turtle
- local h = 0
- while true do
- local success, data = turtle.inspect()
- if success and data.name == "minecraft:sapling" then
- t.place()
- else
- t.dig()
- t.forward()
- t.select(3)
- while t.compareUp() == true do
- t.digUp()
- t.up()
- h = h + 1
- end
- for i = 1,h do
- t.down()
- end
- t.back()
- t.select(2)
- t.place()
- t.select(1)
- end
- end
Add Comment
Please, Sign In to add comment