Keep Inventory (Power Type)

Makes certain items persist in the entity's inventory.

Makes certain items persist in the entity’s inventory.

Type ID: apoli:keep_inventory

Fields

FieldTypeDefaultDescription
item_conditionItem Condition TypeoptionalIf specified, only make the items that fulfill the specified item condition type persist in the entity’s inventory.
slotsArray of IntegersoptionalIf specified, only make the items that are in the listed inventory slots persist in the entity’s inventory.

Examples

{
    "type": "apoli:keep_inventory",
    "slots": [
        0,
        1,
        2,
        3,
        4,
        5,
        6,
        7,
        8
    ]
}

This example will make items in the hotbar slots persist.