Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Kill turtle
- function unload()
- sleep(0.5)
- for inv = 1,16 do
- --Keep trying to unload all cargo slots until empty
- while turtle.getItemCount(inv) > 0 do
- print("Unloading slot:"..inv)
- turtle.select(inv)
- turtle.dropDown()
- sleep(0.2)
- end
- end
- end
- function choppo()
- for chop = 1,16 do
- turtle.attack()
- end
- end
- while true do
- choppo()
- unload()
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement