Skip to content

Action On Gain Experience

Provismet edited this page Jul 1, 2023 · 1 revision

Power Type

Performs an action every time the player gains experience points.

Type ID: proviorigins:action_on_gain_experience

Fields

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.

Examples

{
    "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).