Skip to content

Resource

Mechanic Type.

Defines a resource for the block. Holds a persistent integer value, which can be modified by the Change Resource (Block Action Type) and checked with the Resource (Block Condition Type).

Type ID: ccpacks:resource

Fields

Field Type Default Description
min Integer 0 The minimum value of the resource.
max Integer 1 The maximum value of the resource.
start_value Integer 0 The value of the resource when the block first gains this mechanic.

Example

{
    "type": "ccpacks:resource",
    "min": 0,
    "max": 100,
    "start_value": 20
}

This example will create a resource with a minimum value of 0, maximum value of 1 and a starting value of 20.