Jump to content

Recommended Posts

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?

 

Posted

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.

Posted

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.

Announcements



×
×
  • Create New...

Important Information

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