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.

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.

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