mojira.dev
MC-253027

Texture references for particles are inconsistent with models

Pretty straightforward:

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

The particle atlas should set the prefix to "particle/" for consistency. The current behavior is incorrect, as having the prefix 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

Particle:

{
  "textures": [
    "minecraft:angry"
  ]
}
{
  "textures": [
    "minecraft:angry"
  ]
}

Texture path: assets/minecraft/textures/particle/angry.png
Expected with this input: assets/minecraft/textures/angry.png

The fix:
Replace "prefix": "" with "prefix": "particle/" in assets/minecraft/atlases/particles.json, and replace minecraft: with minecraft:particles/ in assets/minecraft/particles/<particle>.json.

Linked issues

Comments 4

Relates to MC-200311 (yet another inconsistency in texture file referencing).

I can confirm this behavior.

While still in 1.19.3, this is probably by design, per the atlas file.
I'd still like Mojang to give the final call though, as it is an inconsistency that may confuse resource pack creators.
Just adding the prefix would be the fix.

user-f2760

(Unassigned)

Community Consensus

Platform

Low

Resource Packs

1.19, 1.19.2, 22w42a, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b, 1.21.4

Retrieved