When a warden attempts to sniff out a target, its dig cool-down timer will reset, regardless if its anger increases or not.
In a normal survival scenario, this results in the warden not despawning even if a player is taking the intended steps to avoid being detected.
Reproduction:
Load a new creative world.
Spawn a single warden.
Switch to survival mode
Allow the warden to sniff the player out, but keep at a distance such that it does not get angry at the player.
Run the following command twice: once before the warden finishes its sniff animation, and once after it has found a target:
/data get entity @e[type=minecraft:warden,limit=1] Brain.memories.minecraft:dig_cooldown.ttl
**
Expected Result:
The warden's dig cool-down will continue to count down if the warden was not angered after sniffing a target.
Observed Result:
The warden's dig cool-down resets even if it was not angered by sniffing a target.
Attachments:
Video observing the behavior, following the reproduction steps listed above (warden_sniff_behavior.mp4).
World download for quickly testing the behavior (WardenBugTest.zip).
I noticed this after triggering a Warden for the first time in survival today. Even after I was well out of range (including not getting the blindness effect) and the Warden had gone into "whine" mode for several minutes, it never dug into the ground, presumably because it was still sniffing for me.