minecraft:game_event_movement_tracking

Allows an entity to emit `entityMove`, `swim` and `flap` game events, depending on the block the entity is moving through. It is added by default to every mob. Add it again to override its behavior.

Properties

PropertyTypeDefaultWhat it does
emit_moveBooleantrueIf true, the `entityMove` game event will be emitted when the entity moves on ground or through a solid.
emit_swimBooleantrueIf true, the `swim` game event will be emitted when the entity moves through a liquid.
emit_flapBooleanfalseIf true, the `flap` game event will be emitted when the entity moves through air.

Example from the game files

This is how vanilla Vex uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:game_event_movement_tracking": {
    "emit_move": false,
    "emit_swim": false
  }
}

Used by 8

Vanilla entities with minecraft:game_event_movement_tracking in their definition:

Related components