private void registerItemModelForMeta(final Item item, final int metadata, final ModelResourceLocation modelResourceLocation) {
System.out.println(modelResourceLocation.toString());
ModelLoader.setCustomModelResourceLocation(item, metadata, modelResourceLocation);
}
That prints :
[15:04:37] [main/INFO] [STDOUT]: [net.dylem.test_mod.init.ModItems$ModelHandler:registerItemModelForMeta:146]: test_mod:item_variants#test_mod:item_variants=a
[15:04:37] [main/INFO] [STDOUT]: [net.dylem.test_mod.init.ModItems$ModelHandler:registerItemModelForMeta:146]: test_mod:item_variants#test_mod:item_variants=b
[15:04:37] [main/INFO] [STDOUT]: [net.dylem.test_mod.init.ModItems$ModelHandler:registerItemModelForMeta:146]: test_mod:item_variants#test_mod:item_variants=c
Here is the json :
{
"forge_marker": 1,
"defaults": {
"model": "item/generated"
},
"variants": {
"variant": {
"a": {
"textures": {
"layer0": "test_mod:items/variants.a"
}
},
"b": {
"textures": {
"layer0": "test_mod:items/variants.b"
}
},
"c": {
"textures": {
"layer0": "test_mod:items/variants.c"
}
}
}
}
}
From what you did in your mod, that should work, shouldn't it ?