Mojira Archive
MC-152202

Updating villager NBT resets his AI

The Bug

When you update a villager's NBT using commands, his AI gets reset, This does not appear to happen to other mobs.

Video showing the bug: https://www.youtube.com/watch?v=B4gZznIjL1Q

Steps to reproduce

  1. Put the following command in a repeating command block and activate it:
    /execute as @e[type=minecraft:villager] run data modify entity @s dummy_test_value set value '[{"text":"1"}]'

    -> The AI of the villager gets reset every tick.
     

A second video testing another NBT data: https://www.youtube.com/watch?v=jqTGtlsZWIw