mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-26 06:11:40 +01:00
Added treasure rarity
This commit is contained in:
parent
8acce77ced
commit
28f32b8930
@ -48,7 +48,7 @@ public class EnchantmentCache {
|
||||
);
|
||||
name = String.valueOf(ConfigManager.getLang().getString("enchantments." + enchantment.getKey().getKey().toLowerCase() + ".name"));
|
||||
type = enchantment.isCursed() ? EcoEnchant.EnchantmentType.CURSE : EcoEnchant.EnchantmentType.NORMAL;
|
||||
rarity = EnchantmentRarity.getByName(ConfigManager.getConfig().getString("lore.vanilla-rarity"));
|
||||
rarity = enchantment.isTreasure() ? EnchantmentRarity.getByName(ConfigManager.getConfig().getString("lore.vanilla-treasure-rarity")) : EnchantmentRarity.getByName(ConfigManager.getConfig().getString("lore.vanilla-rarity"));
|
||||
}
|
||||
|
||||
color = type.getColor();
|
||||
|
@ -46,6 +46,7 @@ lore:
|
||||
- special
|
||||
- veryspecial
|
||||
vanilla-rarity: uncommon # Vanilla enchantments do not have an EcoEnchants rarity - what rarity should they have?
|
||||
vanilla-treasure-rarity: legendary # Treasure enchantments do not appear in vanilla enchanting tables (Mending, Soul Speed, Frost Walker)
|
||||
|
||||
describe: # Describe enchantments in lore
|
||||
enabled: false
|
||||
|
Loading…
Reference in New Issue
Block a user