Posted 12 January 2016 - 02:30 AM
I'm new to computercraft, this should be an easy fix but I don't know what's wrong.
The program is supposed to kill mobs(which works fine) and when it checks slot 16, if it has an item in that slot, it throws them in front of it. I can't get the turtle to drop the items from its inventory.
The program is supposed to kill mobs(which works fine) and when it checks slot 16, if it has an item in that slot, it throws them in front of it. I can't get the turtle to drop the items from its inventory.
while true do
turtle.attack()
sleep(1)
end
if turtle.getItemCount(16) <1 then
for i = 1, 16 do
turtle.select(i)
turtle.drop()
end
end