Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Author
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.

  • Author
Just now, diesieben07 said:

This is an item model. Items do not have a blockstate.

 

What method would I need to use to register block models? The itemblock models don't load either.

  • Author
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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.