#Copy model from resourcepack but have different texture

11 messages · Page 1 of 1 (latest)

inner linden
#

I have a custom item model in my resource pack. I want to copy it and put a different texture on it. Is this possible to just copy the model without copying the whole file, effectively increasing the resource pack size? Or must I copy the whole file with all the model data and then change the texture?

lucid laurelBOT
#
Welcome to the help forum!

Please make sure to read #1029373817119838218 as it may answer your question!

Once your question has been resolved, please mark the post as closed by using the </close:1163944441741049897> command.

inner linden
#

I tried setting the parent model but not sure how that works

#

I opened the child file and BB tells me to navigate to parent, but that just opens the parent file

timber turtle
# inner linden I tried setting the parent model but not sure how that works

You'd make a json file that looks like this:

{
  "parent": "path/to_your/custom_model",
  "textures": {
    "0": "path/to_your/other_texture"
  }
}```

So if you had your custom model in assets/example/models/test/your_model you'd put `example:test/your_model` as the parent there.
Same for your texture, but starting from the textures path.

If your base model has several textures you specify several.
what I wrote as "0" has to be the same value as in the base model.
inner linden
#

So I have this, when I open tan_ah64_main_body.json it opens the parent model and I click adopt textures

#

But that opens the parent model and not the child one, how can I see the model while editing the texture of the child?

timber turtle
#

oh, idk if you can load it in like that 🤔

inner linden
#

Oh right it'll work anyway in-game so it's fine, thank you.

lucid laurelBOT
#

<:e:1149743621755641909>

inner linden
#

but I guess i'll have to edit the texture in the parent model temporarily or something