One thing to mention is if I replace the Item json's Parent with an existing block like dirt, it actually loads up a dirt block
{
"parent": "block/dirt",
"display": {
"thirdperson": {
"rotation": [ 10, -45, 170],
"translation": [ 0, 1.5, -2.75 ],
"scale": [ 0.375, 0.375, 0.375]
}
}
}
public static void custommodel(BlockOre block) {
Item item = Item.getItemFromBlock(block);
ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation("gregtech:" + block.getUnlocalizedName().substring(5), "inventory") );
}
It actually seems to have gone backwards after doing this since the block got bigger
public static void custommodel(BlockOre block) {
Item item = Item.getItemFromBlock(block);
// ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation("gregtech:" + block.getUnlocalizedName().substring(5), "inventory") );
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation("gregtech:" + block.getUnlocalizedName().substring(5), "inventory"));
}
This is my item model register
which also is in the same class as my block register down below
oreTin = register(new BlockOre(Material.ROCK, "oreTin",3F,3F).setCreativeTab(GregTechMod.gregtechT)); custommodel(oreTin);
Thank you that was the reason
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer()
{
return BlockRenderLayer.CUTOUT_MIPPED;
}
I added that and it works now