mojira.dev
MC-137900

Entities standing inside each other cause Z-fighting

The bug

Two or more sheep standing inside each other can cause massive z-fighting.

Expected Result

The entities wouldn't z-fight with each other

Linked issues

Attachments

Comments 15

Affects 20w21a, can I request ownership?

Can confirm in 20w51a. This is actually the case with all mobs. This same behavior can be seen in pandas, cows, villagers, etc..

Can confirm in 21w05b.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

5 more comments

Can confirm in 21w38a.

Can confirm in 21w41a.

Can confirm in 21w42a.

Can confirm in 21w43a.

Simply giving mobs pre-set, randomized model scaling by a small amount would greatly alleviate the issue. I do not know off the top of my head what sort of range or distribution of scale values would lead to the best result.

In the example below, I’m modifying the actual scale attribute, but of course altering mob hitboxes would be problematic; any such fix should apply to the model only.

muzikbike

(Unassigned)

Confirmed

Platform

Normal

Entities, Rendering

z-fighting, z-fighting-hitbox-zone

Minecraft 1.13.2, Minecraft 18w43a, Minecraft 18w43b, 1.14.4, 19w39a, , 23w16a, 1.20.1, 1.20.4, 1.21, 26.2 Snapshot 7

Retrieved