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 trying to create a rotated variant, like sand. I've seen the createRotatedVariantBlock method in the BlockModelProvider class. But, I do not know how to apply in a mod block. There's a way to do it?

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)

7 minutes ago, LuccaPossamai said:

I didn't mean this kind of rotation, I men the rotation of the sand or gravel that only the top side texture is rotated.

sorry I have no idea what you mean🤔

  • Author

I don't know how to explain, but, look at this picture. There are 2 blocks of sand, and the top texture of the both are different(rotated). 

 

image.png

Edited by LuccaPossamai

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

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.