Option to define what enchantments can be used on an item

Status
Migrated
Issue description

As the title says,can you add a "choice box" to an item that can choose which enchantments can be used on the item.

Yes,you can add "when enchanted:remove enchantment",but it will waste the player's EXP in enchantment tables and it will make players confused.

Issue comments

I will consider adding this. For now, you can manually override this method:

boolean canApplyAtEnchantingTable(ItemStack stack, net.minecraft.enchantment.Enchantment enchantment)