#Multiple overrides in model file dont work, all have the same model

7 messages · Page 1 of 1 (latest)

granite parrot
#

The following is the netherite_sword.json in my resourcepack:

  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "minecraft:item/netherite_sword"
  },

  "overrides":
  [
    {
      "predicate":
      {
        "custom_model_data":7000
      }, 
      "model":"item/custom/agnimitra"
    },

    {
      "predicate":
      {
        "custom_model_data":1000
      }, 
      "model":"item/custom/dominiksword"
    }
  ]

}```
/give-ing myself a netherite sword with CustomModelData: 1000 gets me a sword with the dominiksword model, but so does doing the same with CustomModelData: 7000

why are they both the same model even though its specified that they are different ones?
dapper iglooBOT
#
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.

fringe snow
#

and to use your file as example, anything higher than 7000 is also higher than 1000, so it uses the 1000 model (since that's the last model whose predicate checks are fullfilled)

granite parrot
#

So if i were to give myself a sowrd with 7001 value, would it use the 7000 model?
or is that higher than thing just in the json

#

it worked, thank you

granite parrot