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

minecraft:pushable_by_entity

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

概览

minecraft:pushable_by_entity 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 让其他实体撞到这个实体时可以把它推开。

字段

字段类型默认值说明
presetsPushableByEntityPreset[]无要使用的推动设置;使用第一个过滤器匹配的预设,否则使用默认值。

示例

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

BP/entities/<name>.json
{
  "minecraft:pushable_by_entity": {
    "presets": []
  }
}

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