WolfyScript / CustomCrafting-Wiki

Wiki and JavaDocs for CustomCrafting
https://www.spigotmc.org/resources/55883/
9 stars 3 forks source link

Anvil durability recipes not ignoring metadata and not repairing items. #57

Closed Mnky313 closed 2 years ago

Mnky313 commented 2 years ago

Describe the bug I cannot get the anvil repair recipes to function correctly, no matter what settings are selected it only accepts exact metadata (so the exact durability of the item I used in the recipe) and doesn't change durability when attempting to repair.

To Reproduce create an anvil recipe on durability mode attempt to use it even with ignore meta it doesn't accept any different durability input even when using the same durability item the durability remains unchanged.

Expected behavior Ignore meta should accept any durability tool and should repair the item x amount (whatever set in the amount field)

Screenshots image

image image

Server (please complete the following information): Paper #255 1.17.1 Same issue is present with no other plugins or datapacks installed.

Additional context I tried different tools as well and combining 2 different tools, no change.

WolfyScript commented 2 years ago

I can confirm that it doesn't repair it. Going to look into that.
Regarding the recipe not accepting the differently damaged items... Try to create the recipe with an item that isn't damaged or has any other nbt data. How the ignore meta works is that it still checks the meta if the item that's set in the recipe contains any, but ignores it for those without any.

Mnky313 commented 2 years ago

I can confirm that it doesn't repair it. Going to look into that. Regarding the recipe not accepting the differently damaged items... Try to create the recipe with an item that isn't damaged or has any other nbt data. How the ignore meta works is that it still checks the meta if the item that's set in the recipe contains any, but ignores it for those without any.

Thanks, Thought I tried creating a recipe with an undamaged tool but guess not. Using an undamaged tool does let it accept other durabilities.

WolfyScript commented 2 years ago

Closing this as it is fixed in 2.16-beta5. Free version will still take a while.