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

Pushing a button makes the button side textures look wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 15w44b
    • Minecraft 1.4.7, Snapshot 13w04a, Minecraft 1.5, Snapshot 13w11a, Minecraft 1.7.4, Minecraft 14w08a, Minecraft 14w18b, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.8, Minecraft 15w41b, Minecraft 15w44a
    • Confirmed

      When pushing a button, the sides of it look like the button was squashed instead of being pushed into the wall.


      Mod note: Fix from MC-90456 by Coolio_Wolfus

      Button not pressed the textures are:

                      "north": { "uv": [ 5, 14, 11, 16 ], "texture": "#texture" },
                      "south": { "uv": [ 5, 14, 11, 16 ], "texture": "#texture" },
                      "west":  { "uv": [ 6, 14, 10, 16 ], "texture": "#texture" },
                      "east":  { "uv": [ 6, 14, 10, 16 ], "texture": "#texture" }
      

      However when pressed they change to:

                      "north": { "uv": [ 5, 15, 11, 16 ], "texture": "#texture" },
                      "south": { "uv": [ 5, 15, 11, 16 ], "texture": "#texture" },
                      "west":  { "uv": [ 6, 15, 10, 16 ], "texture": "#texture" },
                      "east":  { "uv": [ 6, 15, 10, 16 ], "texture": "#texture" }
      

      This causes the impression the button is pressed but the texture has jumped, the front sides of the button changes to the back sides texture when it's pressed.

      Example: Wall, back px 1, front px 2, Air
      W12A < button not pushed
      W1A < button pushed default 1.8+ mc (looks weird)
      W2A < what it now looks like with this fix (outer texture moves in towards wall for duration of press event)

      The fix is to change the texture on the pressed button to:

                      "north": { "uv": [ 5, 14, 11, 15 ], "texture": "#texture" },
                      "south": { "uv": [ 5, 14, 11, 15 ], "texture": "#texture" },
                      "west":  { "uv": [ 6, 14, 10, 15 ], "texture": "#texture" },
                      "east":  { "uv": [ 6, 14, 10, 15 ], "texture": "#texture" }
      

      And the front edge texture moves towards the wall when the button is pressed and out as the button returns to normal.

      Hope this is a simple bug to fix... (See attached button_pressed.json for the fix.)


      In time order,
      <- Unpressed Buttons
      <- Current buttons pressed note the side texture.
      <- Corrected version front texture moves closer.

      The original has the near block texture jumping forward to remain visible, whereas with this suggested fix, it looks like the button actually moves as the near block texture seems to go into the block.


      Just added a Resource Pack version of my fix, called Button Hotfix.zip
      Hope this helps make testing the fix easier.

        1. 2015-10-12_19.30.17.png
          2015-10-12_19.30.17.png
          124 kB
        2. 2015-10-12_19.30.37.png
          2015-10-12_19.30.37.png
          110 kB
        3. 2015-10-12_19.31.11.png
          2015-10-12_19.31.11.png
          116 kB
        4. button_pressed.json
          0.7 kB
        5. Button Hotfix.zip
          1.0 kB

            grum [Mojang] Grum (Erik Broes)
            Coolio_Wolfus John Hughes
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: