Truly Modular: Modular Item API

Truly Modular: Modular Item API

Enchantability Property

Description

The Enchantability Property defines how effective an item is for enchanting purposes. This value influences the quality of enchantments available through the enchanting table. By default, enchantability is derived from the material properties of the item, but this property allows for modification through module instances. If no specific value is set, a default enchantability of 15 is used.

Data

  • enchantability: double, representing the enchantability value used for enchantment calculations.
  • default_value: 15.0, the default enchantability if no custom value is provided.
  • material_controlled: By default, enchantability is determined by material properties through the MaterialProperty module.
  • module_instance: Allows for custom enchantability values through module instances, which are averaged if multiple values are present.