Jump to content

[1.14.4] Rendering Enchantment-Effect on custom model


Eisenpaulchen

Recommended Posts

I have an Entity with a custom model and I want to render it with the minecraft enchantment glitter effect, just like a swod or an Item lying on the ground.

I found out that net.minecraft.client.renderer.entity.ItemRender uses net.minecraft.client.renderer.ItemRenderer renderEffect() method and I practically looked what this method does and what is passed as the runnable and then tried 

to do the same with my customRenderer renderModel() called in doRender(). But I can not get this to work.

I am especially confused about the time dependet translations in the renderEffect() since I thought these where used to translate the whole mesh not just the texture (Which I think they are for)
Did someone already the same or has a clue what is special in vanillas way of rendering this effect?

 

Link to comment
Share on other sites

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.