Skip to content

Enchantments

endstone.enchantments

Classes:

Name Description
Enchantment

Enchantment

Methods:

Name Description
can_enchant_item

Checks if this Enchantment may be applied to the given ItemStack.

conflicts_with

Check if this enchantment conflicts with another enchantment.

Attributes:

Name Type Description
key NamespacedKey

Return the namespaced identifier for this enchantment.

max_level int

Gets the maximum level that this Enchantment may become.

start_level int

Gets the level that this Enchantment should start at (also known as minimum level).

key property

key: NamespacedKey

Return the namespaced identifier for this enchantment.

max_level property

max_level: int

Gets the maximum level that this Enchantment may become.

start_level property

start_level: int

Gets the level that this Enchantment should start at (also known as minimum level).

can_enchant_item

can_enchant_item(item: ItemStack) -> bool

Checks if this Enchantment may be applied to the given ItemStack.

This does not check if it conflicts with any enchantments already applied to the item.

conflicts_with

conflicts_with(other: Enchantment) -> bool

Check if this enchantment conflicts with another enchantment.