1. Wiki
  2. /实体
  3. /minecraft:instant_despawn

minecraft:instant_despawn

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:instant_despawn。Get GodCraft

概览

minecraft:instant_despawn 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 组件一添加就立刻把实体从世界中移除。可以在事件中添加它,干净地删除生物,不掉落物品也不播放死亡动画。

字段

字段类型默认值说明
remove_child_entitiesbooleanfalse同时移除关联的实体,比如被拴住的生物。

示例

写在 BP/entities/<name>.json 的 components 对象中(值为默认值或占位值):

BP/entities/<name>.json
{
  "minecraft:instant_despawn": {
    "remove_child_entities": false
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more