The inventory allows setting player defined filters similar to cargo wagon inventories.
ItemWithLabelPrototypeItemStackIndexfalsefalseThe inventory size of the item.
Array<ItemID>truefalseA list of explicit item names to be used as filters.
item_filters = {"iron-ore", "copper-ore", "coal", "stone"}
Array<ItemGroupID>truefalseA list of explicit item group names to be used as filters.
item_group_filters = {"logistics", "fluids"}
Array<ItemSubGroupID>truefalseA list of explicit item subgroup names to be used as filters.
item_subgroup_filters = {"military-equipment", "tool"}
"blacklist" | "whitelist"truefalseThis determines how filters are applied. If no filters are defined this is automatically set to "none".
filter_mode = "blacklist"
stringtruefalseThe locale key used when the player attempts to put an item that doesn't match the filter rules into the item-with-inventory.
1falsetrueCount of items of the same name that can be stored in one inventory slot. Must be 1 when the "not-stackable" flag is set.
stack_size = 1