-
Notifications
You must be signed in to change notification settings - Fork 2
Default Item Attributes
dhyces edited this page Aug 27, 2024
·
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:
-
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.
{
"type": "replace",
"target": "minecraft:generic.attack_damage",
"value": 6,
"operation": "ADDITION",
"uuid": "CB3F55D3-645C-4F38-A497-9C13A33DB5CF"
}
-
target
: the attribute ID to replace -
value
: the value to replace it with -
operation
: the operation to change to -
uuid
: the UUID of the modifier to replace
{
"type": "remove",
"target": "minecraft:generic.attack_damage"
}
-
target
: the attribute ID to remove
equipment_slot
is the slot in which to apply these attributes to the player when equipped in. Valid values: MAINHAND, OFFHAND, HEAD, CHEST, LEGS, FEET
. Curios slot identifiers can also be used as of 1.1.0.