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

Posted

I'm making a blender for my mod and I have some buttons on it, I want them to be always faced to the player.

I tryed using BlockStates when I was googling about that, but it cannot resolve symbol 'BlockState' so I guess its deleted than. Is there some other way to do this than?

 

This is what I've done so far:

Blender class

Blockstate .json

Model .json

 

BlockState line is still here but its giving the error so what should I do?

 

The error is in your override of

Block#createBlockState

, so try looking at the super method's signature to see what it returns.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

  • Author

Ok I found Block#createBlockState and added it to my code but whenever I add {FACING} to the return it just crashes the game:

 

    protected BlockStateContainer createBlockState()
    {
        return new BlockStateContainer(this, new IProperty[] {FACING});
    }

 

It gives somekind of Registry error

 

 

You need to override

Block#getStateFromMeta

and

Block#getMetaFromState

to convert between state and metadata.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Guest
This topic is now closed to further replies.

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.