Jump to content

[1.12.2] (Help needed) Selective Block Rendering


Recommended Posts

Posted

Hello wonderful modders!

So I have a query: I have a block, which has a default texture (like all blocks). I'm wondering what would be the best way to go about having its texture change to a 2nd texture when the block is being looked at (within a certain distance and when holding a specific item with a specific metadata), and have it change back to the original texture otherwise. I'd like this to apply to blocks within an imaginary circle on the screen (so, the block being directly looked at and a few around it, based on what would essentially be a 2d-screen-to-3d-world raycast). I don't know if this should be done with a TileEntity and/or TESR, or blockstates (idrk how blockstates work). Help would be greatly appreciated.

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.