Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- tree
- -- by odduser 2013-02-08
- -- http://pastebin.com/SXDQdDeg
- -- saplings in slot 16
- turtle.select(1)
- while true do
- echo("Waiting for tree to grow")
- if turtle.compare() then
- turtle.dig()
- turtle.forward()
- local up = 0
- while turtle.detectUp() do
- turtle.digUp()
- turtle.up()
- up = up + 1
- end
- for x = 1,up do turtle.down() end
- turtle.back()
- turtle.select(16)
- turtle.place()
- else
- if turtle.getItemCount(15) ~= 0 then
- turtle.select(15)
- turtle.place()
- turtle.select(1)
- end
- end
- sleep(3)
- end
Advertisement
Add Comment
Please, Sign In to add comment