mojira.dev
MC-118354

Advancement backgrounds repeat incorrectly for non-square images

The bug

When an advancement tab's background image is not square, the way it repeats is inversely related to its aspect ratio. I expect the way it repeats to be directly related to its aspect ratio.

For example, the chain command block side texture is 16x64, or an aspect ratio of 0.25. With "GUI Scale: Normal", the texture repeats every 32px on the x-axis, and 4px on the y-axis. I would expect the texture to repeat on the y-axis every 128px at this scale.

On a related note, the texture isn't animated, but as far as I'm concerned, that can wait for another day.

How to reproduce

  1. Download the attached advancement

[media]
  1. and place it in the following directory of your world folder

    datapacks/MC-118354/data/custom/advancements/background_test.json
  2. Load the world

  3. Open the advancement GUI and look at the advancement

Attachments

Comments 2

Affects 20w49a
background_test.json needs to be placed in

.minecraft/saves/(world)/datapacks/(DPname)/data/(namespace)/advancements/background_test.json

NickNackGus

(Unassigned)

Confirmed

Resource Packs

advancement, advancement-background, background, resource-pack-support

Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, 20w07a, 20w49a, 1.17

Retrieved