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

# Factorio Runtime Docs Version 2.0.77

# ItemStackDefinition - Runtime Docs

## ItemStackDefinition :: table

#### Table fields

name | :: string | Prototype name of the item the stack holds.
Prototype name of the item the stack holds.
count | :: ItemCountType? | Number of items the stack holds. Defaults to `1`.
Number of items the stack holds. Defaults to `1`.
quality | :: string? | Quality of the item the stack holds. Defaults to `"normal"`.
Quality of the item the stack holds. Defaults to `"normal"`.
health | :: float? | Health of the items in the stack. Defaults to `1.0`.
Health of the items in the stack. Defaults to `1.0`.
durability | :: double? | Durability of the tool items in the stack.
Durability of the tool items in the stack.
ammo | :: float? | Amount of ammo in the ammo items in the stack.
Amount of ammo in the ammo items in the stack.
tags | :: Tags? | Tags of the items with tags in the stack.
Tags of the items with tags in the stack.
custom_description | :: LocalisedString? | Description of the items with tags in the stack.
Description of the items with tags in the stack.
spoil_percent | :: double? | The spoil percent for this item if the item can spoil. Defaults to `0`.
The spoil percent for this item if the item can spoil. Defaults to `0`.

Concept used in

- LuaSurface::create_entity()
- ItemStackIdentification