mojira.dev
MC-249664

Warden despawns when far away

This might be intentional as many mobs follow this rule, but it seems odd for the Warden.

[media]

The bug:
If the Warden is far away, the Warden has a chance to just despawn, even if you keep distracting it from a distance. The Warden is not digging down to despawn and it is instead just disappearing.

Steps to reproduce:

  1. Summon a warden

  2. /tp @s ~-130 ~ ~ -90 0

  3. /tp @s ~130 ~ ~ -90 0 (Or you can just fly back to where the warden was summoned)

Observed results:
The warden has despawned immediately because the warden is over 128 blocks away.
It can also despawn randomly if it is in between 32 blocks and 128 blocks away as seen in the picture above.

Expected results:
The Warden should only despawn when digging into the ground.

Attachments

Comments 15

Behavior is still exactly the same as described.

Still seems to be the case even in 22w15a - I can anger a warden, have it chase me for a few minutes as I sprint away, and it has a chance to despawn without a trace even during pursuit.

Can confirm in 22w15a. This bug is still happening exactly as described. Here is a new video I have displaying the issue in 22w15a

[media]

I can also confirm that this issue is still present in 22w15a.

This may not be a bug, but I find it odd that the warden despawns like that (since I consider it a [unofficial] boss, and bosses don't despawn, unlike regular mobs). As you said, it should only despawn when it digs in (and it won't dig in if there is noise). Removing the distance-dependent despawn also would not hurt the game, as the warden will despawn naturally anyway.

 

In conclusion, this definitely needs to be fixed (or changed, depending on whether or not you think it is a bug). Also yeah, confirmed in 22w17a.

5 more comments

No I think they still despawn even if they are spawned by a shrieker. How to reproduce:

1.) Spawn a shrieker high up in the air with the tag can_summon set to true. By high I mean very high, prefferably max height.

2.) Make a drop all the way down to a low height like bedrock level. Place a dripstone on the bottom to see if it despawned by seeing if there is a sculk catalyst or not.

3.) Activate the shrieker until the warden spawns and somehow make it drop into the hole; then wait on the platform for a few seconds.

4.) If it didn't despawn on the way down there should be a catalyst at the bottom, but there isn't.

5.) Next do the same thing you did the last time, but follow the warden down. You will see it die (assuming you made the drop long enough) and drop a catalyst.

Awesome thank you so much for the repro-cases, I'll dig (no pun intended) into this and see what is going on!

@unknown: I am unable to reproduce what you said, the warden survived a fall from max-height perfectly fine.

@unknown: I found that too, from now on the flag is set always unless you pass in NBT manually (then you become responsible)

Weird, I did the thing successfully; did you make the drop long enough / Is the dripstone on the bedrock at the bottom of the world?

 

But oh well it says fixed so it's ok 🙂

I ended up putting a breakpoint in the 'hurt' method of the warden, if it would take fall-damage it wouldn't have despawned and then dropped it from max-height (no custom world) in a normal flatworld. So I think the fall was ~384-6 blocks total.

Eometheous

Erik Broes

Confirmed

Low

Mob behaviour

warden

22w12a, 22w13a, 22w14a, 22w15a, 22w16a, 22w17a, 22w18a

22w15a, 22w19a

Retrieved