Jump to content

[SOLVED] Custom block renderer problem


skore13

Recommended Posts

I made something I can call library. I was about to release it as help for other because it took me a while to make. But when I was creating example mod I run into 2 problems:

1) When custom rendered block is alone in chunk section (you know, that 16*16*16 section of chunk introduced with anvil file format) it's not rendering at all

2) When grass is rendered before it it takes green tint.

I guess that it's because of something that every single block in vanila minecraft does. Something that changes opacity, color and other properties. But I wasn't able to spot that in vanila code. (and I was reading it really carefuly since my library is derived from it) Some kind of flag or something like that. Do you know, what is it? Tessellator or opengl method?

Thank you very much for your help.

 

Github repository here: https://github.com/skore13/renderLib

Creator of easy custom renderer library without tile entity. https://github.com/skore13/renderLib

Link to comment
Share on other sites

Fixed block not showing in chunk section.

 

To fix it I had to return true in renderWorldBlock method.

That means that my library is fine. You can just go ahead and use it. If you use it in your mod please write a line about me. Also please star it on github if you are using it. And send me link to your mod. I just want to see if it's usefull.

Changelog: https://github.com/skore13/renderLib/commits/master

I'm going to add rotation and maybe other shapes so it is going to be more usefull in future.

Creator of easy custom renderer library without tile entity. https://github.com/skore13/renderLib

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.