Skip to content

Resource

Note

This condition will only work on CCPacks blocks with the Resource (Mechanic Type).

Checks the value of a power that uses the Resource (Mechanic Type).

Type ID: ccpacks:resource

Fields

Field Type Default Description
resource Identifier The namespace ID of a mechanic that will be evaluated.
comparison Comparison "==" How the value of the mechanic that will be evaluated should be compared to the specified value.
compare_to Integer 0 The value to compare the value of the mechanic that will be evaluated to.

Example

"block_condition": {
    "type": "ccpacks:resource",
    "resource": "example:resource",
    "comparison": ">=",
    "compare_to": 1
}