local maxItem = 2176 --######################-- chest = peripheral.wrap("draconic_chest_1") local InvSize = chest.getInventorySize() while true do term.clear() term.setCursorPos(1,1) slot = 0 slotqt = 0 t = {} for CurrSlot = 1, InvSize-1, 1 do if chest.getStackInSlot(CurrSlot) ~= nil then table.insert(t, chest.getStackInSlot(CurrSlot).display_name) slotqt = chest.getStackInSlot(CurrSlot).qty slot = slot + slotqt end end if slot == maxItem then rs.setAnalogOutput("back", 15) sleep(0.5) rs.setAnalogOutput("right", 0) print("true") elseif slot == 0 then sleep(0.5) rs.setAnalogOutput("right", 15) sleep(0.5) rs.setAnalogOutput("back", 0) print("false") end table.foreachi (t, print) sleep(2) end