Skip to main content

Replace Inventory (Entity Action Type)

Replaces each matching slot of the entity's inventory, or a power's inventory, with an item stack.

Type ID: apoli:replace_inventory

note

This ID is an alias for Inventory Action with operation: replace. See that page for the full field list, including stack, merge_nbt and inventory_type: power.

"entity_action": {
    "type": "apoli:replace_inventory",
    "slot": "weapon.offhand",
    "stack": { "item": "minecraft:barrier" }
}

This is the same as { "type": "apoli:inventory_action", "operation": "replace", "slot": "weapon.offhand", "stack": { "item": "minecraft:barrier" } }.