Jump to content

[1.15] Item Variant Recipes Based on NBT


Tikaji

Recommended Posts

I've followed TGG's example on how to create items with variants (https://github.com/TheGreyGhost/MinecraftByExample/tree/1-15-2-working/src/main/java/minecraftbyexample/mbe11_item_variants) and would now like to add recipes for them. I have ore pieces of one type of ore that would combine into ore chunks of the same ore type. That ore type is stored via NBT. I know that the normal way to create recipes is through JSONs. However, I don't believe that this will work for my situation, and I feel like there should be a way to add recipe variants much like I was able to add item variants. I'm not entirely sure where to even begin looking to figure this one out, nor am I sure what code to share to help out here. Feel free to ask for particulars of my code.

Link to comment
Share on other sites

Ok, that's what I thought. Figured I would ask though.

 

Follow up question then. I want to use the same item class for each ore type (which would mean needing different instances of the class), but the model location is based off the registry name. Is there a way to use the same model file for different registry values so that I don't have to create a bunch of model files that are exactly the same?

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.