MythicEnchants allows you to configure any number of "rarities" or types of enchantments. These are defined in the raries.yml
file.
Rarities serve as an easy way to group enchantments and configure how they're obtained.
Every rarity has the following fields:
-
Display
- How the rarity is displayed in any info sources or output -
Sources
- The various methods in which Enchantments of this rarity can be generated in-game: Can either be "villager" for villager trades, or "enchantingTable to have a chance of being rolled whilst enchanting on an Enchanting Table. -
Loot_Chance
- The chance for Enchantments of this rarity to spawn in "loot chests" (such as mineshaft chests, spawner chests etc)
Villager source attributes:
Attribute | Aliases | Description | Default |
---|---|---|---|
profession | v | The profession of the villager, as per Spigot's Villager Professions. | N/A |
chance | c | Chance of an enchantable item being enchanted with a Mythic Enchantment. | 1.0 |
EnchantingTable source attributes:
Attribute | Aliases | Description | Default |
---|---|---|---|
chance | c | Chance of the enchanted item being rolled during enchantment. | 1.0 |
level | l, lv, lvl | The level of the Enchantment Rolled will be generated with, starting at 0. | 0 |
table-level | tl, t-lvl, tableLvl | The level requirement on the Enchanting Table needed for a chance to roll the Enchantment, starting at 0. . | 0 |
min-cost | mc | The minimum required lapis (hence also levels) required to be spent for a chance at rolling the enchantment, starting at 0. | 0 |
COMMON:
Display: 'Common'
Sources:
- villager{profession=weaponsmith;chance=1.0}
- villager{profession=mason;chance=1.0}
- enchantingTable{level=1;tableLevel=20;chance=0.05}
- enchantingTable{level=2;tableLevel=20;chance=0.05}
Dungeons:
Chance: 0.5
RARE:
Display: 'Rare'
Color: GRAY
Sources:
- enchantingTable{level=0;tableLevel=20;chance=0.5}
- enchantingTable{level=1;tableLevel=25;chance=0.25}
- enchantingTable{level=2;tableLevel=30;chance=0.50}