Attribute
Applies a check towards a specific attribute value of the player. For a list of attributes available in vanilla, see Minecraft Wiki: Attributes.
Type ID: origins:attribute
Fields:
| Field | Type | Default | Description |
|---|---|---|---|
attribute |
Identifier | ID of the attribute of which the value should be checked. | |
comparison |
Comparison | How to compare the attribute's value to the specified value. | |
compare_to |
Float | Which value to compare the attribute's value to. |
Example:
"condition": {
"type": "origins:attribute",
"attribute": "minecraft:generic.armor",
"comparison": ">=",
"compare_to": 10.0
}
This condition makes a power only activate when the player is wearing enough armor to reach half of the displayed armor protection value.