NerdyPuzzle / Just-enough-recipes-MCreator

GNU Lesser General Public License v2.1
3 stars 1 forks source link

JER Anvil Recipe removes enchantments #3

Open smmmadden opened 3 months ago

smmmadden commented 3 months ago

I created a JER Recipe for repairing tools on the Anvil. What happens is if the tool has enchantments, they get removed during the repair. The expectation is if a tool has enchantments and being repaired, it should keep all the enchantments AND repair the tool. Perhaps the Anvil Recipe either needs to include a checkbox for Keep Enchantments or automatically check existing enchantments and maintain post-repair. Recipe for repair Painite Swords image Current Enchantments and needing repair image Anvil Repair Screen for Painite Sword and right-side showing no enchantments image Sword repaired and now with no enchantments image

I also tried pickaxes as well and they lose the enchantments. However, my armor retains them so could just be tools not being retained. Thanks - Steve

NerdyPuzzle commented 3 months ago

You should use the repair item fields in the tool element not an anvil recipe. Either way, I will look into adding a checkbox to keep the nbt of the item being used in the recipe.

smmmadden commented 3 months ago

Agreed, but it doesn't work. For some reason MCreator still doesn't support it. I've tested my swords, pickaxes and bow and all three lose their enchantments. Each of the tools have the repair items present, but without the Anvil recipe, it doesn't register. That's why I was very happy to see you had the anvil recipe option. :-)

NerdyPuzzle commented 3 months ago

Seems you figured it out anyway