Enchantable

constructor(enchantmentValue: Provider<Int>, primaryEnchantments: Provider<Set<Enchantment>>, supportedEnchantments: Provider<Set<Enchantment>>)

Parameters

enchantmentValue

The enchantment value of the item. A higher enchantment value brings more secondary and higher-level enchantments in the enchanting table. Vanilla enchantment values: wood: 15, stone: 5, iron: 14, diamond: 10, gold: 22, netherite: 15

primaryEnchantments

The enchantments that appear in the enchanting table.

supportedEnchantments

The enchantments that can be applied to the item, i.e. via an anvil or commands.