Skip to main content

Explode (Entity Action Type)

Creates an explosion of a given power at the entity'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_selfBooleantrueWhether the entity that ran the action takes damage from the explosion.
damage_targetsBooleantrueWhether everything other than the entity that ran the action takes damage. Set it to false for a blast that still breaks blocks and knocks entities back without hurting them.
bientity_conditionBi-entity Condition TypeoptionalOnly entities that pass this take damage, with the entity that ran the action as the actor and the entity in the blast as the target.
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

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

This explosion doesn't hurt the entity that ran the action, doesn't damage the terrain and doesn't start fires.

"entity_action": {
    "type": "apoli:explode",
    "power": 4,
    "destruction_type": "destroy",
    "damage_self": false,
    "damage_targets": false
}

This one levels the terrain and shoves every nearby entity away without dealing any damage. Knockback is applied separately from damage, so it still happens with damage_targets: false.