generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 176
Attribute (Condition)
apace100 edited this page Mar 10, 2021
·
3 revisions
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.
Tutorials (Data packs)
Video Tutorial by CandyCaneCazoo
Tutorials (Add-ons)
Working with more unique powers
Lists
List of vanilla damage source names
Data Types