Below is some help regarding to this file, if you did not know already you can make AS MANY enchants you want using the Enchant Fields found below in enchants.yml following YAML formatting.
Enchant Fields
enabled - whether the enchant is enabled or not
id - unique identifier for the enchant
default-level - the default level of the enchant
max-level - the highest level that the enchant can be upgraded to
chance - the likelihood of the enchant activating
chance-per-upgrade - for every additional level of an enchant, this provides a greater chance of activating
tokens-per - this is the amount of the plugin currency that is given when the enchant activates
additional-tokens-per-upgrade - additional amount of plugin currency per level
command-dispatch-type - "RANDOM" or "ALL" (self-explanatory)
commands - commands (without /) that can be ran when the enchant activates (array)
messages - these are sent to the player when the reward is activated (array)
public-broadcast-message-when-activated - a single message broadcasted on activation
extra-drops-per-level - refers to how much extra crop is given per level
expPer - exp per activation
additional-exp-per-upgrade - extra exp per activation
money-per - money per activation
additional-money-per-upgrade - extra money per activation
shockwave - whether an enchant has shockwave (a radius breaking enchant)
shockwave-radius - radius of the "shockwave"
additional-shockwave-per-upgrade - additional radius per level
holding-potions-amplifier-increase-per-level - increase in potion amplifier per level
holding-potions - e.g. "FAST_DIGGING:-1" - format is POTION:AMPLIFIER (array)
custom-economy - Vault economy name or class
custom-economy-per - amount of custom economy
additional-custom-economy-per-upgrade - additional amount of custom economy per upgrade
Example:
Ability to natively hook into multiple vault economies, below is an example of how to implement it in enchants.yml ("GoldEconomy" is a made up plugin for showcase purpose only)
# Create your own enchants here.enchants:- id:goldenabled:truedefault-level:0max-level:1chance:100custom-economy:'GoldEconomy'custom-economy-per:1additional-custom-economy-per-upgrade:1
Having errors relating to this file/yaml?
Copy and paste the contents of the file into https://codebeautify.org/yaml-validatorand click "Validate YAML", it should then provide steps to where a config error might have occurred.
# ID: 'token_finder'token-finder-enchant:enabled:truechance:25.0chance-per-upgrade:0.3default-level:1max-level:15tokens-per:1additional-tokens-per-upgrade:1required-prestige-level:0command-dispatch-type:ALLcommands: []messages: []# ID: 'spawner_finder'spawner-finder-enchant:enabled:truechance:0.5chance-per-upgrade:0.01default-level:1max-level:15required-prestige-level:0command-dispatch-type:RANDOMcommands: - ss give {player} blaze 1 - ss give {player} zombie 1messages: - '&e&lTREASURE &8&l| &dYou were lucky and found a &l&nspawner&r&d while using your harvester hoe!'# ID: 'key_finder'key-finder-enchant:enabled:truechance:0.5chance-per-upgrade:0.01default-level:1max-level:15required-prestige-level:0command-dispatch-type:RANDOMcommands: - crate give {player} default 1 - crate give {player} rare 1 - crate give {player} epic 1 - crate give {player} legendary 1messages: - '&e&lTREASURE &8&l| &dYou were lucky and found a &l&nkey&r&d while using your harvester hoe!'# ID: 'harvest_booster'harvest-booster-enchant:enabled:truechance:100.0chance-per-upgrade:0.0default-level:0max-level:1extra-drops-per-level:1required-prestige-level:0command-dispatch-type:ALLcommands: []messages: []# ID: 'autosell'autosell-enchant:enabled:truechance:100.0chance-per-upgrade:0.0default-level:0max-level:1autosell:truerequired-prestige-level:0command-dispatch-type:ALLcommands: []messages: []# ID: 'money_finder'money-finder-enchant:enabled:truechance:0.5chance-per-upgrade:0.01default-level:1max-level:15money-per:5000.0additional-money-per-upgrade:2500.0required-prestige-level:0command-dispatch-type:ALLcommands: []messages: - '&e&lTREASURE &8&l| &dYou were lucky and found &l&n{0}&r&d while using your harvester hoe!'# ID: 'exp_finder'exp-finder-enchant:enabled:truechance:0.5chance-per-upgrade:0.01default-level:1max-level:15exp-per:500additional-exp-per-upgrade:250required-prestige-level:0command-dispatch-type:ALLcommands: []messages: - '&e&lTREASURE &8&l| &dYou were lucky and found &l&nexp&r&d while using your harvester hoe!'# ID: 'haste'haste-enchant:enabled:truechance:100.0chance-per-upgrade:0.0default-level:0max-level:3holding-potions: - FAST_DIGGING:-1holding-potions-amplifier-increase-per-level:1required-prestige-level:0command-dispatch-type:RANDOMcommands: []messages: []# ID: 'shockwave'shockwave-enchant:enabled:truechance:100.0chance-per-upgrade:0.0default-level:0max-level:1shockwave:trueshockwave-radius:1additional-shockwave-per-upgrade:1required-prestige-level:0command-dispatch-type:ALLcommands: []messages: []# ID: 'soulbound'# Disabled by default. On death, the item will not drop and will instead be put in the player's inventory on respawn.soulbound-enchant:enabled:falsechance:100.0chance-per-upgrade:0.0default-level:0max-level:1soulbound:truerequired-prestige-level:0command-dispatch-type:ALLcommands: []messages: []# Create your own enchants here.enchants:- id:example_enchantenabled:falsedefault-level:1max-level:15chance:50.0chance-per-upgrade:0.0command-dispatch-type:ALLcommands: []messages: - This is an example enchant that activates 50% of the time. Disabled by default.tokens-per:0additional-tokens-per-upgrade:0exp-per:0additional-exp-per-upgrade:0autosell:falsesoulbound:falsemoney-per:0.0additional-money-per-upgrade:0.0chance-effects: []extra-money-per-sell-level:0extra-drops-per-level:0public-broadcast-message-when-activated:''holding-potions: []holding-potions-amplifier-increase-per-level:0shockwave:falseshockwave-radius:0additional-shockwave-per-upgrade:1custom-economy:''custom-economy-per:0.0additional-custom-economy-per-upgrade:0.0required-prestige-level:0# Do not change this, this is for old enchant chances. Not Legacy versions.use-legacy-chances:false