> For the complete documentation index, see [llms.txt](https://frinn.gitbook.io/custom-machinery-1.21/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://frinn.gitbook.io/custom-machinery-1.21/creating-custom-machines/machine-appearance/keep-inventory.md).

# Keep inventory

Make the machine keep its inventory when broken

The `keep_inventory` property define whether the machine will keep its inventory when broken, or will drop it on ground.

If set to true, everything stored inside the machine (items, fluids, energy, xp, addons components...) will be saved inside the machine item when the machine block is broken by a player.

{% hint style="warning" %}
If the `requires_tool` property is set to true and player breaking the machine doesn't use the correct tool defined in the `tool_type` and `mining_level` properties, the machine won't drop and everything will be lost.
{% endhint %}

{% hint style="info" %}
Machines with a saved inventory won't stack with other machines.
{% endhint %}

If set to false, only items and xp will drop on ground, everything else will be lost.

#### Default: false

#### Example:&#x20;

```json
"appearance": {
    "keep_inventory": true
}
```
