Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function emptyIfFull() --check if the turtle is full and empty it
- if (turtle.getItemCount(9) > 0) then
- for slot=1,9 do
- turtle.select(slot)
- while turtle.getItemCount(slot) > 0 do
- turtle.dropUp(turtle.getItemCount(slot))
- if turtle.getItemCount(slot) > 0 then
- sleep(0.25)
- end
- end
- end
- turtle.select(1)
- end
- end
- while true do
- emptyIfFull()
- turtle.attack()
- sleep(0.25)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement