mojira.dev
MC-115092

Squid/glow squid named "Dinnerbone" or "Grumm" is not upside-down

The bug

Squid named "Dinnerbone" or "Grumm" is not upside-down

How to reproduce

Use the following command to summon a squid named Dinnerbone:

/summon minecraft:squid ~ ~ ~ {CustomName:"{\"text\":\"Dinnerbone\"}",CustomNameVisible:1b,Silent:1b,NoAI:1b}

Code analysis

Based on 1.12.2 MCP names.

In the method net.minecraft.client.renderer.entity.RenderSquid.applyRotations() where it applies the squid's model rotations, it does not have a check if the squid is named Dinnerbone or Grumm and to rotate if so. To fix this issue, this piece of code can be added at the end of the method applyRotations().

String s = TextFormatting.getTextWithoutFormattingCodes(entityLiving.getName());

        if (s != null && ("Dinnerbone".equals(s) || "Grumm".equals(s)))
        {
            GlStateManager.translate(0.0F, entityLiving.height + 0.1F, 0.0F);
            GlStateManager.rotate(180.0F, 0.0F, 0.0F, 1.0F);
        }

Linked issues

Attachments

Comments 34

Confirmed for 17w13a, attached screenshot.

Confirmed for 1.12-pre7

Can confirm for MC 1.12.1.

Confirmed for 1.13.1-pre1

Confirmed for 1.13.1 and the command should be update to:

/summon minecraft:squid ~ ~ ~ {CustomName:"{\"text\":\"Dinnerbone\"}",CustomNameVisible:1b,Silent:1b,NoAI:1b}
24 more comments

Can confirm in 1.19.

Can confirm in 1.19.2.

In 1.20

In 23w32a and related to MC-237079

himazinn_Japan

Can confirm in 24w46a.

Andrew David Gronowski

(Unassigned)

Confirmed

Gameplay

Low

Textures and models

CustomName, Grumm, dinnerbone, name_tag, squid, upside-down

Minecraft 1.11.2, Minecraft 17w13a, Minecraft 17w16b, Minecraft 1.12 Pre-Release 7, Minecraft 1.12.1, ..., 1.19.3, 23w05a, 1.20.1, 1.20.4, 24w12a

Retrieved