跳转至

Explode

文档版本:1.21.0.24

Defines how the entity explodes.

架构

explode:
{
  boolean "breaks_blocks" : opt
  boolean "causes_fire" : opt
  boolean "destroy_affected_by_griefing" : opt
  boolean "fire_affected_by_griefing" : opt
  array "fuse_length" : opt
  {
    number "0..0" : opt
    number "1..1" : opt
  }
  number "fuse_length" : opt
  boolean "fuse_lit" : opt
  number "max_resistance" : opt
  number "power" : opt
}
breaks_blocksboolean
If true, the explosion will destroy blocks in the explosion radius.
causes_fireboolean
If true, blocks in the explosion radius will be set on fire.
destroy_affected_by_griefingboolean
If true, whether the explosion breaks blocks is affected by the mob griefing game rule.
fire_affected_by_griefingboolean
If true, whether the explosion causes fire is affected by the mob griefing game rule.
fuse_lengtharray
The range for the random amount of time the fuse will be lit before exploding, a negative value means the explosion will be immediate.
fuse_length
0..0number
1..1number
fuse_lengthnumber
The range for the random amount of time the fuse will be lit before exploding, a negative value means the explosion will be immediate.
fuse_litboolean
If true, the fuse is already lit when this component is added to the entity.
max_resistancenumber
A blocks explosion resistance will be capped at this value when an explosion occurs.
powernumber
The radius of the explosion in blocks and the amount of damage the explosion deals.