And a script that will be faster:
Code:
while true do
if turtle.attack() then
print("Burn it with FIRE!")
else
print("Don't fire until you see the whites of their eyes....")
end
if turtle.getItemCount(14) > 0 then
print("Oh gods, so much stuff.... VOID VOID VOID!"
for vSlotCount = 16, 1, -1
if turtle.getItemCount(vSlotCount) > 1 then
turtle.select(vSlotCount)
turtle.drop()
print("Slot voided!")
end
end
end
print("And now we play the waiting game...")
sleep(0.2)
end
Specifically, the turtle attacks, and if it hits something (turtle.attack() returns TRUE) it tells you as much, otherwise it tells you as much (with my strange way of defining those, as you can see).
Then it looks to see if there are any items in slot fourteen, which means "Have I filled up with junk?". If it has, it then starts tossing stuff in front of it (the direction it attacks, as well), then it waits 0.2 seconds (you can adjust this timing to your liking) and repeats the fun.
Also, and I have yet to try this as all of my attack turtles actually eject things into my sorting system, but if you fill the turtle's inventory up with something that won't be dropped, say smooth stone, it shouldn't pick up the drops then. If that is the case (test it!) you can remove the entire part of the script that deals with dropping things, and it'll be even faster.
Good luck!
Wow, good timing on my part, eh? But yes, try my latter suggestion first (filling up the turtle's inventory with smooth stone) to see if that tells the turtle the name of the game, as it were. Good luck!