Skip to content

Callback Power Tick

Invokes an action every time the power ticks.

Type ID: kaya:callback/power/tick

Format

Field Type Default Description
action Action optional If specified, this action will be invoked every interval ticks.
rising_action Action optional If specified, this action will be invoked in the first interval tick the power was active.
falling_action Action optional If specified, this action will be invoked in the first interval tick the power was inactive.
interval Int Provider 20 Determines the period for which this power will tick. The provided integer is automatically clamped within the range of 0 and 2,147,483,647.

Example

{
    "type": "kaya:callback/power/tick",
    "action": {
        "type": "kaya:set_entity_on_fire",
        "ticks": 40,
        "entity": "this"
    },
    "interval": 100
}

This example sets the entity on fire for 2 seconds every 5 seconds.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.