Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --API for digging 1x1 trees
- function dig()
- turtle.select(1)
- turtle.dig()
- turtle.forward()
- while turtle.compareUp() do
- turtle.digUp()
- turtle.up()
- end
- while not turtle.detectDown() do
- turtle.down()
- end
- end
- function clearInv()
- for i = 1,13 do
- turtle.select((i+3))
- turtle.drop()
- end
- end
- function restock()
- if turtle.getItemCount(2) == 0 then
- turtle.select(2)
- turtle.suckUp()
- end
- if turtle.getItemCount(3) == 0 then
- turtle.select(3)
- turtle.suckDown()
- end
- end
- function replant()
- turtle.select(2)
- turtle.place()
- turtle.select(3)
- turtle.place()
- end
Advertisement
Add Comment
Please, Sign In to add comment