Skip to content

Bind Item

Power Types

Makes certain items unable to leave in the entity's inventory until death.

Type ID: ra_additions:bind_item

Fields

Field Type Default Description
item_condition Item Condition optional If specified, only make the items that fulfill the specified item condition are unable to leave the players inventory.
prevent_use_condition Item Condition optional If specified, it won't let the player use the items that fulfill the specified item condition.
slots Array of Int optional If specified, only make the items that are in the listed inventory slots are unable to leave the players inventory. See the "Item Stack Slot" column of Positioned Item Stack Slots for possible values.

Example

{
  "type": "ra_additions:bind_item",
  "item_condition": {
    "type": "apoli:ingredient",
    "ingredient": {
      "item": "minecraft:trident"
    }
  },
  "prevent_use_condition": {
    "type": "apoli:ingredient",
    "ingredient": {
      "item": "minecraft:trident"
    }
  }
}

This example would make it so that any trident that enters your inventory can't leave it until death, and can't be thrown.