Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicEnchants MythicEnchants
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicEnchantsMythicEnchants
  • Wiki
  • Rarities

Rarities · Changes

Page history
Update to reflect new rarities syntax. authored Dec 31, 2023 by RazielMartelus96's avatar RazielMartelus96
Hide whitespace changes
Inline Side-by-side
Showing with 32 additions and 23 deletions
+32 -23
  • Rarities.md Rarities.md +32 -23
  • No files found.
Rarities.md
View page @ 9a982e2c
......@@ -5,32 +5,41 @@ Rarities serve as an easy way to group enchantments and configure how they're ob
Every rarity has the following fields:
* `Display` - How the rarity is displayed in any info sources or output
* `Color` - The color enchantments of this rarity will be in the item tooltip
* `EnchantingTable.Chance` - A list of chances for an enchantment of this rarity to be chosen if a custom enchant will be applied. The first number corresponds to the [Lapis Level](https://git.lumine.io/mythiccraft/mythicenchants/-/wikis/Lapis-Level), and the second is a chance (where 0.25 is 25%).
* `EnchantingTable.MinLevel` - The minimum xp level a player must have to receive an enchant of this rarity. The first number corresponds to the [Lapis Level](https://git.lumine.io/mythiccraft/mythicenchants/-/wikis/Lapis-Level), and the second is the experience level.
* `EnchantingTable.MinCost` - The minimum enchanting cost to receive an enchant of this rarity. The first number corresponds to the [Lapis Level](https://git.lumine.io/mythiccraft/mythicenchants/-/wikis/Lapis-Level), and the second is the cost (between 1 and 3).
* `EnchantingTable.Dungeons.Chance` - Chance of an Enchanted item appearing within a loot chest within a Dungeon, Mineshaft or any other randomly generated loot in Vanilla Minecraft.
* `EnchantingTable.VillagerTrades.Chance` - Chance of a villager, based on profession, having a trade that includes a Mythically Enchanted item. The first value is the profession of the villager, the second is a chance in percentage (100.0 is 100%)
* `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](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Villager.Profession.html). | 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'
Color: GRAY
EnchantingTable:
Chance:
- 0 1.0
- 1 0.5
- 2 0.7
MinLevel:
- 0 10
- 1 15
- 2 5
MinCost:
- 0 3
- 1 2
- 2 1
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: 100.0
VillagerTrades:
Chance:
- librarian 100.0
- weaponsmith 100.0
\ No newline at end of file
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}
\ No newline at end of file
Clone repository

Manual

  • Home
  • Changelogs
  • Commands and Permissions
  • FAQ / Common Issues
Usage
  • Installation & Setup
  • Premade Enchantments
  • Creating Custom Enchantments
  • Options
  • Rarities
  • Tables
Custom Enchantments
  • Mechanics
  • Targeters
  • Triggers
  • Conditions
  • Placeholders