This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
JustIan12's profile picture

[Ask A Pro] Impossible To Fix?

Started by JustIan12, 22 July 2016 - 04:32 PM
JustIan12 #1
Posted 22 July 2016 - 06:32 PM
Hi, this is a fairly basic program and I dont understand the issue its a nil value issue however I dont see where exactly all I know it is on line 2 :P/> sorry

while true do
if turtle.getitemCount(1) >1 then
  turtle.drop()
else
  sleep(1)
end
end
Lupus590 #2
Posted 22 July 2016 - 06:40 PM
lua is case sensitive, item should have a capital I in turtle.getItemCount(1)
JustIan12 #3
Posted 23 July 2016 - 09:08 AM
XD thanks :P/> I must have missed that