====== minecraft:enchant_with_levels ====== Enchants the given item stack with a given level. It also increments the wanted item stack at the specified index with the level used to enchant. ===== Fields ===== ^ Name ^ Description ^ Type ^ Default Value ^ | ''index'' | The index of the wanted item stacks to target. | An integer ranging from ''0'' to ''1'' inclusive. | | | ''level'' | The level to enchant the target item stack at. | An [[extras:ranges|integer range]] | | | ''treasure'' | Whether to include treasure enchantments or not. | An optional boolean. | ''false'' | ===== Example ===== { "type": "minecraft:enchant_with_levels", "index": 0, "level": { "min": 5, "max": 19 } }