Mojira Archive
MC-249502

Warden's dig cooldown unconditionally resets on sniff

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:

  1. Load a new creative world.
  2. Spawn a single warden.
  3. Switch to survival mode
  4. Allow the warden to sniff the player out, but keep at a distance such that it does not get angry at the player.
  5. 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).

Works As Intended

VirtualSun

2022-03-25, 06:46 PM

2022-04-01, 04:04 PM

2022-04-01, 07:17 AM

9

7

Confirmed

Important

Mob behaviour

warden

22w12a, 22w13a

-