execute unless items entity @s weapon.mainhand *[custom_data~{ring:1}] run return run function ws:misc/quest/enchanter/cantenchant
execute if items entity @s weapon.mainhand *[custom_data~{enchanted:1b}] run return run function ws:misc/quest/enchanter/alreadyenchanted
function ws:misc/quest/enchanter/enchant
scoreboard players set @e[type=interaction,tag=quest.enchanter] enchanter.cd 12000