Wiki: Enchantment Object




JSON Specification

Field Name Data Type Required Description Default Value
enchantmentKey String Eg. minecraft:swiftness
enchantmentLevel Whole Number The level of the enchantment to apply to the item. This can be random by setting the value to -1
minEnchantmentLevel Whole Number The minimum level of the enchantment to apply to the item
maxEnchantmentLevel Whole Number This sets an upper limit for the random enchantment level feature