Explode
Summons an explosion at the position of the entity.
Type ID: origins: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 ("destroy", "break" or "none" respectively). |
damage_self |
Boolean | true |
Determines if the player should take damage from the summoned explosion. |
indestructible |
Block Condition Type | optional | If specified, the blocks that fulfills the specified block condition type is not destroyed by the summoned explosion. |
destructible |
Block Condition Type | optional | If specified, the blocks that fulfills this specified block condition type are the only blocks that are destroyed by the summoned explosion. |
create_fire |
Boolean | false |
Determines if the explosion should create fire. |
Examples
"entity_action": {
"type": "origins:explode",
"power": 5,
"destruction_type": "none",
"damage_self": false,
"create_fire": false
}
This example will summon an explosion that will not damage the entity that has summoned the explosion, or the terrain, or create fire.