Skip to content

drill.json

Jan Kluka edited this page Jul 20, 2026 · 1 revision

Drill bores a straight tunnel (size × size cross-section, depth blocks deep) in the direction the player is facing. As of X-Prison 2026.3.0.3 the tunnelled blocks are sold (or dropped when auto-sell is off), count toward mine resets, and the player is told how much they earned.

{
  "class": "dev.drawethree.xprison.enchant.DrillEnchant",
  "id": 200,
  "rawName": "drill",
  "name": "<aqua>Drill</aqua>",
  "enabled": true,
  "increaseCostBy": "baseCost * pow(1.05, level)",
  "maxLevel": 100,
  "chance": 0.01,
  "depth": 3,
  "size": 3,
  "currencyToGive": "money",
  "message": "",
  "earningsMessage": "<aqua><bold>DRILL</bold></aqua> <dark_gray>»</dark_gray> <white>You bored through the wall and earned <green>%amount%</green>!",
  "initialCost": 5000,
  "pickaxeLevelRequired": 1,
  "currency": "GEMS",
  "refund": {
    "enabled": true,
    "guiSlot": 10,
    "percentage": 50.0
  },
  "prestige": {
    "enabled": true,
    "maxPrestige": 5,
    "requiredActivationsFormula": "2000 * pow(10, prestige)",
    "multiplierPerPrestige": 0.2
  },
  "gui": {
    "name": "<aqua>Drill</aqua>",
    "material": "IRON_PICKAXE",
    "customModelData": 0,
    "slot": 10,
    "description": [
      "<gray>Drills a <aqua>3x3</aqua> tunnel</gray>",
      "<gray><aqua>3</aqua> blocks deep in your</gray>",
      "<gray>facing direction.</gray>"
    ]
  }
}

Shape keys

Key Meaning
size Width & height of the tunnel cross-section (odd numbers centre on the player, e.g. 3 = 3×3).
depth How many blocks deep the tunnel bores in the facing direction.

Reward keys

Key Meaning
currency The currency spent to buy / upgrade the enchant in the GUI.
currencyToGive The currency the player earns when the drill sells the blocks it breaks. Defaults to money. Must be a currency defined in currency.yml.
message Optional flavour line sent every time the drill triggers. Empty ("") by default. Raw MiniMessage.
earningsMessage Sent when the player actually earns something. Supports %amount% (formatted earnings) and %currency% (currency display name). Leave empty to disable. Raw MiniMessage.

Earnings honour your per-region sell prices, the player's Fortune, and this enchant's prestige multiplier — exactly like normal mining. When a player has auto-sell off, the broken blocks are dropped into their inventory instead (and no earningsMessage is sent).

XPrison Logo

General

Modules

Default Configs

Enchant Configs — Passive

Enchant Configs — Currency Rewards

Enchant Configs — Key & Item Rewards

Enchant Configs — Area of Effect

Enchant Configs — Multipliers

Enchant Configs — Templates

Enchant Configs — Addons

Addons

Support

For Developers

Others

Clone this wiki locally