mojira.dev
MC-303390

Mobs with no AI accumulate all movements they try to make and immediately perform all of them when given AI

The Motion tag of mobs with the NoAI tag set to true is still affected by attacks, water, players or mobs moving through them, and anything else that might affect their velocity. As a result, when such a mob has its NoAI tag set to false, it immediately performs all of its accumulated movement.

How to reproduce:

  1. Execute the following command:

    /summon minecraft:creeper ~ ~1 ~ {NoAI:1b}
  2. Move through or punch the summoned creeper a few times, or run water through it and wait a few seconds.

  3. Execute the following command:

    /data get entity @n[type=minecraft:creeper] Motion

    → ❌ The value is not very close to 0 on all axes.

  4. Execute the following command:

    /data merge entity @n[type=minecraft:creeper] {NoAI:0b}

    → ❌ The creeper moves towards the direction its movements accumulated to.

Expected result:

Mobs with no AI would not be affected by anything causing movement to them.

Observed result:

Mobs with no AI accumulate all movement they try to make and perform all of it when given their AI back.

Linked issues

Comments 1

Confirmed on 1.21.11-rc2

[Mod] ManosSef

(Unassigned)

Confirmed

Platform

Normal

Commands, Mob behaviour

1.21.10, 25w42a

Retrieved