Posted 20 August 2013 - 11:34 PM
Greetings and Salutations!
I have another question this evening I'm hoping will be easy to answer.
I'm trying to have my turtle look at all 16 slots, add up the total number of items, and then print it. here is how i'm testing this with slot 1 but I'm getting a blank output. I'm sure I'm just doing something wrong with my understanding how to take turtle.getItemCount() output and convert it to a variable.. thanks in advance for how to do this!
I have another question this evening I'm hoping will be easy to answer.
I'm trying to have my turtle look at all 16 slots, add up the total number of items, and then print it. here is how i'm testing this with slot 1 but I'm getting a blank output. I'm sure I'm just doing something wrong with my understanding how to take turtle.getItemCount() output and convert it to a variable.. thanks in advance for how to do this!
flintCount= 0
function flintCounter()
if turtle.getItemCount(1) > 0 then
flintCount = turtle.getItemCount(1)
else
print("Whatchu Talkin Bout Willis?")
end
end
flintCount = flintCounter()
print(flintCount)