mojira.dev
MC-101136

Wither skeleton afraid to leave the shadows

The bug

Wither Skeleton afraid to leave the shadows, when it is in the morning of overworld. Even if Wither Skeleton was attacked / being chased by a wolf.

And this makes the Wither Skeleton cannot attack the players.

How to reproduce

  1. Confirm you at the overworld

  2. Set the time to morning:

    /time set day
  3. Spawn Wither Skeleton to beneath the shadow

Linked issues

Attachments

Comments 26

James McDoniel

So basically what you are saying is that Wither skeletons will not go out into sunlight.

Yes, that's what she's saying, they're immune to fire, so why hide from the sun?

Seems to be related to MC-8671 and MC-50468 (the former describes wither skeletons and was resolved as intended by Dinnerbone 3 years ago, while the latter talks about skeletons wearing helmets and was fixed by ProfMobius last December).

When you give Wither Skeleton a shelter, it would to stalk there.
But if you push it to sunlight under, it will resume normal.

It seems as though Wither Skeletons don't know they're immune to fire.

Relates to MC-13497.

16 more comments
anthony cicinelli

@unknown First thing @unknown isn't spamming he is just keeping a ticket uodated with current versions. Second thing is that this isn't a dupe or WAI see the priority, Mojang plans to fix this. Please be more cognizant of these things when commenting in the future.

Can confirm in 21w15a.

Can confirm in 1.18.1.

Can confirm in 1.18.2 and 22w16b.

Code analysis (Mojang mappings, 1.19.2): Wither skeletons inherit RestrictSunGoal and FleeSunGoal from AbstractSkeleton on the registerGoals() method.

It could be fixed by removing the super.registerGoals() line from the method and adding the other required methods present in AbstractSkeleton#registerGoals; this might not be desirable from a design standpoint, though, because it means that wither skeletons will no longer inherit the goals from AbstractSkeleton. Another fix could be moving RestrictSunGoal and FleeSunGoal from AbstractSkeleton to the stray and skeleton's code.

[Mod]Les3awe

(Unassigned)

Confirmed

Gameplay

Low

Mob behaviour

shadow, shelter, sunlight, wither_skeleton

Minecraft 1.9.2, Minecraft 16w14a, Minecraft 16w15a, Minecraft 16w15b, Minecraft 1.9.3 Pre-Release 1, ..., 25w09b, 1.21.5 Release Candidate 1, 1.21.5, 25w17a, 1.21.6 Pre-Release 3

Retrieved