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'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.

  • Author

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?

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.