你可以帮助我们来翻译此条目,但请勿使用机器翻译。
Template:Translation:未知参数。
一个TNT爆炸。
爆炸(Explosion)是一种可以通过不同方式产生,性质为破坏的物理事件。它可以破坏周围的方块,弹开和伤害近处的玩家和实体,并会使周围着火。爆炸会产生"shockwave(冲击波)"的颗粒效果。
多个近距离爆炸也许会将物体弹射得更远,但这不会对方块的破坏有叠加效果。这是因为每个爆炸所会造成的方块破坏都是单独计算的,因此方块的爆炸抗性并不会因为爆炸而被削弱。
因爆炸而被破坏的方块有几率变成可拾起的物品(否则则会消失),这个几率为1除以爆炸的威力。如普通爬行者爆炸的威力为3,那么被它炸毁的方块将有1⁄3的几率可以被回收。
| 爆炸种类 | 威力 | 备注 |
|---|---|---|
| 凋灵(在生成时) | 7 | |
| 末影水晶 | 6 | 也许会产生火 |
| 高压爬行者 | 6 | |
| 床(在下界或在末地中) | 5 | 会产生火焰 |
| TNT | 4 | |
| 爬行者 | 3 | |
| 恶魂的火球 | 1 | 会产生火焰 |
| 黑色凋灵之首 | 1 | |
| 蓝色凋灵之首 | 1 | 会视周围方块的爆炸抗性不高于4。(不会影响基岩和末地传送门) |
1352条光束从爆炸中心扩散至边的长度为二的一个立方体表面上均匀分布的点。(不过,这只是定义了他们的方向,而不是它们的长度。)
这里可以看到爆炸摧毁方块后的大致球状模式。
效果
方块被破坏的形态
爆炸可以摧毁附近的方块。其爆炸的效果是从爆炸中心射出大量射线并对附近各个方块的影响作独立计算,正如右图所示。
- 每条射线都有一个初步的随机从[0.7×威力至1.3×威力]中计算出来的爆炸影响。
- 爆炸影响的效果会以射线上每0.3(段长)为一个单位来进行计算。
- 爆炸影响中的(方块抵抗力/5+0.3)×段长会在每个单位被非空气方块(无论是否已被破坏)吸收,并在每个单位间以段长×0.75衰退,直到完全被吸收或衰退。
- 如果一个方块不能在任何在其以内的单位完全吸收爆炸影响,它便会被认为是已被破坏。(空气方块也可以被破坏)。
从上面的过程,可以推导出以下的结果:
- 一场爆作在半空中的爆炸半径(即仅衰退,不会被方块吸收)=[1.3×威力/(段长×0.75)]×段长=10.2(被雷击中过的爬行者),6.9(TNT),5.1(爬行者),1.5(火球)。例如,TNT爆炸可以摧毁一把七方块以外的火把。但是爆炸能摧毁多少方块具有不确定性,也取决于爆炸发生的具体位置。
- 最低所需的可用来吸收在附近的空气发生的爆炸的最大爆炸力量的方块抵抗力=((1.3×威力-衰退值(所经过的单位)×段长×0.75)/段长-0.3)×5。方块要不被破坏,就要在它之内的第一个单位吸收所有的爆炸力量。
要注意:多个的爆炸效果,无论爆炸时间差距怎样少,在一个方块上都是独立计算,并连续地为每爆炸计算影响。而在爆炸的历史上,方块从没有过"临时生命"或类似的性质。这意味着爆炸对方块并没有累积性效应。
与实体的互动
爆炸对实体和方块有不同的效果。如果实体是在其威力×2的伤害半径会被其伤害和移动。要注意的是"伤害半径"与对方块产生影响的"爆炸半径"是不同的。
- 对于每个在半径内的实体,定义爆作影响力=(1-与爆炸的距离/半径)×接触率。
- 对实体造成(爆作的影响2+爆作影响力)×8×威力+1点(半个心,所以不用到处除以2)的伤害。
- 向从爆炸到实体的方向移动实体,并使它的速度增加爆作影响力的数值。
从上面的过程,可以推导出以下结果:
- 如果实体在半径内,它们永远至少会有1点伤害,不论其与爆炸有接触与否。
- 实体所可能承受的最大伤害(在爆炸中心与其100%接触)=(1×1+1)×8×威力+1点伤害=97(被雷击中过的爬行者),65(TNT),49(爬行者),17(火球)。当实体与爆炸中心有一段距离或有方块挡着,他们所受的伤害会较小。
- 实体从TNT爆炸所可承受的最大加速为一,在爆炸中心与其100%接触。
然后不同的伤害效果会接踵而至。例如,现有的物品将被破坏,在玩家身上的盔甲将吸收一部分伤害。在过程中掉下的物品,或实际上之后,对爆炸没有影响,因为它们与爆炸之间没有互动。
该推力效果往往会用于TNT大炮。
一个已启动的TNT「AABB」因为四舍五入法而出现定向不对称的点(1/2.96的空白)。
爆炸接触率的计算
爆炸接触率仅仅是实体的多少是与爆炸中心「接触」,并已近似至以实体可见的样本点的比例。近似算法有抽样误差,并造成定向推进的不对称。例如,一个典型的TNT大炮向西方发射时拥有最大范围的其中部分原因是因为已启动的TNT最大采样点接触率在这个方向。
引起火灾
如果爆炸有这个能力,它会随机令所有被破坏的在不透明方块上的空气方块的1/3产生火。这在Beta 1.6 - Beta 1.8版本中出现问题,导致此现象不会发生。
爆炸抗性
| 方块名称 | 爆炸抗性 |
|---|---|
| 屏障 | 3,600,000.8 |
| 基岩 | 3,600,000 |
| 结构方块 | 3,600,000 |
| 命令方块 | 3,600,000 |
| End Gateway Block | ? |
| 末地传送门 | 3,600,000 |
| 末地传送门框架 | 3,600,000 |
| 铁砧 | 1,200 |
| 附魔台 | ? |
| 黑曜石 | 1,200 |
| 末影箱 | 600 |
| 流动水 | ? |
| 熔岩 | 100 |
| 水 | 100 |
| 龙蛋 | 9 |
| 末地石 | 9 |
| 煤炭块 | 6 |
| 钻石块 | 6 |
| 绿宝石块 | 6 |
| 金块 | 6 |
| 铁块 | 6 |
| 红石块 | 6 |
| 红砖块 | 6 |
| 红砖楼梯 | 6 |
| 硬化粘土 | 4.2 |
| 安山岩 | 6 |
| 圆石 | 6 |
| 圆石楼梯 | 6 |
| 圆石墙 | ? |
| 闪长岩 | 6 |
| 花岗岩 | 6 |
| 铁栏杆 | 6 |
| 唱片机 | 6 |
| 苔石 | ? |
| 下界砖 | ? |
| 下界砖栅栏 | 6 |
| 下界砖楼梯 | 6 |
| 海晶石 | 6 |
| 紫珀块 | 6 |
| 紫珀柱 | 6 |
| 紫珀台阶 | 6 |
| 紫珀楼梯 | 6 |
| Red Nether Brick | ? |
| 石头 | 6 |
| Stone Brick | ? |
| 石砖楼梯 | 6 |
| 石头台阶 | 6 |
| 铁门 | 5 |
| 铁活板门 | 5 |
| 刷怪笼 | ? |
| 蜘蛛网 | 4 |
| 发射器 | 3.5 |
| 投掷器 | 3.5 |
| 熔炉 | 3.5 |
| 信标 | 3 |
| 煤矿石 | 3 |
| 可可果 | ? |
| 钻石矿石 | 3 |
| 绿宝石矿石 | 3 |
| 方块名称 | 爆炸抗性 |
|---|---|
| 栅栏 | 3 |
| 栅栏门 | 3 |
| 金矿石 | 3 |
| 漏斗 | 4.8 |
| 铁矿石 | 3 |
| 青金石块 | ? |
| 青金石矿石 | 3 |
| 下界石英矿石 | 3 |
| 红石矿石 | 3 |
| 活板门 | ? |
| Wood Planks | ? |
| 木门 | 3 |
| 木质台阶 | ? |
| 木质楼梯 | ? |
| 箱子 | 2.5 |
| 工作台 | 2.5 |
| 陷阱箱 | 2.5 |
| 炼药锅 | 2 |
| 木头 | 2 |
| 书架 | 1.5 |
| 旗帜 | 1 |
| 南瓜灯 | 1 |
| 西瓜 | 1 |
| 生物头颅 | 1 |
| 下界疣块 | 1 |
| 南瓜 | 1 |
| 告示牌 | 1 |
| 末地石砖 | 9 |
| 石英块 | 0.8 |
| 石英楼梯 | 0.8 |
| 音符盒 | 0.8 |
| 红砂岩 | 0.8 |
| 红砂岩楼梯 | 0.8 |
| 砂岩 | 0.8 |
| 砂岩楼梯 | 0.8 |
| 羊毛 | 0.8 |
| Monster Egg | ? |
| 激活铁轨 | 0.7 |
| 探测铁轨 | 0.7 |
| 动力铁轨 | 0.7 |
| 铁轨 | 0.7 |
| 草径 | ? |
| 黏土块 | 0.6 |
| 耕地 | 0.6 |
| 草方块 | 0.6 |
| 沙砾 | 0.6 |
| 海绵 | 0.6 |
| 湿海绵 | 0.6 |
| 酿造台 | 0.5 |
| 按钮 | 0.5 |
| 蛋糕 | 0.5 |
| 砂土 | 0.5 |
| 泥土 | 0.5 |
| 霜冰 | 0.5 |
| 干草捆 | 0.5 |
| 冰 | 0.5 |
| 浮冰 | 0.5 |
| 拉杆 | 0.5 |
| 岩浆块 | 0.5 |
| 方块名称 | 爆炸抗性 |
|---|---|
| 菌丝体 | 0.6 |
| 活塞 | 0.5 |
| Piston Extension | ? |
| 活塞头 | 0.5 |
| 压力板 | 0.5 |
| 沙子 | 0.5 |
| 灵魂沙 | 0.5 |
| 黏性活塞 | 0.5 |
| 测重压力板 | ? |
| 仙人掌 | 0.4 |
| 紫颂花 | 0.4 |
| 紫颂植株 | 0.4 |
| 梯子 | 0.4 |
| 下界岩 | 0.4 |
| 玻璃 | 0.3 |
| 玻璃板 | 0.3 |
| 荧石 | 0.3 |
| 红石灯 | 0.3 |
| 海晶灯 | 0.3 |
| 染色玻璃 | 0.3 |
| 染色玻璃板 | 0.3 |
| 床 | 0.2 |
| 阳光探测器 | ? |
| 巨型蘑菇 | ? |
| 树叶 | 0.2 |
| 雪 | 0.1 |
| 藤蔓 | 0.2 |
| 地毯 | 0.1 |
| Snow (layer) | ? |
| 空气 | 0 |
| 胡萝卜 | 0 |
| 枯萎的灌木 | 0 |
| 末地烛 | 0 |
| 火 | 0 |
| 花盆 | 0 |
| 花 | 0 |
| 流动熔岩 | ? |
| 草 | 0 |
| 睡莲 | 0 |
| 上锁的箱子 | 0 |
| 西瓜茎 | 0 |
| 蘑菇 | 0 |
| 下界传送门 | 0 |
| 下界疣 | 0 |
| 马铃薯 | 0 |
| 南瓜茎 | 0 |
| 红石比较器 | 0 |
| 红石中继器 | 0 |
| 红石火把 | 0 |
| 红石粉 | 0 |
| 树苗 | 0 |
| 黏液块 | 0 |
| 结构空位 | 0 |
| 甘蔗 | 0 |
| TNT | 0 |
| 火把 | 0 |
| 绊线 | ? |
| 绊线钩 | 0 |
| 小麦 | 0 |
典型伤害半径
玩家如果在1-、2-、或4-TNT爆炸中100%接触半径将得到一定损害,如下图所示的在每个圆圈内的伤害量已用数字显示出来。
历史
| survival test | |||||
|---|---|---|---|---|---|
| 0.24 | Creepers were first introduced in on August 24, 2009, based on a failed pig model Notch had created. | ||||
| 0.26 SURVIVAL TEST 9 | TNT was added. | ||||
| Java版Indev | |||||
| January 22, 2010 | Explosions are now "better". | ||||
| January 25, 2010 | Explosions now lose power when going through stronger materials. | ||||
| Java版Alpha | |||||
| 1.2.0 | Added Ghasts, which shoot explosive ghast fireballs. | ||||
| Java版Beta | |||||
| 1.5 | Creepers become charged when struck by lightning, increasing the explosion's radius and strength. | ||||
| 1.6 | Trying to sleep in the Nether causes the bed to explode. | ||||
| 1.8 | Explosions will now emit shockwave particles after exploding. Prior to Beta 1.8, explosions only emitted smoke. | ||||
| Sound Update | The 'Sound Update' of November 13th 2011 gave TNT a new explosion sound. | ||||
| release | |||||
| 1.0.0 | Beta 1.9-pre3 | Bed and ghast explosions cause fire. | |||
| Beta 1.9-pre4 | Trying to sleep in the End causes the bed to explode. | ||||
| Enchantment "Blast Protection" added, protecting against explosions. | |||||
| Beta 1.9-pre6 | Ender Crystal added, an entity which sits atop of a block of bedrock. It can be destroyed with a melee or hit with an arrow or snowball, causing an explosion. | ||||
| 1.3.1 | 12w24a | Fixed explosions not pushing back players. | |||
| 1.3.1 | Explosions damage the player different amounts on different difficulties, and no damage is dealt to the player on peaceful. | ||||
| 1.4.2 | 12w34a | Added the Wither, which shoots black wither skulls. | |||
| 12w37a | Wither will make a massive explosion upon its creation after its health is fully charged. | ||||
| Blue wither skulls added. | |||||
| 12w38b | New Creeper fall mechanics; Creepers will explode if they fall on the player from a certain height. | ||||
| 1.5 | Destroyed blocks have a 1/power chance of dropping as items; previously it was a fixed 30% chance. | ||||
| 1.8.2 | Explosions are no longer directionally biased. | ||||
| 携带版Alpha | |||||
| 0.12.1 | Added explosion particles. | ||||
你知道吗
- Explosions with a power greater than 100 look mostly the same from the outside, as only certain lines are used to determine if a block breaks. However, some of those lines continue underground.
- An explosion powerful enough to break bedrock would have a blast radius of over 30,000,000 blocks. If it were an uninterrupted blast, it would cover 238,775,501.2 blocks. However, explosions only follow certain lines, not every block (see previous).
- However, this would not drop the bedrock.
- Explosions going off in flowing water or lava will apply propulsion to entities, but won't affect any blocks, regardless of the blocks' blast resistance.
- Underwater explosions won't emit smoke particles.
- Explosions can redirect projectiles, including Ender Pearls.
- Explosions can break blocks on the other side of surviving blast-resistant blocks.
- Explosions will propel dead mobs' bodies if they go off just after the mob dies.
- If primed TNT explodes in a large, solid cube of stone blocks, it will create an exact 3x3x3 cube inside.
- Experimentation confirms that a TNT detonation will cause a 3x3 hole in a solid block of anything with a blast resistance less than that of water, but more than 12.5 (e.g. crafting tables). This implies that 3x3 is the minimum possible result of a TNT detonation without the blast being resisted altogether.
- If a Falling Sand entity falls into Primed TNT when in water, it will do block damage.


