I dont have getAllStacks on my server and Im not admin on the server so I cant just update it. Is there a way I can get info about content in chest?
I have tried this
but it fails with a diamondchest if there are not item in 100 slots.
I have tried this
Code:
for i = 0,(n-1) do
local itemInfo = chest.getStackInSlot(i)
if itemInfo ~= nil then
logLine(itemInfo["name"])
os.sleep(1)
end
end
but it fails with a diamondchest if there are not item in 100 slots.