Inventory

Power Type

Provides an inventory with 9 slots that can be opened with the specified Key; may or may not persist on death.

Type ID: origins:inventory

Fields

Field Type Default Description
title String "container.inventory" The translation key or literal text to use as the display name for the inventory.
drop_on_death Boolean false When this is set to true, the player will drop the items in the inventory on death (vanishing items will vanish!).
drop_on_death_filter Item Condition Type optional If this is set, only item stacks matching this condition will be dropped on death.
key Key optional Which active key this power should respond to. If none is specified, this power will use the primary active power key (by default G).

Examples

{
    "type": "origins:inventory",
    "drop_on_death": true,
    "drop_on_death_filter": {
        "type": "origins:food",
        "inverted": true
    }
}

This example will allow the player to open a 9-slots inventory of which only non-food items will drop on death.