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

Opening a topic here before reporting it to Github as I'm not 100% sure it's a bug. Posting to get some more input.

 

I've got an issue with setting up an JSON crafting recipe with items with specific nbt tags. Setting the output works perfect. The input is read correctly as it's displaying correctly through JEI.

I'm setting up one with input of type "minecraft:item_nbt" and the code path for loading it is as follows:

 

(Based on Forge build #2359)

On ShapedOreRecipe#210 it loads every crafting ingredient with CraftingHelper.getIngredient(...)

CraftingHelper.getIngredient(...) tries to load it with a factory defined at CraftingHelper#530 which correctly creates an ItemStack with NBT data defined.

CraftingHelpers method getIngredient returns an Ingredient, which apply method is used to verify if a stack matches the given item.

 

The problem I think there is, is that that method is NBT insensitive, it only checks the item and metadata even if the ItemStack has NBT data defined.

 

This could be solved by defining my own Ingredient, but I think there's a usecase within Forge for this too as many mods may use it.

 

Am I right this is issue worthy or should I just make my own Ingredient which overrides the default apply and make a NBT sensitive version of it?

  • Author

Luckily I'm not the only one who thought so. Your implementation is exactly what I was going to write when no-one was gonna respond.

I think I'll open an issue over at the Github as you're also having the same "issue".

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.