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

Attack indicator does not scale as expected when scaling behaviour is defined via mcmeta files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.1, 1.21.2 Release Candidate 1
    • None
    • Community Consensus
    • (Unassigned)

      Relates to: MC-269935 MC-270259 MC-270520 MC-270565 MC-270567

      The bug

      The progress textures for the attack indicators don't scale in the expected way when a mcmeta file is used to define how they scale.

      How to reproduce

      1. Download and apply the attached resource packs individually
      2. Attack (weapons with considerable cooldown may make things easier to see)

      Expected results

      • For "stretch", the progress texture would stretch to accommodate the cooldown duration.
      • For "tile", the texture would repeat itself to accommodate the cooldown duration.
      • For "nine_slice" we'd get a similar result to "tile", but only the center would repeat and there would be a continuous border.

      Actual results

      • For "stretch", the texture is pre-stretched and then truncated to indicate the cooldown duration.
      • For both "tile" and "nine_slice" we get the behaviour we'd previously expected for "stretch" - the texture stretches to fit the cooldown duration.

      How to fix

      Make these use the scaling correctly. (For tile and nine_slice, it may be worth including a json parameter to indicate that the tiling occurs from the bottom up for the hotbar version, rather than the top down.)

        1. 2024-10-19_11.12.14.png
          312 kB
          Connor Steppie
        2. 2024-10-19_11.12.35.png
          51 kB
          Connor Steppie
        3. 2024-10-19_11.12.56.png
          48 kB
          Connor Steppie
        4. 2024-10-19_11.13.11.png
          128 kB
          Connor Steppie
        5. 2024-10-19_11.13.32.png
          163 kB
          Connor Steppie
        6. 2024-10-19_11.13.45.png
          66 kB
          Connor Steppie

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: