Attribute (Condition) - apace100/origins-fabric GitHub Wiki
Entity Condition. 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:
attribute
, string: _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
, double: 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.