Tick
A Mechanic that is run every x ticks.
Type ID: ccpacks:tick
Fields
| Field | Type | Default | Description |
|---|---|---|---|
interval |
Integer | 1 |
Interval of ticks between subsequent executions of the specified actions. Must be at least 1. |
block_action |
Block Action Types | optional | The action to execute on the block that has the power each interval. |
block_condition |
Block Condition Types | optional | The condition to checked on the block in order to run the block action. |
Example
{
"type": "ccpacks:tick",
"interval": 100,
"block_action": {
"type": "origins:explode",
"power": 5,
"destruction_type": "none",
"damage_self": false,
"create_fire": false
}
}
This example mechanic will create a non-destructive explosion at the block every 5 seconds (100 ticks).