Attribute
Applies one or more attribute modifiers. Does NOT support a condition
, use Conditioned Attribute instead if you need one.
Type ID: origins:attribute
Fields
Field | Type | Default | Description |
---|---|---|---|
modifier |
Attributed Attribute Modifier | optional | If specified, this modifier will be applied to its corresponding attribute. |
modifiers |
Array of Attributed Attribute Modifiers | optional | If specified, these modifiers will be applied to their corresponding attributes. |
Example
{
"type": "origins:attribute",
"modifier": {
"name": "Max health increase",
"attribute": "minecraft:generic.max_health",
"value": 4,
"operation": "addition"
}
}
This power would increase the player's maximum health by 4 (two hearts).