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

Last edited by Phillip Nov 11, 2024
Page history

Rarities

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}
Clone repository

Manual

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