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
| Property | Type | Default | What it does |
|---|---|---|---|
emit_move | Boolean | true | If true, the `entityMove` game event will be emitted when the entity moves on ground or through a solid. |
emit_swim | Boolean | true | If true, the `swim` game event will be emitted when the entity moves through a liquid. |
emit_flap | Boolean | false | If 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
damage_sensorinteractenvironment_sensoron_target_acquiredtimeron_target_escapeentity_sensorrail_sensortarget_nearby_sensorbody_rotation_blockedon_friendly_angeron_hurtblock_sensorinside_block_notifierlooked_aton_hurt_by_playerschedulervibration_listenerbody_rotation_always_follows_headon_deathon_equipment_changedon_start_landingon_start_takeoffon_wake_with_owner