Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-118058

Ender dragon named "Dinnerbone" or "Grumm" is not upside-down

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • Minecraft 1.11.2, Minecraft 1.12 Pre-Release 6, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 1.13, Minecraft 18w31a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03b, Minecraft 19w03c, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3, 1.16.4 Pre-release 2, 20w46a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w08b, 21w17a, 1.17
    • Confirmed
    • Textures and models

      The bug

      When I summon an ender dragon with this command:

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

      the ender dragon is not upside down, so I tried to see if anything was wrong with my command and tried it with a sheep.

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

      It did work as the sheep was turned upside down.
      I don't know if this is intentional or not, but I hope it's not.

      Code analysis

      Based on 1.12.2 MCP names.
      In the method net.minecraft.client.renderer.entity.RenderDragon.applyRotations() where it applies the dragon's model rotations, it does not have a check if the dragon 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);
              }
      

            Unassigned Unassigned
            EliMe5 Eliott
            Votes:
            17 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: