enchantencore:randomness_curse
#minecraft:on_mob_spawn_equipment#minecraft:on_random_loot#minecraft:treasure#minecraft:curse
A chaotic curse. Every time you hit something with the cursed tool, all of its enchantments are removed and rerolled: it gets one random enchantment, a 50% chance for a second, a 40% chance for a third and a 20% chance for a treasure enchantment. The curse itself always stays on the item.
As a curse, it cannot be removed with a Grindstone and shows up in red on the item.
This enchantment has an anvil cost multiplier of 5. When combining it from an enchanted book, the cost is halved.
Enchant the held item: /enchant @s enchantencore:randomness_curse 1
Get an enchanted book: /give @s enchanted_book[stored_enchantments={"enchantencore:randomness_curse":1}]