Modify Resource

Entity Action Type

Modifies the value of a certain resource with Attribute Modifiers.

Type ID: origins:modify_resource

Fields

Field Type Default Description
modifier Attribute Modifier This modifier will be applied to the current value of the target power.
resource Identifier This power will have its value modified; as long as the power is using the Resource (Power Type) or the Cooldown (Power Type).

Examples

"entity_action": {
    "type": "origins:modify_resource",
    "modifier": {
        "operation": "add_base_early",
        "value": 1
    },
    "resource": "example:1st_resource"
}

This example will add 1 to the example:1st_resource (data/example/powers/1st_resource.json) power.

"entity_action": {
    "type": "origins:modify_resource",
    "modifier": {
        "operation": "set_total",
        "value": 0,
        "resource": "example:2nd_resource"
    },
    "resource": "example:1st_resource"
}

This example will set the value of the example:1st_resource (data/example/powers/1st_resource.json) power as the value of the example:2nd_resource (data/example/powers/2nd_resource.json) power.