Hello, so currently I have a process that looks like this;
- Player has any type of helmet (leather, gold, iron, diamond, netherite)
- That player type /skins and clicks on the skin of his choosing
- My code then stores the players current helmets information (enchantments and type)
- My code removes his current helmet from their hand and runs /iagive command to give them the helmet skin they chose
- My code sets the new skinned helmet to their old enchantments and sets a lore on the item like "Type: DIAMOND_HELMET"
- My code removes any current attributes on the helmet and sets new attributes according to their helmet type
- My code sets new max durability to the skinned helmet according to their previous helmet type
Now, that all works good and dandy, but now I've ran into the issue on Anvils. I tried to create a plugin that basically checks lore of first slot then checks if the second slot is an item that can repair the lore item such as iron or diamond and then set the result to a cloned item stack of the item with new fixed durability.
But the case for me is that I cannot get an ItemsAdder custom item to be set in the result of an Anvil. This works for normal other items but not a custom item from ItemsAdder.
What can I do to either work around this or fix this issue? Thanks!