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

The entity shadows of ender dragons are too small in relation to the size of their models

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18.2, 22w14a, 22w15a, 22w16b, 22w17a, 22w18a, 22w19a, 1.19 Pre-release 1, 1.19 Pre-release 3, 1.19 Release Candidate 2, 1.19, 1.19.1, 1.19.2, 22w45a, 1.19.3 Release Candidate 1, 1.19.3, 1.19.4, 23w17a, 23w18a, 1.20 Pre-release 1, 1.20 Pre-release 4, 1.20.1, 1.20.2, 1.21, 24w45a, 1.21.4
    • Confirmed
    • Rendering
    • Low
    • Gameplay

      The Bug:

      The entity shadows of ender dragons are too small in relation to the size of their models.

      Steps to Reproduce:

      1. Enable entity shadows in your video settings.
      2. Summon an ender dragon by using the command provided below.
        /summon minecraft:ender_dragon ~ ~ ~ {NoAI:1b,Silent:1b}
      3. Look at the size of its shadow.
      4. Take note as to whether or not the entity shadows of ender dragons are too small in relation to the size of their models.

      Observed Behavior:

      The entity shadow is too small.

      Expected Behavior:

      The entity shadow would be made much larger to match the size of its model.

      Code Analysis:

      Code analysis by Avoma can be found below.

      The following is based on a decompiled version of Minecraft 1.19 Pre-release 3 using Mojang mappings.

      net.minecraft.client.renderer.entity.EnderDragonRenderer.java
      public class EnderDragonRenderer extends EntityRenderer<EnderDragon> {
         ...
         public EnderDragonRenderer(EntityRendererProvider.Context context) {
            super(context);
            this.shadowRadius = 0.5f;
            this.model = new DragonModel(context.bakeLayer(ModelLayers.ENDER_DRAGON));
         }
         ...

      If we look at the above class, we can see that the radius of ender dragons' shadows is 0.5f which is around the size of a block, which is too small in relation to the size of their models.

            Unassigned Unassigned
            Avoma [Mod] Avoma
            Votes:
            5 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: