Explode

Entity Action

Makes the entity explode, and whether if they take damage from the explosion or be able to destroy the terrain.

Type ID: apoli:explode

Fields

Field Type Default Description
power Float Determines the power of the explosion.
destruction_type String "break" Determines if the explosion should destroy the terrain, destroy the terrain and drop the loot of the blocks, or none. Accepts either "destroy", "break" or "none".
damage_self Boolean true Determines if the player should take damage from the explosion.
indestructible Block Condition optional If set, blocks specified in this block condition object is not destroyed by the explosion.
destructible Block Condition optional If set, blocks specified in this block condition object will be the only blocks destroyed by the explosion.
create_fire Boolean false Determines if the explosion should create fire.

Example

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

Makes the entity explode without damaging itself and the terrain.