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

      (Issue first appeared in 19w07a when foxes and their UV was added)
      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. fox_sleep_unused.png
          13 kB
          Jiingy
        2. fox_sleep.png
          1.0 kB
          Jiingy
        3. image-2024-05-12-20-48-06-819.png
          248 kB
          BugTracker
        4. snow_fox_sleep_unused.png
          13 kB
          Jiingy
        5. snow_fox_sleep.png
          1 kB
          Jiingy

            Unassigned Unassigned
            Jingy Jiingy
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: