-
Notifications
You must be signed in to change notification settings - Fork 2
Default Item Attributes
amo edited this page Mar 20, 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",
"attributes": [
{
"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.
attributes
is a list of objects which requires:
-
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.
equipment_slot
is the slot in which to apply these attributes to the player when equipped in. Valid:MAINHAND, OFFHAND, HEAD, CHEST, LEGS, FEET