Skip to main content

Explode (Block Action Type)

Creates an explosion of a given power at the block's position.

Type ID: apoli:explode

Fields

FieldTypeDefaultDescription
powerFloatrequiredThe power of the explosion.
destruction_typeDestruction Type"break"What the explosion does to the terrain.
damage_targetsBooleantrueWhether entities caught in the blast take damage. false still breaks blocks and applies knockback.
indestructibleBlock Condition TypeoptionalBlocks that pass this condition aren't destroyed by the explosion.
destructibleBlock Condition TypeoptionalOnly blocks that pass this condition are destroyed by the explosion.
create_fireBooleanfalseWhether the explosion starts fires.

Examples

"block_action": {
    "type": "apoli:explode",
    "power": 5,
    "destruction_type": "none",
    "create_fire": false
}

This creates an explosion at the block's position that neither damages the terrain nor starts fires.

"block_action": {
    "type": "apoli:explode",
    "power": 5,
    "destruction_type": "break",
    "destructible": {
        "type": "apoli:in_tag",
        "tag": "minecraft:impermeable"
    },
    "create_fire": false
}

This creates an explosion at the block's position that only destroys blocks in the #minecraft:impermeable block tag (data/minecraft/tags/blocks/impermeable.json).