Jump to content

Help Needed for Rendering Blocks


Tablock_

Recommended Posts

I would like to create blocks that switch between different models without using block states. I am creating a mod that improves the speed of redstone, and limiting block updates and placements is crucial for large redstone contraptions. Block states require an entirely new block to be placed to function, which I want to avoid. I have developed a method that determines what model I want to render for each particular block via a HashMap. The problem I am having is rendering these models as they change. Imagine a lever connected to a redstone lamp using 5 redstone dust. After flipping the lever, I wish to change the models of each redstone dust and lamp without using block states. A redstone contraption with thousands of redstone dust, torches, etc. will cause lag and may approach the block update limit. Is there a way to do this? It does not matter whether it is possible client-side only or not. The compass item can switch between models, and I was wondering if this is also possible with blocks. If it's impossible, I will resort to block states, only updating the blocks close to the player.

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.