Jump to content

How to render block inside of a block?


AntonBespoiasov

Recommended Posts

I have a block that stores a lot of data, rendering of this block is depended on the data. All this data didn't fit block state so I move some of it in tile entity. But now I must somehow make a tile entity depended rendering. This block renders part of another block on it. Rendering of this block  is depended on tile entity. I know how to render item in block via tile entity but in this case I must render block in block via tile entity.

Link to comment
Share on other sites

On 10/17/2019 at 7:51 AM, AntonBespoiasov said:

I know how to render item in block via tile entity but in this case I must render block in block via tile entity.

You can use a TESR for this, or if what you have in mind can be done without direct access to the GlStateManager and GLXX classes, you can do it with a FastTESR, and should. See this link for more information on TESR and FastTESR, and this link for information on rendering blocks directly, or if that's too restrictive, this link has some good information about using the Tessellator, although the actual methods calls in there are outdated.

Fancy 3D Graphing Calculator mod, with many different coordinate systems.

Lightweight 3D/2D position/vector transformations library, also with support for different coordinate systems.

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.



×
×
  • Create New...

Important Information

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