items getting enchanted in a table

How would i make it so that warped fungus on a stick is able to be enchanted at a table?

I changed the jsons so that sharp_weapon.json has { "values": [ "#minecraft:swords", "#minecraft:warped", "#minecraft:axes" ] } sword.json has { "values": [ "#minecraft:swords", "#minecraft:warped" ] } and warped.json has { "replace": false, "values": [ "minecraft:warped_fungus_on_a_stick" ] }

to clairify, i can enchant with commands and books in an anvil already ijust want to know if it is possible to make it able to be enchanted with a table

Continue to help post