When creating a datapack with a custom enchantment, doing /reload wont make it appear in /enchant (and possibly world generation and more but I can't confirm). You must relog to make it appear.
This also affects them not disappearing after removing them
Linked issues
is duplicated by 2
relates to 2
Attachments
Comments 5
This is the datapack. Your world must already be open when you add the datapack. Then do /reload and /enchantment and the enchant wont be there unless you relog. Also, this may apply to loot tables and other worldgen stuff but I don't know how to set this up.
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Please provide the datapack used.