Skip to content

Default Item Attributes

dhyces edited this page Jun 25, 2023 · 9 revisions

Alembic allows you to give items default attributes that exist on all instances of the item. datapack/data/alembic/alembic/item_stats/golden_chestplate.json

{
  "id": "minecraft:golden_chestplate",
  "modifiers": [
    {
      "type": "append",
      "attribute": "alembic:arcane_damage.resistance",
      "value": 6,
      "operation": "ADDITION",
      "uuid": "f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454"
    }
  ],
  "equipment_slot": "CHEST"
}
  • id is the item id to apply these attributes to.
  • modifiers is a list of objects which must be one of the following types:

- append

  • attribute, the attribute ID to apply.
  • value, the amount of the attribute to give the item.
  • operation, the Attribute Modifier operation to apply.
  • uuid a Java UUID for the unique instance of this attribute modifier.

- replace

  • target: the attribute ID to replace
  • replacements: a map of damage types to a decimal number. The base attributes are used from the damage types and the base value is split by the amount given.

- remove

  • target: the attribute ID to remove

equipment_slot is the slot in which to apply these attributes to the player when equipped in. Valid: MAINHAND, OFFHAND, HEAD, CHEST, LEGS, FEET

Clone this wiki locally