Skip to content

ItemStack

One property-distinct stack of items. Returned by: stacks() on InputSlot, VehicleInputSlot, OutputSlot, PickupOutputSlot, Cargo, Bin, Storage Bin, and Warehouse.

MemberReturnsMeaning
.idstringStable item id shared by every unit in this stack
.countnumberWhole-number units with this exact property identity
.propertiesdict or NoneExact property dict, or None for an ordinary commodity

Items with different properties form separate stacks and never merge. Property-aware transfers select stacks with the properties + property_match ("any" / "subset" / "exact") arguments; see Input & Output.