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

Advancement background texture referencing is inconsistent with models

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.3, 21w03a, 1.16.5, 21w05b, 21w13a, 1.17.1, 1.18.1, 1.19, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b
    • None
    • Confirmed
    • Resource Packs
    • Low
    • Platform

      Pretty straightforward:

      While models' texture references are formatted assets/<namespace>/textures/<name>.png, advancements' background texture references are formatted assets/<namespace>/<name>.png.

      The advancements' background texture reference path should be changed to include the "textures" folder automatically for consistency. The current behavior is incorrect, as the models' is consistent with sound, model, loot table, function, tag, advancement, dimension, dimension type, structure and feature references.

      Examples:

      Model:

      {
        "parent": "minecraft:item/generated",
        "textures": {
          "layer0": "minecraft:item/acacia_boat"
        }
      }

      Texture path: assets/minecraft/textures/item/acacia_boat.png

      Advancement background:

      {
        "criteria": {
          "entered_end": {
            "conditions": {
              "to": "minecraft:the_end"
            },
            "trigger": "minecraft:changed_dimension"
          }
        },
        "display": {
          "announce_to_chat": false,
          "background": "minecraft:textures/gui/advancements/backgrounds/end.png",
          "description": {
            "translate": "advancements.end.root.description"
          },
          "frame": "task",
          "hidden": false,
          "icon": {
            "item": "minecraft:end_stone"
          },
          "show_toast": false,
          "title": {
            "translate": "advancements.end.root.title"
          }
        },
        "requirements": [
          [
            "entered_end"
          ]
        ]
      }

      Texture path: assets/minecraft/textures/gui/advancements/backgrounds/end.png
      Expected with this input: assets/minecraft/textures/textures/gui/advancements/backgrounds/end.png

            Unassigned Unassigned
            jirauser71590 user-f2760 (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: