Option to define what enchantments can be used on an item

Upvotes: 4
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)


Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.