0

I am trying to write a custom data model for a Trident at number 10, that will obtain a trident with a custom texture (stobie_trident.png). The problem is that it loads the default texture but slightly darkened.

Here is the models/item/trident.json

{
  "parent": "item/generated",
  "textures": {
    "layer0": "item/trident"
  },
  "overrides": [
    { "predicate": {"custom_model_data": 10}, "model": "custom/stobie_item"}
  ]
}

Here is the models/custom/stobie_item.json

{
  "parent": "item/generated",
  
  "textures": {
    "layer0": "custom/stobie_trident"
  }
}

My png file is save in textures/custom/stobie_trident.png stobie_trident.pngThe texture I'm trying to add

If I load it with /give my_name trident(CustomModelData:10) it just has the normal texture but faded.

3
  • Can you post your texture file? Or see what's in the alpha channel (I don't know if Minecraft works with those, but still)?
    – Joachim
    Apr 29, 2022 at 8:49
  • The texture works fine if I write it's link in the trident's texture field but not from the stobie_item.json Apr 29, 2022 at 9:01
  • If I open up stobie_item.json in blockbench, it works fine. Apr 29, 2022 at 22:54

0

You must log in to answer this question.

Browse other questions tagged .