Skip to content

custom enchant.json

Ján Kluka edited this page Aug 13, 2025 · 1 revision
{
  "class": "dev.drawethree.xprison.enchants.model.CommandRewardEnchantBase",
  "id": 999,
  "rawName": "custom-enchant-1",
  "name": "<yellow>Your Custom Enchant</yellow>",
  "enabled": true,
  "increaseCostBy": "baseCost * pow(1.05, level)",
  "maxLevel": 1000,
  "chance": 0.000025,
  "initialCost": 1000,
  "pickaxeLevelRequired": 1,
  "currency": "GEMS",
  "refund": {
    "enabled": true,
    "guiSlot": 34,
    "percentage": 50.0
  },
  "gui": {
    "name": "<yellow>Your Custom Enchant</yellow>",
    "material": "COMMAND_BLOCK",
    "customModelData": 0,
    "slot": 34,
    "description": [
      "<gray>This is your custom enchant!</gray>",
      " ",
      "<gray>This enchant executes commands based on a given chance.</gray>",
      " ",
      "<gray>You can create as many as you want of these</gray>",
      "<gray>by copying the custom-enchant.json</gray>",
      "<gray>renaming it, and modify it to your liking!</gray>"
    ]
  },
  "commands": [
    {
      "commands": ["money give %player% 1000"],
      "chance": 33
    },
    {
      "commands": ["tokens give %player% 1000"],
      "chance": 33
    },
    {
      "commands": ["gems give %player% 1000"],
      "chance": 33
    }
  ]
}

Clone this wiki locally