predicate seemly don't work with models is there a way to fix

Started by lara11111 on

Topic category: Troubleshooting, bugs, and solutions

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
predicate seemly don't work with models is there a way to fix

so im trying to get a model with predicate to render different texture depending on the predicate but i keep running into errors anyone know how to fix it and make it render the texture?

{
"parent": "partycannonmod:custom/party_cannon",
"textures": {
"2": "partycannonmod:block/prototype_omnitrix_os_strap",
"3": "partycannonmod:block/prototype_omnitrix_os_button",
"4": "partycannonmod:block/prototypedial",
"5": "partycannonmod:block/prototype_strap_outside",
"6": "partycannonmod:block/omnitrix_core",
"particle": "partycannonmod:item/test"
},
"overrides": [
{"predicate": {"strap":0}, "model": "item/os/strap/defult"},
{"predicate": {"strap":1}, "model": "item/os/strap/white"},
{"predicate": {"strap":2}, "model": "item/os/strap/lg"},
{"predicate": {"strap":3}, "model": "item/os/strap/gray"},
{"predicate": {"strap":4}, "model": "item/os/strap/black"},
{"predicate": {"strap":5}, "model": "item/os/strap/brown"},
{"predicate": {"strap":6}, "model": "item/os/strap/red"},
{"predicate": {"strap":7}, "model": "item/os/strap/orange"},
{"predicate": {"strap":8}, "model": "item/os/strap/yellow"},
{"predicate": {"strap":9}, "model": "item/os/strap/lime"},
{"predicate": {"strap":10}, "model": "item/os/strap/green"},
{"predicate": {"strap":11}, "model": "item/os/strap/cyan"},
{"predicate": {"strap":12}, "model": "item/os/strap/lb"},
{"predicate": {"strap":13}, "model": "item/os/strap/blue"},
{"predicate": {"strap":14}, "model": "item/os/strap/purple"},
{"predicate": {"strap":15}, "model": "item/os/strap/pink"},
{"predicate": {"button":0}, "model": "item/os/button/defult"},
{"predicate": {"dial":0}, "model": "item/os/dial/defult"},
{"predicate": {"lines":0}, "model": "item/os/lines/defult"},
{"predicate": {"core":0}, "model": "item/os/core/defult"}
]
}
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this is what inside the …
Sun, 02/25/2024 - 04:16

this is what inside the "white" json meant to make the cannon white

{
 "parent": "partycannonmod:custom/party_cannon",
 "textures": {
   "2": "partycannonmod:block/os/strap/white"
   "particle": "partycannonmod:item/test"
 }
}
the "block/os/strap/white" location does exist for texture by the way

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for the main json file i…
Sun, 02/25/2024 - 04:25

for the main json file i have try everything chaning the model into a 2d and using "CustomModelData" i looked at guide for defult datapack stuff still no luck i try adding }, before override to close parent and start it again like in many guide i saw (this did nothing and mcreator came up saying it was "nul"/no data) and most of these just resulted in a missing texture block