I have a techne model that is an Ore Model, so far i have successfully rendered it in the world and fully textures. What i have been trying to do now it to get the model of the Ore to render while in the inventory and ideally while being held, I know that many mods do this such as Buildcraft pipes, EE3 has many models. I have been looking through their code on github and can't seem to work it out. I would be grateful if someone could tell me what i must add to what class to allow it to be renderer. I have provided a link to my github repo of the mod, only look at the Adamantite Ore Block, that is the only one that i have started item rendering on.
https://github.com/callumhutchy/Runecraft-2
[/code]MinecraftForgeClient.registerItemRenderer(
Item.getItemFromBlock(MyMod.myAmazingOreBlockThing);[/code]
Pop this in registerRenders in your client proxy class:
[code]MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(MyMod.myAmazingOreBlockThing);[/code]
Pop this in registerRenders:
[code]MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(MyMod.myAmazingOreBlockThing);[/code]
[code]MinecraftForgeClient.registerItemRenderer( Item.getItemFromBlock(MyMod.myAmazingOreBlockThing);[/code]