Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Create Explosion

The arc:create_explosion reward type creates an explosion at the player's current location.

Parameters

ParameterTypeRequiredDefaultDescription
radiusfloatRequired-No default valueExplosion radius.
causes_firebooleanOptionalfalseDoes it start fires.
block_interactionstringOptionalNONEExplosion interaction (NONE, BLOCK, TNT, MOB).

Example

The following example creates a small, safe explosion when the player lands after a long fall.

data/my_datapack/arc/explosive_landing.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_land",
"conditions": [
{
"type": "arc:entity_data",
"properties": [
{
"id": "arc:fall_distance",
"value": "10",
"comparison": ">="
}
]
}
],
"rewards": [
{
"type": "arc:create_explosion",
"radius": 2.0,
"causes_fire": false,
"block_interaction": "NONE"
}
]
}

Compatible Action Types