Add new items made of amethyst

Amethyst reforged items is a datapack/mod who adds new items made from amethyst to give it more usefulness.
I'm trying to make this datapack/mod as vanilla friendly as possible. This is just the beginning; further additions may come later in future updates.
For the datapack version, the resource pack is needed. For Fabric version FabricAPI is needed.
Adds Amethyst apple, Enchanted amethyst apple, Amethyst arrow & Enchanted echo shard apple
Amethyst appleWhen eaten, clears blindness and darkness effects and gives regeneration and speed. If you have glowing, clears the glowing effect, spreads glowing around the player, and gives invisibility.
loot give @s loot amethyst_powered_item:amethyst_apple
Enchanted amethyst appleWhen eaten, gives a custom effect Light shield. As long as the player has absorption effect, gives glowing, night vision, and immunity to darkness and blindness. When an entity hits a player with Light shield, it has a chance to give glowing and weakness.
loot give @s loot amethyst_powered_item:enchanted_amethyst_apple
Amethyst arrowHas natural piercing and higher damage.
loot give @s loot amethyst_powered_item:amethyst_arrow
Enchanted echo shard appleWhen eaten, has a small charging time and the player can perform a sonic boom like the warden. (With the gamerule mob_griefing false, the sonic boom won't break blocks)
loot give @s loot amethyst_powered_item:enchanted_echo_apple
Conversation