The title says all, but here's an example:
If it's not possible to change only the material of an item, is there a way to get his enchants and add them to the new item?
Code:
loop all items in player's inventory:
if loop-item is a wooden pickaxe:
set loop-item to stone pickaxe of loop-item's enchant named "&8&l« &d&lPICKAXE &8&l»" with lore loop-item's lore
If it's not possible to change only the material of an item, is there a way to get his enchants and add them to the new item?