create_explosion
Creates one or more explosions at the trigger location.
Categories: combat, world
Required arguments
| Key(s) | Description | Type |
|---|
amount | The number of explosions to create (one per tick). Supports expressions. | EXPRESSION |
power | The explosion power. Vanilla TNT is 4. Supports expressions. | EXPRESSION |
Optional arguments
| Key(s) | Description | Type | Default |
|---|
player_as_damager | If true, the player is attributed as the source of explosion damage. | BOOLEAN | false |
create_fire | Whether the explosion creates fire. | BOOLEAN | true |
break_blocks | Whether the explosion breaks blocks. | BOOLEAN | true |
Trigger parameters required
Example
effects:
- id: create_explosion
args:
amount: 1
power: <value>
player_as_damager: true # ← Optional
create_fire: true # ← Optional
break_blocks: true # ← Optional
Behaviour
| Setting | Value |
|---|
| Run order | NORMAL |
| Supports delay | true |
| Reloads on plugin reload | true |