Explode (Entity Action Type)
Creates an explosion of a given power at the entity's position.
Type ID: apoli:explode
Fields
| Field | Type | Default | Description |
|---|---|---|---|
power | Float | required | The power of the explosion. |
destruction_type | Destruction Type | "break" | What the explosion does to the terrain. |
damage_self | Boolean | true | Whether the entity that ran the action takes damage from the explosion. |
damage_targets | Boolean | true | Whether 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_condition | Bi-entity Condition Type | optional | Only 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. |
indestructible | Block Condition Type | optional | Blocks that pass this condition aren't destroyed by the explosion. |
destructible | Block Condition Type | optional | Only blocks that pass this condition are destroyed by the explosion. |
create_fire | Boolean | false | Whether 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.