Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[1.14.4] Trying to render held item with java model and generated item model. [Solved]

Featured Replies

Posted

spacer.pngspacer.pngspacer.pngspacer.pngspacer.pngspacer.pngspacer.pngTo 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

screen.jpg

Edited by Tessa

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.