BetaReadonly BetaisReadonly BetaslotsReadonly BetatypeStatic Readonly BetacomponentBetaThe enchantment interface to be added.
ScriptItemEnchantmentUnknownIdError: Exception thrown if the enchantment type does not exist.
ScriptItemEnchantmentLevelOutOfBoundsError: Exception thrown if the enchantment level is outside the allowable range for the given enchantment type.
ScriptItemEnchantmentTypeNotCompatibleError: Exception thrown if the enchantment is not compatible with the item stack.
EnchantmentLevelOutOfBoundsError
EnchantmentTypeNotCompatibleError
Error
BetaThe list of enchantments to be added.
Adds a list of enchantments to the item stack.
This function can't be called in read-only mode.
ScriptItemEnchantmentUnknownIdError: Exception thrown if any enchantment type does not exist.
ScriptItemEnchantmentLevelOutOfBoundsError: Exception thrown if any enchantment level is outside the allowable range for the given enchantment type.
ScriptItemEnchantmentTypeNotCompatibleError: Exception thrown if any enchantment is not compatible with the item stack.
EnchantmentLevelOutOfBoundsError
EnchantmentTypeNotCompatibleError
Error
BetaThe enchantment interface to be added.
Returns true if the enchantment can be added to the item stack.
ScriptItemEnchantmentUnknownIdError: Exception thrown if the enchantment type does not exist.
ScriptItemEnchantmentLevelOutOfBoundsError: Exception thrown if the enchantment level is outside the allowable range for the given enchantment type.
BetaThe enchantment type to get.
Returns the enchantment if it exists on the item stack.
BetaThe enchantment type to check for.
Returns true if the item stack has the enchantment type.
BetaThe enchantment type to remove.
When present on an item, this item can have enchantments applied to it.