Jump to content

Block Rotated Variant


LuccaPossamai

Recommended Posts

1 minute ago, LuccaPossamai said:

I've seen the createRotatedVariantBlock method in the BlockModelProvider class.

this is only for the DataGenerator

 

1 minute ago, LuccaPossamai said:

I do not know how to apply in a mod block. There's a way to do it?

you need a BlockStateProperty, you can take look for an example into some vanilla classes (e.g. RotatedPillarBlock)

Link to comment
Share on other sites

On 8/4/2021 at 8:38 PM, Luis_ST said:

you need a BlockStateProperty, you can take look for an example into some vanilla classes (e.g. RotatedPillarBlock)

this is actually the same, you rotate the model in the blockstate.json file

Edited by Luis_ST
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.

Announcements



×
×
  • Create New...

Important Information

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