Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# InventoryWithCustomStackSizeSpecification - Prototype Docs

## InventoryWithCustomStackSizeSpecification :: struct

## Properties

- default
- sorted

stack_size_multiplier optional | :: double | Must be >= 0.
Must be >= 0.
stack_size_min optional | :: ItemCountType | Must be >= 1.
Must be >= 1.
stack_size_max optional | :: ItemCountType | Must be >= stack_size_min.
Must be >= stack_size_min.
stack_size_override optional | :: dictionary[ItemID → ItemCountType] | Each record value must be >= 1. [...]
Each record value must be >= 1. [...]
with_bar optional | :: boolean |

stack_size_max optional | :: ItemCountType | Must be >= stack_size_min.
Must be >= stack_size_min.
stack_size_min optional | :: ItemCountType | Must be >= 1.
Must be >= 1.
stack_size_multiplier optional | :: double | Must be >= 0.
Must be >= 0.
stack_size_override optional | :: dictionary[ItemID → ItemCountType] | Each record value must be >= 1. [...]
Each record value must be >= 1. [...]
with_bar optional | :: boolean |

## Properties

### stack_size_multiplier :: double optional

Default: `1`

Must be >= 0.

### stack_size_min :: ItemCountType optional

Default: `1`

Must be >= 1.

### stack_size_max :: ItemCountType optional

Must be >= stack_size_min.

### stack_size_override :: dictionary[ItemID → ItemCountType] optional

Each record value must be >= 1. For non-stackable items this value will be ignored.

### with_bar :: boolean optional

Default: `false`

Type used in

- ContainerPrototype::inventory_properties
- LinkedContainerPrototype::inventory_properties