![]() |
VOOZH | about |
An explosion is a physical event, generally destructive, that occurs in several different circumstances. It can destroy nearby blocks, propel and damage nearby entities, and cause fires in some cases. Explosions produce a "shockwave" particle effect. Explosives include ghast fireballs, TNT, End crystals, beds when used outside of the Overworld, and respawn anchors when used outside of the Nether.
The propulsion effect of explosions is often used for TNT cannons.
Each affected entity is accelerated by between 0 and 1 blocks per game tick (0 to 20 blocks per second), added to its current velocity. This effect can accumulate over multiple explosions, even within a single tick.
In Java Edition, the magnitude of the velocity given to each entity in the range of an explosion is calculated with the following code:
magnitude=(1-distance/(2*power))*exposure*knockbackMultiplier*(1-EXPLOSION_KNOCKBACK_RESISTANCE)
Or in formula form, .
In Bedrock Edition, the magnitude of the velocity given to each entity in the range of an explosion is calculated with the following code:
magnitude=(1-(distance-width/2)/(2*power))*exposure*knockbackMultiplier
Distance is measured from the explosion center to the entity's feet position. Width is the width of the affected entity's collision box. A list of explosion powers can be found in the Causes section. Exposure is discussed in the Exposure section. Explosion knockback resistance refers to the attribute explosion_knockback_resistance. The knockback multiplier depends on the cause:
| Cause | Knockback multiplier |
|---|---|
| Default | 1.0 |
| Player-thrown wind charge | 1.22 (float) |
| Breeze wind charge | 0.6 (float) |
To calculate the final velocity, the game takes the vector pointing from the explosion center to the entity's eye position β[Java Edition only] / head position β[Bedrock Edition only] and sets its length to the previously calculated magnitude. TNT entities are the only exception, where the direction goes to the tnt's feet instead of its eyes [verify for Bedrock Edition].
The following code is used to calculate the damage inflicted on an entity:
impact=(1-distance/(2*power))*exposure; damage=(float)((impact*impact+impact)/2*7*(2*power)+1)
In formula form, this is:
.
Players are damaged differently depending on difficulty. The main damage value is used to calculate the final damage in other difficulties:
| Difficulty | Damage calculation |
|---|---|
| Peaceful | No damage |
| Easy | min(damage/2 + 1, damage)
|
| Normal | damage
|
| Hard | damage * 3/2
|
At the end of each game tick only the highest single explosion damage is chosen. Note that the main damage value has a +1 at the end, so all entities in range (within ) of an explosion receive at least 1 damage even when the explosion is fully blocked. The only exceptions are invulnerable entities, Nether stars, and Peaceful players.
The Blast Protection enchantment and the Resistance effect are handled separately.
| Positions | |||
|---|---|---|---|
| Explosion X | 0.0 | Entity X | 1.0 |
| Explosion Y | 0.061250001192092896 | Entity Y | 0.0 |
| Explosion Z | 0.0 | Entity Z | 0.0
|
| Exposure | |||
| Entity width | 0.9800000190734863 | Entity height | 0.9800000190734863 |
| Layout | 3Γ3Γ3
|
Spacing | 0.33108108325802205 Γ 0.33108108325802205 Γ 0.33108108325802205
|
| Negative corner | 0.1621621665160441, 0, 0.1621621665160441
|
Positive corner | 0.8243243330320882, 0.6621621665160441, 0.8243243330320882
|
| Effect on the entity | |||
| Power | 4.0 | Exposure | 27 / 27 |
| Knockback multiplier | 1.0 | Eye height | 0.0
|
| Knockback resistance | 0.0 | Velocity X | 0.8731294800642211 blocks/tick |
| Speed | 0.8747657468328084 blocks/tick | Velocity Y | -0.053479181694784994 blocks/tick |
| Damage | 46.9375 | Velocity Z | 0.0 blocks/tick |
The exposure is a measurement of how much of the explosion is blocked by blocks. It ranges from 0 (when the explosion is entirely blocked) to 1 (when there are no obstructions).
To calculate the exposure, the game picks a set of sample points in the entity and casts rays from the explosion center to each point.
For each ray, the game checks if it intersects with any block hitbox. If it does, it is considered obstructed. The exposure is then calculated by dividing the number of unobstructed rays by the total number of rays.
The sample points are arranged in a 3D grid. , , and represent the X, Y, and Z dimension of the entity's bounding box respectively (measured in blocks).
Points on the grid are spaced by
With the negative corner at
On a small scale, explosions form a roughly spherical crater. The size of that crater is dependent on the power of the explosion and the blast resistance of the destroyed blocks.
To calculate the blocks affected, "rays" are created from the explosion center to the outer points of a 16 by 16 by 16 grid. Each of those rays gets an intensity of .
For each ray, with the position starting at the explosion center:
0.22500001.This typically results in the maximum sphere of block damage having a radius of approximately 4/3 times the explosion power. This can be experimentally verified by repeating an explosion of a set explosion power at some coordinate inside blocks and measuring the radius of the resulting sphere of air.
After the process is done, the list of blocks to blow up is shuffled. For explosions that can cause fires, the game attempts to generate fire in 1β3 of the blocks in the list. This fire is successfully placed only when above an opaque block.
Due to the fact that the game ignores block shapes when checking blast resistance, explosions happening inside a non-full block get dampened heavily. Sufficiently weak explosions happening on ender chests, enchanting tables, or any height of water or lava don't do block damage.
Blocks destroyed by explosions have a chance to drop items as if mined with an unenchanted diamond tool. Blocks destroyed by TNT have a 100% chance of dropping. Other explosions have a 1βpower chance of dropping items. However, dragon eggs, beacons, conduits, heads, shulker boxes and decorated pots[1] always drop from explosions.
The drop chance of blocks in explosions can be customized via three game rules: blockExplosionDropDecayβ[JE only] (includes End crystals), mobExplosionDropDecayβ[JE only] and tntExplosionDropDecay. Only tntExplosionDropDecay is set to false by default. If an explosion's drop decay is set to false, items have a 100% chance of dropping.
Worlds created before 1.21 retain their old tntExplosionDropDecay settings. Upgraded worlds need to use /gamerule tntExplosionDropDecay false to get the new behavior.β[BE only][2]
| Cause | Power | Max. blast resistance | Max. range | Fire | Affected by mobGriefing
|
Notes |
|---|---|---|---|---|---|---|
| π Image Fireball (ghast projectile) |
1 | 3.49 | Entity: 2 Block: 1.5 |
Yes | Yes | Can have its explosion power modified by editing its Entity data. |
| π Image Black wither skull π Image Dangerous wither skull |
1 | 3.49 | Entity: 2 Block: 1.5 |
No | Yes | π Image Dangerous wither skull: Treats blocks breakable in Survival as having β€ 0.8 blast resistance. |
| π Image Creeper |
3 | 12.16 | Entity: 6 Block: 5.1 |
No | Yes | Can have its explosion power modified by editing its Entity data. |
| π Image Sulfur cube (with TNT absorbed) π Image TNT π Image Minecart with TNT π Image Underwater TNTβ[BE & edu only] |
4 | 16.49 | Entity: 8 Block: 6.9 |
No | No | π Image Minecart with TNT: Gets up to an extra 7.5 explosion power (up to 11.5 total) based on the conditions under which it exploded. π Image Underwater TNTβ[BE & edu only]: Ignores water The explosion center is approximately 0.06125 blocks above the TNT's position. |
| π Image Beds π Image Respawn anchor (when used in a wrong dimension) |
5 | 20.83 | Entity: 10 Block: 8.4 |
Yes | No | Death message: "(player) was killed by [Intentional Game Design]" |
| π Image End crystal (when destroyed) |
6 | 25.16 | Entity: 12 Block: 10.2 |
No | No | |
| π Image Charged creeper |
6 | 25.16 | Entity: 12 Block: 10.2 |
No | Yes | Drops heads or skulls of mobs killed by explosion.
Can have its explosion power modified by editing its Entity data. |
| π Image Wither (when spawned, or when killedβ[BE only]) |
7 | 29.49 | Entity: 14 Block: 12 |
No | Yes | |
| π Image Wither (half health charge move)β[BE only] |
8 | -- | Entity: 16 Block: 13.8 |
No | Yes | Breaks any block breakable in Survival (except reinforced deepslate), ignoring blast resistance. |
Despite doing damage to entities, fireworks do not destroy terrain and as such are not counted as conventional explosions.
Lab tables sometimes perform a non-terrain-damaging explosion when creating garbage item.β[BE & edu only]
The following table shows the blast resistance values used in Minecraft's code for all blocks. In add-on documentation for Bedrock Edition, these values are multiplied by 5 when used for the explosion_resistance value in the minecraft:destructible_by_explosion component. For example, cobblestone has a blast resistance of 6, so to make a custom block with the same blast resistance as cobblestone, quintuple that (which is 30) must be stored in its explosion_resistance value.
| Sounds | ||||||||
|---|---|---|---|---|---|---|---|---|
| Sound | Closed captions | Source | Description | Identifier | Translation key | Volume | Pitch | Attenuation distance |
| βExplosion | Blocks | When something explodes | entity.generic.explode | subtitles.entity.generic.explodeβ | 4.0 | 0.56β0.84 | 16 | |
| Sounds | |||||||
|---|---|---|---|---|---|---|---|
| Sound | Closed captions | Source | Description | Identifier | Translation key | Volume | Pitch |
| β ? | Blocks | When something explodes | random.explode | β ? | 4.0 | 1.0 | |
| May 21, 2009 | Notch shows interest in adding an explosive block. | ||||||
|---|---|---|---|---|---|---|---|
| October 24, 2009 | Showed off TNT. | ||||||
| Java Edition Classic | |||||||
|---|---|---|---|---|---|---|---|
| 0.24_SURVIVAL_TEST | Added creepers. | ||||||
| 0.26 SURVIVAL TEST | Added TNT. | ||||||
| Java Edition Indev | |||||||
| 0.31 | 20100122-2251 | Explosions are now "better". | |||||
| 20100124-2310 | Explosions now lose power when going through stronger materials. | ||||||
| Java Edition Alpha | |||||||
| v1.2.0 | preview | Added ghasts, which shoot explosive fireballs. | |||||
| Java Edition Beta | |||||||
| 1.5 | Creepers now become charged when struck by lightning, increasing the explosion's radius and strength. | ||||||
| 1.6 | Test Build 3 | When the player tries to sleep in the Nether, they now cause the bed to explode. | |||||
| 1.8 | Pre-release | Explosions now emit shockwave particles. Prior to Beta 1.8, explosions emitted only smoke. | |||||
| Sound Update | The 'Sound Update' on November 11, 2011 gave TNT a new explosion sound. | ||||||
| Java Edition | |||||||
| 1.0.0 | Beta 1.9 Prerelease 3 | Bed and fireball explosions now cause fires. | |||||
| Beta 1.9 Prerelease 4 | When the player tries to sleep in the End, they now cause the bed to explode. | ||||||
| Enchantment Blast Protection added, which can enhance an armor's resistance against explosions. | |||||||
| Beta 1.9 Prerelease 6 | End crystals added, which can be destroyed with a melee or hit with an arrow or snowball, causing an explosion. | ||||||
| 1.3.1 | 12w24a | Fixed the issue of explosions not propelling players. | |||||
| 12w30a | Explosions now damage the player different amounts on different difficulties. However, no damage is dealt to the player on Peaceful. | ||||||
| 1.4.2 | 12w34a | Added the wither, which shoots black wither skulls. | |||||
| 12w37a | An emergent wither now makes a massive explosion when its health is fully charged. | ||||||
| Blue wither skulls added. | |||||||
| 12w38b | New creeper fall mechanics have been added. Creepers now explode if they fall on the player from a certain height. | ||||||
| 1.5 | ? | Destroyed blocks now have a 1/power chance of dropping as items; previously it was a fixed 30% chance. | |||||
| ? | The Nether's biome now controls whether beds explode. As such, superflat worlds with this biome set have beds exploding in the Overworld. It is not known if Overworld biomes in the Nether allow sleeping as a result of this.β[more information needed] | ||||||
| 1.8.2 | pre1 | Explosions are no longer directionally biased. | |||||
| pre7 | Explosions no longer deal knockback to players in Creative mode even if they are not flying. | ||||||
| 1.9 | 16w02a | Explosions once again deal knockback to players in Creative mode but only if they are not flying. | |||||
| 1.14 | 19w11a | Destroyed blocks from TNT or minecart with TNT explosions now have a 100% chance of dropping as items. | |||||
| 1.15 | pre1 | Explosions no longer create smoke particles. | |||||
| It is stated in bug report MC-165991 that the removal of these particles is as part of a performance optimization, and that they will be reimplemented in a future version once performance is less of a concern. | |||||||
| 1.16 | 20w12a | Added respawn anchors, which explode in a similar fashion to a bed, if charged and used in the Overworld and the End dimensions. | |||||
| 20w18a | The Nether wastes biome no longer allows for beds to explode in the Overworld.[3]β[more information needed] | ||||||
| 1.16.2 | ? | Custom dimensions can specify whether beds and/or respawn anchors explode when used. | |||||
| 1.19.3 | 22w44a | Added the following game rules:
| |||||
| 1.21.9 | 25w33a | Explosions now create smoke particles again. | |||||
| Pocket Edition Alpha | |||||||
|---|---|---|---|---|---|---|---|
| v0.1.0 | Added TNT. | ||||||
| v0.2.1 | TNT now actually explodes. | ||||||
| v0.4.0 | Added creepers. | ||||||
| v0.12.1 | build 1 | Creepers now become charged when struck by lightning, increasing the explosion's radius and strength. | |||||
| Added ghasts, which shoot explosive fireballs. | |||||||
| Enchantment Blast Protection added, which can enhance an armor's resistance against explosions. | |||||||
| When the player tries to sleep in the Nether, they cause beds to explode. | |||||||
| build 10 | Added explosion particles. | ||||||
| TNT now uses a new explosion sound. | |||||||
| v0.14.0 | build 1 | An invalid mixture of liquids in cauldrons now result in a non-damaging explosion effect. | |||||
| v0.16.0 | build 4 | Withers added. | |||||
| Pocket Edition | |||||||
| 1.0.0 | alpha 0.17.0.1 | End crystals added. | |||||
| When the player tries to sleep in the End, they now cause the bed to explode. | |||||||
| 1.0.7 | Explosions no longer deal damage to a player, if the explosion is in water. | ||||||
| Bedrock Edition | |||||||
| 1.4.0 | beta 1.2.20.1 | Creating garbage in lab table sometimes causes explosion sound. | |||||
| Added underwater TNT, which can damage terrain underwater. | |||||||
| ? | Removed the non-damaging explosion effect from cauldrons, replaced with a hiss and smoke. | ||||||
| 1.10.0 | Added minecraft:explosion_resistance to determine the blast resistance for custom blocks. | ||||||
| 1.19.20 | Preview 1.19.20.23 | Replaced minecraft:explosion_resistance with minecraft:destructible_by_explosion that can determine the blast resistance of a custom block in add-ons. | |||||
| 1.21.0 | Preview 1.21.0.20 | Added the game rule tntExplosionDropDecay.
| |||||
| TNT explosions now have a 100% item drop rate by default.[4] | |||||||
| Legacy Console Edition | |||||||
|---|---|---|---|---|---|---|---|
| Xbox 360 | Xbox One | PS3 | PS4 | PS Vita | Wii U | Switch | |
| TU1 | CU1 | 1.00 | 1.00 | 1.00 | Patch 1 | 1.0.1 | Added TNT and creepers, which can explode. |
| TU7 | Enchantment Blast Protection added, which can enhance an armor's resistance against explosions. | ||||||
| TU9 | End crystals added, which can be destroyed with a melee or hit with an arrow or snowball, causing an explosion. | ||||||
| TU14 | 1.04 | Explosions now damage the player different amounts on different difficulties. However, no damage is dealt to the player on Peaceful. | |||||
| TU19 | CU7 | 1.12 | 1.12 | 1.12 | Added the wither, which shoots black wither skulls and blue wither skulls. | ||
| TU43 | CU33 | 1.36 | 1.36 | 1.36 | Patch 13 | Explosions no longer deal knockback to players, which are flying in Creative mode. | |
Issues relating to "Explosion" are maintained on the bug tracker. Issues should be reported and viewed there.