Mantic Development
DiscordStore
  • Join our Discord
  • Visit our Store
  • Welcome!
  • 📚ManticLib
  • 🤖Server Bot
    • 📬Setup Guide
    • 🆘Frequently Asked Questions
    • Config Files
      • config.yml
      • custom_responses.yml
      • messages.yml
      • reactionroles.yml
      • ticketsettings.json
      • technical_settings.yml
    • Modules
      • Application Module
      • Music Module
      • AI Module Module
      • MCModule
  • 🌾ManticHoes
    • Permissions
    • Placeholders
    • Config Files
      • config.yml
      • enchants.yml
      • prestige.yml
      • messages.yml
      • harvest-event.yml
      • commands.yml
      • harvester-hoes.yml
      • override-prices.yml
      • Menus
        • main.yml
        • prestige.yml
        • crop-prices.yml
        • token-shop.yml
        • leaderboard.yml
        • upgrades.yml
  • ⚔️ManticSwords
    • Config Files
      • config.yml
      • messages.yml
      • commands.yml
      • mob-swords.yml
      • leaderboard.yml
      • crystal-shop.yml
      • upgrades.yml
      • drops.yml
      • override_prices.yml
      • enchants.json
    • Placeholders
    • Permissions
  • 🎣ManticRods
    • Config Files
      • config.yml
      • messages.yml
      • commands.yml
      • rods.yml
      • leaderboard.yml
      • shard-shop.yml
      • upgrades.yml
      • drops.json
      • enchants.json
    • Permissions
    • Placeholders
  • 🌑ManticDarkzone
    • Config Files
      • config.yml
      • darkzone-mobs.yml
      • commands.yml
      • messages.yml
    • Frequently Asked Questions (FAQ)
  • 🛡️ManticSets
    • Placeholders
    • Permissions
    • Config Files
      • config.yml
      • messages.yml
      • _INFO.txt
      • Pre-Made Sets
        • Damage Set
        • Patching Set
        • XP Booster Set
        • McMMO Booster Set
        • Money Booster Set
        • ShopGUI+ Booster Set
        • Token Booster Set
        • Crystal Booster Set
        • Shard Booster Set
        • Coin Booster Set
        • Regeneration Set
        • Health Boost Set
    • Custom data for armour
  • 💴AfkZone
    • Setup Guide
    • Placeholders
    • Config Files
      • config.yml
      • gem-shop.yml
  • 💴ManticCurrency
    • Frequently Asked Questions (FAQ)
    • Placeholders
    • Config Files
      • config.yml
      • currency-shop.yml
      • leaderboard.yml
  • 🎁Giftcards
    • Config Files
      • config.yml
      • giftcard_items.yml
      • view_menu.yml
  • 🗡️InfiniteKoth
  • 🌊Water Pearls
  • 🤺PvPItems
    • 📖Configurations
    • 🎟️Permissions
  • ⛏️Mining Economy
    • 📑Configuration
    • ⌨️Commands and Usages
    • 🎟️Permissions
    • 📂Placeholders
    • ⚙️API
    • 🍩Free Addons
  • 👿DevilEnchants
    • Config Files
      • config.yml
      • lang.yml
      • enchant-settings.yml
      • custom-enchant.yml
  • 🪄VanillaEnchants
    • Config Files
      • config.yml
      • messages.yml
      • enchant-settings.yml
      • custom-enchant.yml
  • 💣Throwable Creepers
    • Config Files
      • config.yml
  • 🛄Reclaim
    • config.yml
  • 🤝EULA
Powered by GitBook
On this page
  • Enchant Fields
  • Having errors relating to this file/json?
  1. ManticRods
  2. Config Files

enchants.json

ManticRods Configuration Files

Previousdrops.jsonNextPermissions

Last updated 1 year ago

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 shardsPer - this is the amount of the plugin currency that is given when the enchant activates additionalShardsPerUpgrade - 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)

    {
      "id": "gold",
      "chance": 100.0,
      "chancePerUpgrade": 0.0,
      "defaultLevel": 0,
      "maxLevel": 1,
      "customEconomy": "GoldEconomy",
      "customEconomyPer": 1,
      "additionalCustomEconomyPerUpgrade": 1
    }

Fields above labelled '(array)' must be in an array (list format) - use this for guidance:

Having errors relating to this file/json?

{
  "enchants": [
    {
      "id": "shard_finder",
      "chance": 100.0,
      "chancePerUpgrade": 0.0,
      "shardsPer": 1,
      "additionalShardsPerUpgrade": 1,
      "defaultLevel": 1,
      "maxLevel": 15
    },
    {
      "id": "key_finder",
      "chance": 5.0,
      "chancePerUpgrade": 0.1,
      "commands": [
        "crate give {player} default 1"
      ],
      "commandDispatchType": "RANDOM",
      "defaultLevel": 1,
      "maxLevel": 15,
      "messages": [
        "§e§lTREASURE §8§l| §dYou were lucky and found a key while your their fishing rod!"
      ]
    },
    {
      "id": "spawner_finder",
      "chance": 5.0,
      "chancePerUpgrade": 0.1,
      "commands": [
        "ss give {player} blaze 1"
      ],
      "commandDispatchType": "RANDOM",
      "defaultLevel": 1,
      "maxLevel": 15,
      "messages": [
        "§e§lTREASURE §8§l| §dYou were lucky and found a spawner while using your fishing rod!"
      ]
    },
    {
      "id": "drop_booster",
      "chance": 100.0,
      "chancePerUpgrade": 0.0,
      "defaultLevel": 1,
      "maxLevel": 15,
      "extraDropsPerLevel": 0.25
    },
    {
      "id": "autosell",
      "chance": 100.0,
      "chancePerUpgrade": 0.0,
      "defaultLevel": 0,
      "maxLevel": 1,
      "autosell": true
    },
    {
      "id": "money_finder",
      "chance": 5.0,
      "chancePerUpgrade": 0.1,
      "defaultLevel": 1,
      "maxLevel": 15,
      "moneyPer": 5000.0,
      "additionalMoneyPerUpgrade": 2500.0,
      "messages": [
        "§e§lTREASURE §8§l| §dYou were lucky and found §l§n{0}§r§d while using their fishing rod!"
      ]
    },
    {
      "id": "exp_finder",
      "chance": 5.0,
      "chancePerUpgrade": 0.1,
      "expPer": 500,
      "additionalExpPerUpgrade": 250,
      "defaultLevel": 1,
      "maxLevel": 15,
      "messages": [
        "§e§lTREASURE §8§l| §dYou were lucky and found exp while your fishing rod!"
      ]
    },
    {
      "id": "haste",
      "chance": 1.0,
      "chancePerUpgrade": 0.0,
      "defaultLevel": 0,
      "maxLevel": 3,
      "holdingPotions": [
        "FAST_DIGGING:-1"
      ],
      "holdingPotionsAmplifierIncreasePerLevel": 1
    },
    {
      "id": "time_booster",
      "chance": 100.0,
      "chancePerUpgrade": 0.0,
      "defaultLevel": 1,
      "maxLevel": 30,
      "lessTicksPerUpgrade": 14
    }
  ],
  "useLegacyChances": false
}

Copy and paste the contents of the file into and click "Validate JSON", it should then provide steps to where a config error might have occurred.

🎣
https://www.w3schools.com/js/js_json_arrays.asp
https://codebeautify.org/jsonvalidator