enchants.json
ManticSwords Configuration Files
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.json following JSON formatting.
Enchant Fields
enabled - whether the enchant is enabled or not id - unique identifier for the enchant defaultLevel - the default level of the enchant maxLevel - the highest level that the enchant can be upgraded to chance - the likelihood of the enchant activating chancePerUpgrade - for every additional level of an enchant, this provides a greater chance of activating crystalsPer - this is the amount of the plugin currency that is given when the enchant activates additionalCrystalsPerUpgrade - additional amount of plugin currency per level commandDispatchType - "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) publicBroadcastMessageWhenActivated - a single message broadcasted on activation extraDropsPerLevel - refers to how much extra drops is given per level expPer - exp per activation additionalExpPerUpgrade - extra exp per activation moneyPer - money per activation additionalMoneyPerUpgrade - extra money per activation holdingPotionsAmplifierIncreasePerLevel - increase in potion amplifier per level holdingPotions - e.g. "FAST_DIGGING:-1" - format is POTION:AMPLIFIER (array)
customEconomy - Vault economy name or class customEconomyPer - amount of custom economy additionalCustomEconomyPerUpgrade - 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.json ("GoldEconomy" is a made up plugin for showcase purpose only)
Fields above labelled '(array)' must be in an array (list format) - use this for guidance: https://www.w3schools.com/js/js_json_arrays.asp
Having errors relating to this file/json?
Copy and paste the contents of the file into https://codebeautify.org/jsonvalidator and click "Validate JSON", it should then provide steps to where a config error might have occurred.
Last updated