mojira.dev
MC-200311

Advancement background texture referencing is inconsistent with models

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"
  }
}
{
  "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"
    ]
  ]
}
{
  "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

Linked issues

Comments 1

Fixed in 25w04a, the "textures/" and ".png" are now no longer in the value, the value now refers to "assets/<namespace>/textures/<id>.png".

user-f2760

[Mod] turbo

(Unassigned)

Confirmed

Platform

Low

Resource Packs

1.16.3, 21w03a, 1.16.5, 21w05b, 21w13a, ..., 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b

25w04a

Retrieved