Modify Stat
Modifies the value of a certain statistic with Attribute Modifiers.
Type ID: origins:modify_stat
Note
Refer to Minecraft Fandom Wiki: Statistics (Resource location) for a list of vanilla statistics you can modify.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
stat |
Identifier | The namespace and ID 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": "minecraft.custom: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.