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.

Machines with a saved inventory won't stack with other machines.

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

Default: false

Example:

"appearance": {
    "keep_inventory": true
}

Last updated