Posted August 31, 20205 yr To make a more impressive looking weapon, I've been trying to combine a model and a generated item. In the image you can see the "staff/rod" is rendering, but I'm trying to render the spear head item, which you can see in the bottom, at the end of the pole. I figured a TileEntityItemStackRenderer would be the right way to go so i made a class that extends the vanilla TEISR. I looked at the vanilla code and other sources for examples, but I can't get it to work. Anyone have a suggestions on how to attempt this? This where I register the item: https://github.com/tessa19950/TheBigBang_1.14.4/blob/master/src/main/java/com/homebrewCult/TheBigBang/init/ModItems.java This is the code for the renderer: https://github.com/tessa19950/TheBigBang_1.14.4/blob/master/src/main/java/com/homebrewCult/TheBigBang/items/render/OmegaSpearRenderer.java This is the model made in Blockbench: https://github.com/tessa19950/TheBigBang_1.14.4/blob/master/src/main/java/com/homebrewCult/TheBigBang/items/model/OmegaSpearModel.java Edited September 1, 20205 yr by Tessa
August 31, 20205 yr You can render items with the ItemRenderer, which you can get from Minecraft.getInstance().getItemRenderer().
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.