Jump to content

Recommended Posts

Posted

Hi, so I recently made a shader with OpenGL and I'm able to get it to render on the block in the world but I'm having trouble trying to get the actual BlockItem to render. I'm also using GeckoLib & CodeChickenLib, heres what it looks like in game:

2023-03-03-21-07-44.png

Here's my code:

  Reveal hidden contents

I'm also not missing any block/item JSON's so I'm kind of confused. I have been able to get this working in 1.16 but I cant seem to get it working in 1.19.2

Any help appreciated. Thanks 🙂

Posted (edited)
  On 3/3/2023 at 3:19 PM, ChampionAsh5357 said:

You need to add a BEWLR to the item by extending BlockItem, overriding `Item#initializeClient`, have `#getCustomRenderer` return your BEWLR extension, then render the itemstack using your BER there.

Expand  

Hi, thanks for your reply. I have done this however I am still having the same problem. Here's my new code:

  Reveal hidden contents
  Reveal hidden contents
 
  Reveal hidden contents

I'm think I might be missing something. Please let me know if that's the case

Edited by SnakerBone
formatting mistake

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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