Skip to content

Trigger Mechanic

Note

This action will only work on CCPacks blocks with the Triggerable (Mechanic Types) Mechanic.

Triggers a block's mechanic. Useful with the Offset (Block Action Type) meta action.

Type ID: ccpacks:trigger_mechanic

Fields

Field Type Default Description
mechanic Identifier optional ID of the mechanic type that defines the resource. Must be a Triggerable which exists on the block.

Example

"block_action": {
    "type": "ccpacks:trigger_mechanic",
    "mechanic": "example_pack:smelt"
}

triggers the example_pack:smelt mechanic on the block.