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

Hello everyone,

I am ABSOLUTELY NEW to minecraft modding (my first day!) and I understand my question could look stupid but I didn't understand one thing...

Is it possible (I assume it SHOULD BE) to create only ONE BLOCK (one class) and register two different copies of the same class changing only the texture face?

I wand to realize a set of simple building blocks.

In all the basic tutorials I found there is always ONE MODEL and ONE predefined TEXTURE each block class....(using json config files that MUST HAVE same name)

Being a programmer I think it's not possible such approach.... there is something I don't know ?

Can someone explain me how this REALLY works?

Thanks alot!

Just register two separate instances of the same class and use different registry names. Vanilla does this a lot, check the Blocks class.

Edited by imacatlolol
Edited for clarity

I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.

  • Author
On 3/18/2020 at 5:19 AM, imacatlolol said:

Just register two separate instances of the same class and use different registry names. Vanilla does this a lot, check the Blocks class.

thank you! Now I understood how registering works and how json is "linked" with class :)

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.