Modify Stat

Entity Action Type

Modifies the value of a certain statistic with Attribute Modifiers.

Type ID: origins:modify_stat

Fields

Field Type Default Description
stat Stat The type and name of the statistic to be modified.
modifier Attribute Modifier This modifier will be applied to the current value of the statistic specified.

Examples

"entity_action": {
    "type": "origins:modify_stat",
    "stat": {
        "type": "minecraft:custom",
        "id": "minecraft:time_since_rest"
    },
    "modifier": {
        "operation": "add_base_early",
        "value": 24000
    }
}

This example will add 24000 to the value of the player's minecraft.custom:minecraft.time_since_rest statistic.

"entity_action": {
    "type": "origins:modify_stat",
    "stat": {
        "type": "minecraft:used",
        "id": "origins:orb_of_origin"
    },
    "modifier": {
        "operation": "add_base_early",
        "value": 1
    }
}

This example will add 1 to the value of the player's minecraft.used:origins.orb_of_origin statistic.