mojira.dev
MC-278158

Block/item models can no longer override parent model texture references by referencing the textures in the parent model of the first parent model

I have 3 models in my resource pack for block models. One is "block_6_model", which defines the elements the model should use. It refers to each texture using the file location. Here is the relevant portion of "block_6_model":

{
    "textures":{
         "stud": "plasticraft/colors/blue",
         "particle": "plasticraft/colors/red",
         "top": "plasticraft/colors/red"
     },
    "elements": [(omitted because of lack of relevancy)]
}

This is meant to be a parent for the model named just "block_6", which then sets the "stud" texture to "top". This way, I can make models that only specify the "top" texture and the "stud" texture will use it as well. Here is "block_6":

{
    "parent": "minecraft:block/.master/block_6_model",
    "textures":{
         "particle": "#top",
         "stud": "#top",
         "top": "plasticraft/colors/red"
     }
}

This works great for blocks where I want to have it use the same texture for "stud" and "top". However, I do not want every model to use the same texture for "stud" and "top". In my "coarse_dirt" model, I set "stud" and "top" to different textures.

{
  "parent": "block/.master/block_6",
  "textures":{
     "top": "plasticraft/colors/reddish_brown",
     "stud": "plasticraft/colors/dark_bluish_gray"
   }
}

Even though it uses "block_6" as its parent, it was still able to change "stud" to a texture unique from "top" before 24w45a. However, in 24w45a, "stud" is set to the same texture as "top" on coarse dirt. Instead of using "dark_bluish_gray" as it did before, "stud" is now set to "reddish_brown".

Linked issues

Attachments

Comments 5

Please provide a resource pack to confirm this bug report, and any necessary steps to do so. Currently the bug is described, but there's no way to confirm the behavior.

One is already attached in MC-278194, and this report also shows exactly what you need. The only thing not here is an already assembled pack to download. All info you actually need is already present.

@unknown; Since the bug tracker is not the place to discuss or debate the AR resolution or what information can be gathered from other reports, I will not be doing that here. The Discord is better suited for that.
The previous comment is intentionally no longer present, so leaving another does not provide much benefit here when it is restating what has already been said.

Ok I have attached a pack with the issue in its simplest form, with just the three block models and the other files neccessary for them to work. Thanks for looking into this! (The attached pack does not look like the images I posted since I made it as simple as I could)

Inferno31415

boq

Community Consensus

Platform

Normal

Resource Packs, Textures and models

Textures-and-models, block-model, resource-pack-support

24w45a

24w46a

Retrieved