Jump to content

Recommended Posts

Posted
1 minute ago, diesieben07 said:

Yes, the variant "age" does not exist in your block state. Neither does "normal" or "inventory". "inventory" is a special case, which would load an item model directly, without going to the block state, but that does not exist either.

 

How would I have it dynamically load based on the age value in the blockstate? I have 4 different age variants in each blockstate json.

Posted
12 hours ago, diesieben07 said:

Blocks do not need to register their models. The block state is mapped to a variant (just a string) using a StateMapper. The default state mapper creates a comma-separated list of key-value pairs ("age=3,direction=north", for example).

ItemBlock models are nothing special. They are item models like all others and not related to block models. They are not based on a block state.

 

Interesting. The code's changed quite a bit since last time I modded, it's been years. How would I go about properly setting this? I've not been able to find any suitable tutorials or working mods for it.

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.