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.

[Solved] [1.16.5] Custom Trident, issues with in GUI, GROUND and FIXED ItemCameraTransform rendering

Featured Replies

Posted

Hi all,

I am attempting to add my own custom Trident into my Mod. I have 90% of things working currently, however the GUI, ItemEntity and ItemFrame (I assume from FIXED) rendering is very strange.

Below are picures of the Issue, and any related code.
 

Reveal hidden contents

 

dimensional_trident.json:

Reveal hidden contents

 

dimensional_trident__.json:

Reveal hidden contents

 

dimensional_trident_throwing.json:

Reveal hidden contents

 

ItemStackTileEntityRenderer.class:

Reveal hidden contents

 

Im not sure what the issue is. Ive looked through vanilla code to see if i could locate the source of the issue, no dice. I have also read a few forum posts on the Modder Support Forum, and others have had other issues but none like this.

 

Any help is appreciated!

Edited by Zeher_Monkey
Issue was Solved.

  • Author

So quick update, The weird scale was caused by the 

GUI, GROUND, FIXED 

Inside the dimensional_trident__.json and the dimensional_trident_throwing.json

 

So thats fixed. However the colour is still not correct.

  • Author
  On 3/22/2021 at 8:28 PM, Zeher_Monkey said:

So quick update, The weird scale was caused by the 


GUI, GROUND, FIXED 

Inside the dimensional_trident__.json and the dimensional_trident_throwing.json

 

So thats fixed. However the colour is still not correct.

 

Okay so I fixed this issue, turns out I wasn't passing in the values 

int p_239207_5_, int p_239207_6_

Into the 

renderer.render(stackIn, transformIn, true, matrixStack, typeBuffer, 0 (Should have been p_239207_5_), 0 (Should have been p_239207_6_), model);

Function. The item now correctly renders with the correct colour and scale.

  • Zeher_Monkey changed the title to [Solved] [1.16.5] Custom Trident, issues with in GUI, GROUND and FIXED ItemCameraTransform rendering

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.