(sorry for bad English)
hi , i want to make a model for my item that its texture contain a word with four character .
i try to change the texture with this part of java cod and
public static class ItemRanged extends Item {
public ItemRanged() {
super(new Item.Properties().group(ItemGroup.COMBAT).maxDamage(1000));
setRegistryName("portalgun");
this.addPropertyOverride(new ResourceLocation("key"), new IItemPropertyGetter(){ .....
json
{
"parent": "parentlocation",
"overrides": [
{"predicate": {"char1": 1
"char2": 1,
"char3": 1,
"char4": 1
}, "model": "modelLoctaion1" },
{"predicate": {"char1": 2 ... }, "model": "modelLoctaion2" },
{"predicate": {"char1": 3 ... }, "model": "modelLoctaion3" },
{"predicate": {"char1": 4 ...}, "model": "modelLoctaion4" }....
as you know addPropertyOverride method get a key and for that key change the model we see how it work in compos
but now if i want to do so , i have to make something around 614000 different model .
is there a better way to change the textures location base on a variable in java ?