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

Unused pixels in fox_sleep.png and snow_fox_sleep.png

XMLWordPrintable

    • Community Consensus
    • Textures and models

      The textures for sleeping foxes contain pixels that go unused in-game. These sections are the two legs, which are not rendered at all when the entity has the sleeping model applied. Keeping these pixels in the texture incorrectly implies to resource pack creators that the legs should/could be retextured, when doing so will have no affect.

      Unused Pixels

      Highlighted in red:
      Fox:

      Snow Fox:

      Fixes:


      Code Analysis:

      Here in the fox's model, you can see that the visibility of the fox's legs is set to false when the entity is sleeping, showing there is no need for the texture.

      Package: net.minecraft.client.model / Class: FoxModel<T extends Fox> / Method: prepareMobModel()
      
      . . .
            } else if (var1.isSleeping()) {
               this.body.zRot = -1.5707964F;
               this.body.setPos(0.0F, 21.0F, -6.0F);
               this.tail.xRot = -2.6179938F;
               if (this.young) {
                  this.tail.xRot = -2.1816616F;
                  this.body.setPos(0.0F, 21.0F, -2.0F);
               }
      . . .
               this.rightHindLeg.visible = false;
               this.leftHindLeg.visible = false;
               this.rightFrontLeg.visible = false;
               this.leftFrontLeg.visible = false;
            }
      . . .
      

      Notes:

      It is intentional that sleeping foxes do not render their legs per the resolution of MC-162360

        1. snow_fox_sleep.png
          snow_fox_sleep.png
          1 kB
        2. snow_fox_sleep_unused.png
          snow_fox_sleep_unused.png
          13 kB
        3. image-2024-05-12-20-48-06-819.png
          image-2024-05-12-20-48-06-819.png
          248 kB
        4. fox_sleep.png
          fox_sleep.png
          1.0 kB
        5. fox_sleep_unused.png
          fox_sleep_unused.png
          13 kB

            Unassigned Unassigned
            Jingy [Helper] Jiingy
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: