Docs

Enchants

The pickaxe ships with 25 enchants configured in enchants.yml, and you can create more without code. Each one has a rarity, its own currency, a cost that grows per level, a required pickaxe level, a chance per level, conflicts and requirements.

Configurationenchants.yml, custom-enchants/
Menusmenus/pickaxe.yml, menus/enchant-upgrade.yml
Modulepickaxe-system

Included enchants

Mining and rewards

IDTriggerRarityMax levelCurrencyPickaxe levelEffect
efficiency_boostedPASSIVECOMMON100money1Hidden vanilla Efficiency on the pickaxe
fortune_boostedPOST_BREAKUNCOMMON100money1Extra blocks when mining
telekinesisPOST_BREAKRARE1money5Compatibility: the core already sends every drop to selling, the backpack or the inventory
exp_boostPOST_BREAKUNCOMMON50tokens10Multiplies pickaxe experience
auto_smeltPOST_BREAKRARE3money15Smelts ores
trituradorPOST_BREAKRARE3gems30Chance to double drops
magnetismoPOST_BREAKUNCOMMON10tokens15Picks up items lying on the ground near the player
eco_friendlyPASSIVELEGENDARY1gems50The pickaxe takes no durability damage
auto_sellPOST_BREAKEPIC1free1Automatic selling, included and not removable
gem_finderPOST_BREAKLEGENDARY50gems30Finds gems
token_minerPOST_BREAKRARE100money15Finds tokens
speed_minerPASSIVEUNCOMMON3tokens10Speed while mining
lucky_strikePOST_BREAKMYTHIC10gems50Multiplies the block rewards
jackpotPOST_BREAKRARE100money10Burst of tokens with a chance of gems
frenzyPOST_BREAKEPIC100tokens20Haste III and, while it lasts, extra tokens and +50% experience

Area

IDRarityMax levelCurrencyPickaxe levelWhat it breaks
explosiveEPIC10money20A radius around the block
vein_minerEPIC25tokens25The whole vein of the same ore
drillRARE100tokens15A 3×3 tunnel where you look
laserEPIC100tokens25A straight beam where you look
thunderstrikeEPIC100tokens30A column from top to bottom, 3×3 from level 50
shockwaveEPIC100tokens35A disc around the block, two deep from level 25
layerLEGENDARY100tokens50The whole mine layer at your height
vortexLEGENDARY100tokens55A spiral funnel into the mine
meteorLEGENDARY100tokens60A crater at a random spot in the mine
nukeMYTHIC100tokens75A large sphere around the block

Every area enchant is PRE_BREAK. explosive and vein_miner conflict with each other.

No enchant spawns real TNT or lightning: explosions, meteors and lightning are visual only.


Options of each enchant

yaml
enchantments:
  token_miner:
    display-name: "&e🪙 Token Miner"
    type: PICKAXE
    trigger: POST_BREAK          # PRE_BREAK, POST_BREAK or PASSIVE
    rarity: RARE                 # COMMON, UNCOMMON, RARE, EPIC, LEGENDARY, MYTHIC
    description:
      - "&7Chance to find tokens"
      - "&7when mining blocks."
      - ""
      - "&7Level {level}: &f{value} tokens ({chance}% chance)"
    max-level: 100
    base-cost: 375000.0
    cost-multiplier: 1.07
    currency: "MONEY"            # any currency from currencies.yml
    required-pickaxe-level: 15
    gui-slot: 24
    gui-item: "GOLD_NUGGET"
    conflicts-with: []
    requires: []                 # enchants that must be owned first
    level-values:                # strength per level: here, tokens found
      1: 5
      5: 50
      100: 500
    level-chances:               # chance in % per level
      1: 5
      5: 22
      100: 50
  • Interpolation: level-values and level-chances only need the levels where something changes. Between two entries the value is interpolated, and above the last one it stays. When you raise max-level, add an entry for the new maximum.
  • Cost: level N costs base-cost × cost-multiplier ^ (N - 1).
  • Final chance: level-chances × the enchant-chance stat × the skill tree ENCHANT_POWER node. See Stats.

Buying and removing

  • Menu: clicking an enchant in the pickaxe menu opens its upgrade menu, with buttons to buy 1, 10, 100 or the maximum levels, remove one level or remove it entirely.
  • Commands:
CommandDoes
/enchant listEvery enchant, with your level and price
/enchant <enchant> <levels|max>Buys levels
/enchant remove <enchant> [levels|all]Removes levels with a refund

Aliases: /upgrade, /encantar. Permission: pulseprison.enchant.use.

The refund is pickaxe.disenchant.refund-percent of the price of the removed levels. auto_sell can't be removed, and neither can an enchant another owned enchant depends on.


Where area enchants can break blocks

Every block an area enchant wants to break goes through the same guard. It only breaks when:

  1. It is inside a PulsePrison mine, rank or private, or
  2. It is inside a WorldGuard region with the pulseprison-enchants flag set to allow, and the player could break it by hand.
/rg flag <region> pulseprison-enchants allow

Anywhere else nothing happens. Containers, signs, portals and unbreakable blocks are always skipped.

yaml
settings:
  show-particles: true
  destruction:
    allow-in-mines: true
    allow-in-worldguard-regions: true
    respect-worldguard-build: true
    max-blocks-per-activation: 2500    # cap per activation

Extra blocks are paid like hand mining: with auto-sell they are sold in one batch per material; without it they go to the backpack and then the inventory. A block priced at 0 always goes to the backpack or inventory.

Activation messages

Special enchants announce in chat or the action bar when they activate, so players know what caused an effect. Each player turns them off, switches between chat and action bar, or mutes single enchants in /settings.

yaml
settings:
  activation-messages:
    enabled: true
    default-on: true
    mode: chat                 # chat or actionbar
    cooldown-millis: 1500      # between two messages of the same enchant
    enchants: [explosive, vein_miner, nuke, layer, jackpot, frenzy]
    custom-enchants: true      # also enchants from custom-enchants/

The text is enchant-activation.message in the message files.

Mining order

text
1. PRE_BREAK   area enchants: add extra blocks
2. PASSIVE     efficiency, speed miner, eco friendly
3. POST_BREAK  drops, tokens, gems, multipliers
4. Selling or delivery of the block and the extras
5. Pickaxe experience, levels, pet, season, clan, lucky blocks
6. Action bar

Every activation adds mastery experience for that enchant.

Placeholders

%pulseprison_pickaxe_enchant_<id>%: the enchant level.

Enchants | PulsePrison Core Docs