Mojira Archive
MC-268546

Warden AI breaks if you repeatedly update its NBT

Warden AI breaks (becomes passive, starts spamming random animations) if you repeatedly update its entity data

Steps to Reproduce:

  [Step 1] Summon a warden (use spawn eggs or /summon)
  [Step 2] Place a repeating command block 

/setblock ~ ~ ~ minecraft:repeating_command_block

  [Step 3] Enter this command in the repeating command block: 


/execute as @e[type=minecraft:warden] run data merge entity @s

{a:1}

  and set it to always active
 
  [Step 4] Switch to survival mode and interact with the warden

Observed Results:

Warden becomes passive and may start spamming the sniff/dig animation.

Expected Results:

Warden's behavior should be unaffected by the change and it should attack all mobs around it.

Notes:

This affects map/data pack makers, preventing them from updating the warden's data too often because its AI might break.

Unresolved

MineralYes

2024-02-14, 05:25 AM

2025-01-09, 03:32 AM

5

2

Confirmed

Low

Platform

Commands, Mob behaviour

1.20.4, 24w06a, 1.21

-