generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 0
Action On Gain Experience
Provismet edited this page Jul 1, 2023
·
1 revision
Performs an action every time the player gains experience points.
Type ID: proviorigins:action_on_gain_experience
Field | Type | Default | Description |
---|---|---|---|
entity_action |
Entity Action Type | The action to execute from this entity. | |
comparison |
Comparison | ">=" |
How the amount of experience gained (in a single instance) should be compared. |
compare_to |
Integer | 1 |
The value to compare to. |
{
"type": "proviorigins:action_on_gain_experience",
"entity_action": {
"type": "origins:damage",
"amount": 1,
"damage_type": "minecraft:magic"
}
}
This example makes the player take 0.5 hearts of damage every time they gain experience (once per experience orb).