supported items in enchantments

im actually a skript developer for a server. but since this is datapack related i thought i'd ask here. how would i set the supported items of an enchantment to an item with data like sword diamond_sword{customdata:{type:"some item"}} (idk if i typed that right but yk, im not the best datapack developer)

Continue to help post