Skip to Content
⚠ Under Construction
ReferencePython APIendstone.enchantments

endstone.enchantments

Classes:

NameDescription
Enchantment

Enchantment

Methods:

NameDescription
can_enchant_itemChecks if this Enchantment may be applied to the given ItemStack.
conflicts_withCheck if this enchantment conflicts with another enchantment.

Attributes:

NameTypeDescription
keyNamespacedKeyReturn the namespaced identifier for this enchantment.
max_levelintGets the maximum level that this Enchantment may become.
start_levelintGets the level that this Enchantment should start at (also known as minimum level).
translation_keystrGet the translation key, suitable for use in a translation component.

key

key: NamespacedKey

Return the namespaced identifier for this enchantment.

max_level

max_level: int

Gets the maximum level that this Enchantment may become.

start_level

start_level: int

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

translation_key

translation_key: str

Get the translation key, suitable for use in a translation component.

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.

Last updated on