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

minecraft:game_event_movement_tracking

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

概览

minecraft:game_event_movement_tracking 是一个实体组件:写在自定义生物的 components 对象中,或其中某个组件组里。 让实体移动时发出振动游戏事件,可被幽匿感测体和监守者察觉。所有生物默认都有它;添加它可以改变发出哪些事件。

字段

字段类型默认值说明
emit_movebooleantrue在地面上行走或穿过固体方块时发出移动振动。
emit_swimbooleantrue在液体中移动时发出游泳振动。
emit_flapbooleanfalse在空中移动时发出扇翅振动。

示例

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

BP/entities/<name>.json
{
  "minecraft:game_event_movement_tracking": {
    "emit_move": true,
    "emit_swim": true,
    "emit_flap": false
  }
}

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