Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Recipes not working due to item having extra NBT data. #74

Open
Tudorhc5 opened this issue Sep 30, 2024 · 1 comment
Open

Custom Recipes not working due to item having extra NBT data. #74

Tudorhc5 opened this issue Sep 30, 2024 · 1 comment
Labels
bug 插件的功能存在问题

Comments

@Tudorhc5
Copy link

Tudorhc5 commented Sep 30, 2024

Describe the bug | 描述你遇到的bug

Create a custom recipe involving Enchanted Books Under their vanilla max enchantment level. If you get them out of creative, or buy them from a villager, they have less NBT than if you get the enchanted book by upgrading in an anvil. (Place in anvil any 2 enchanted books at least one level under it's max, to get the next level) (ex: Sharpness IV + Sharpness IV will equal Sharpness V.

The books you get from a villager or creative tab, will look like this: (Let's call this Variant A)
variant_a

The books you get from upgrading enchanted books in anvil look like this: (Let's call this Variant B)
variant_b

For some reason minecraft adds this extra "repair_cost" nbt.

Steps to reproduce the bug | 复现此Bug的步骤

  1. Create a custom recipe using books Variant A
  2. Try to use the custom recipe with books obtained thru Variant B
  3. Observe that the plugin does not recognize the item as part of the recipe.

Server version | 服务器版本

Folia 1.21.1-R0.1 - SNAPSHOT -

  • I'm gonna add here that I tested this on a single player world on Minecraft 1.21.1 and the behavior is the same, the extra NBT gets added as well. Checked via data get entity @s SelectedItem

Craftorithm Version | Craftorithm的版本

Plugin Version: 1.10.10-20240913

FULL server log | 完整服务器日志

Not relevant

Other files, you can drag and drop them here to upload | 其他文件,你可以拖拽文件到这里上传

Not relevant

Images | 相关图片

https://imgur.com/a/gNqkhQA

@Tudorhc5 Tudorhc5 added the bug 插件的功能存在问题 label Sep 30, 2024
@YufiriaMazenta
Copy link
Owner

There is no good solution to this at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 插件的功能存在问题
Projects
None yet
Development

No branches or pull requests

2 participants