code_language.skript:
on inventory click:
if clicked item is any pickaxe or shovel or axe or sword or hoe or helmet or chestplate or leggings or boots:
player's cursor slot is 403:0:
if clicked item is player's tool:
repair player's tool by 50
cancel event
remove 1 of player's cursor slot from player's cursor slot
i think is something like that but how do i add the enchantments?