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 have had some reports of a custom recipe in my mod not working properly. I cannot reproduce it but I've seen others who can. It is a custom recipe which I created because I needed a recipe that matches only with an efficiency 3 enchanted diamond pickaxe. So I need the recipe to match on specific NBT data. Here is my custom recipe:

 

https://github.com/McJty/RFTools/blob/master/src/main/java/com/mcjty/rftools/crafting/NBTMatchingRecipe.java

 

and here is where I use it:

 

https://github.com/McJty/RFTools/blob/master/src/main/java/com/mcjty/rftools/crafting/ModCrafting.java

 

As it works for me it is a bit hard to debug. Can someone spot a mistake that I may have made here? Maybe there is some kind of mod interaction going on and in that case I'd like to make my recipe more robust.

 

Thanks!

  • Author

There is no crash. It is just not crafting. The recipe simply doesn't work.

 

Anyway, I suspect I know what the problem is. It is possible that my NBT matching algorithm is too specific. It appears that an enchanted pickaxe made with 'x' key works fine while an echanted pickaxe made with an enchnated book and anvil doesn't. So I probably have to change my matching algorithm to only match the NBT keys that I want.

You should check only if the enchant tag is same, for Item's NBT can contain various information.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

  • Author

Yes. I have now refined the custom recipe so that it only compares certain NBT tags and ignores the rest. Works much better now. Thanks!

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.