Jump to content

[1.9.4] Extended Blockstates, how do they work?


DavidTriphon

Recommended Posts

Hello again,

 

After spending that last week and a half finalizing my understanding of the item and block registration and render loader functions, I'd love to learn about how extended blockstates work. I see the term used on the forge documentation, but its section hasn't been written yet. I'd love to learn how it works, since I can't seem to easily find any up to date resources through google.

 

I'd like to add a block that is made up of 8 smaller cubes, and they fill up as rocks are placed into the various spaces. This would affect the hitbox for the block and the model shown. I know how to use make models use sub-models based on variants, but I can't make it store more than 4 boolean values, due to the 4 bit nature of metadata. Is there any reasonable way to get around that using extended block states? Would this require having multiple blocks in the same space like I have seen other architecture themed mods do?

 

Any help, advice, or links to useful material is appreciated.

Always, RESEARCH before asking a question. It's likely someone has already asked your question in the past. Filter your google searches with "site:www.minecraftforge.net/forum" to have a better chance finding your problem.

Link to comment
Share on other sites

You need a TileEntity in order to store more than 4 bits of data.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

I'll begin researching those. Thanks for the heads up.

Always, RESEARCH before asking a question. It's likely someone has already asked your question in the past. Filter your google searches with "site:www.minecraftforge.net/forum" to have a better chance finding your problem.

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.