Skip to content

On Step

Mechanic Type.

A Mechanic that is activated when a player walks on the block.

Type ID: ccpacks:on_step

Fields

Field Type Default Description
block_action Block Action Type optional The action to execute on the block when it is stepped on.
entity_action Entity Action Type optional The action to execute on an entity when they step on the block.
block_condition Block Condition Type optional The condition to checked in order to run the block action.

Example

{
    "type": "ccpacks:on_step",
    "block_action": {
        "type": "origins:set_block",
        "block": "minecraft:air"
    },
    "entity_action": {
        "type": "origins:set_on_fire",
        "duration": 5
    }
}

This mechanic will set the entity that steps on the block on fire and remove said block.