Jump to content

1.14.4 - Create Two blocks with only a different face texture


Recommended Posts

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!

Link to comment
Share on other sites

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.

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.

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.


  • Create New...

Important Information

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