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

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed

      Description

      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 intentional because I wanted to make an armor stand model with a dead ender dragon.

      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);
              }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                EliMe5 Eliott
              • Votes:
                9 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: