COWMODSКаталог модов

goldminer

A Gold Miner mini-game plugin, suitable for a mining mini-game plugin for Purpur 1.21.11, where players mine in a separate mine world to earn coins and experience, upgrade pickaxes, purchase items, and form teams.

Автор: weiding420обновлён 14 окт. 2026 г.
Мини-игрыГенерация мира

Описание

A mining mini-game plugin for Purpur 1.21.11, where players mine in an independent mine world to earn coins and experience, upgrade pickaxes, purchase items, and form teams.


Dependencies

PluginRequiredDescription
Multiverse-CoreYesWorld management
VaultYesEconomy system integration
PlaceholderAPINoPlaceholder support (recommended)

Installation & Setup

  1. Ensure the required dependencies are installed
  2. Place GoldMiner.jar into the server's plugins/ directory
  3. Restart the server or run /plugman load GoldMiner
  4. The plugin will generate configuration files under plugins/GoldMiner/:
    • config.yml - Main configuration
    • lang.yml - Language/messages
    • block.yml - Ore definitions
    • shop.yml - Shop pricing
  5. Modify the configuration files as needed, then run /goldminer reload to reload

Command Reference

Player Commands

CommandDescription
/goldminer joinJoin the mine world and start mining
/goldminer shopOpen the mine shop GUI
/goldminer infoView miner info (level/coins/crit rate, etc.)
/goldminer suitToggle equipment display/hide
/goldminer buy lv <amount>Precisely purchase a specified number of levels
/goldminer buy lv <amount> confirmConfirm the level purchase
/goldminer team createCreate a team
/goldminer team join <team name>Apply to join a team
/goldminer team accept [player name]Accept a join application
/goldminer team leaveLeave the team (experience/level cleared)
/goldminer team listView the team list
/goldminer topView the leaderboard
/goldminer exchange [amount]Exchange mine coins for main world currency
/goldminer helpView help

Admin Commands

CommandDescription
/goldminer reloadReload all configuration files
/goldminer reload poolForce refresh the mine pool (ores re-randomized)
/goldminer reload infoRefresh player data and mine world info
/goldminer shop set <key> <price>Hot-modify shop prices (takes effect immediately)
`/goldminer set explv `
`/goldminer add explv `
`/goldminer remove explv `

PlaceholderAPI

PlaceholderReturn ValueDescription
%goldminer_reload_time%IntegerMine refresh interval (seconds)
%goldminer_user_level%IntegerPlayer's current level
%goldminer_user_money%IntegerPlayer's coins
%goldminer_crit_hit_rate%Percentage stringCrit rate (e.g., "5.0")
%goldminer_crit_magnification%Multiplier stringCrit multiplier (e.g., "2.5")
%goldminer_crit_time%IntegerRemaining time of bonus crit multiplier (seconds)
%goldminer_interlocking_type%StringCurrent chain type ("None"/Plane X/Plane Z/Radius/View Direction)
%goldminer_interlocking_time%IntegerRemaining time of the chain trial card (seconds)
%goldminer_nomal_interlocking_time%IntegerRemaining time of general chain (seconds)

Configuration Files

config.yml

The main configuration file, controlling mine parameters, pickaxe enchant limits, potion effects, the crit system, and more.

# Storage settings
storage:
  type: sqlite              # sqlite or mysql
  mysql:
    host: localhost
    port: 3306
    database: goldminer
    username: root
    password: password

# Mine settings
mine:
  world-name: "goldminer_mine"  # Mine world name
  border-size: 2000             # World border
  center-size: 100              # Side length of the mine core area
  refresh-interval: 30          # Auto refresh interval (seconds)

# Crit system
crit-system:
  default-crit-rate: 0.005         # Initial crit rate (0.5%)
  default-crit-magnification: 0.5  # Initial crit multiplier
  bonus-crit-mag-duration: 1800    # Duration of bonus crit multiplier (seconds)
  overflow-exp-multiplier: 500.0   # Conversion multiplier for overflow crit rate into experience

# Stepping glass
glass-block:
  material: GLASS          # Glass block type
  name: "&fStepping Glass &7(Infinite Use)"
  lore: "&7A glass block that can be placed infinitely"

# Pickaxe enchant limits (by pickaxe level)
pickaxe-enchant-limits:
  default: {efficiency: 5, fortune: 3, unbreaking: 3}
  iron: {efficiency: 10, ...}
  diamond: {efficiency: 30, fortune: 10, ...}
  netherite: {efficiency: 255, fortune: 15, ...}

lang.yml

The language/message file; all displayed text can be configured here:

# Mining messages
mining:
  coin-earned: "&6+{coin} Coins &7| &a+{exp} Exp"
  level-up: "&aCongratulations! Your miner level has increased to &e{level} &a!"
  pickaxe-upgrade: "&aYour pickaxe has been upgraded to &e{pickaxe}&a!"
  enchant-upgrade: "&aYour pickaxe enchantment has been improved!"

# GUI buttons
gui:
  button:
    return-spawn: {name: "&aReturn to Spawn", ...}
    create-team: {name: "&bCreate Team", ...}

block.yml

The ore definition file; ores and rewards can be added/modified:

common:
  STONE:        {probability: 15.0, coin: 1, exp: 1}
  COBBLESTONE:  {probability: 15.0, coin: 1, exp: 1}
  ...

rare:
  IRON_ORE:     {probability: 10.0, coin: 10, exp: 5}
  COPPER_ORE:   {probability: 8.0,  coin: 8,  exp: 4}
  ...

epic:
  GOLD_ORE:     {probability: 5.0, coin: 30, exp: 15}
  ...

legendary:
  DIAMOND_ORE:  {probability: 3.0, coin: 100, exp: 50}
  ...
  • probability: Relative probability within that quality tier
  • coin: Coins rewarded for mining
  • exp: Experience rewarded for mining

shop.yml

The shop pricing file; all prices and messages can be configured:

# Potion shop
potion:
  available-durations: [30, 60, 300, 600, 1800, 3600]  # Available durations (seconds)
  max-level: 30
  haste:
    base-price: 30
    level-multiplier: 0.5
    duration-multiplier: 0.3

# Crit rate shop
crit-rate:
  base-price: 300
  tiers:
    0.5pct: 1.0
    1pct: 3.0
    ...

# Chain trial card
# Price formula: base price × tier multiplier^(range-1)
chain-card:
  duration-seconds: 30
  plane_x: {base-price: 8000, tier-multiplier: 3.0}
  plane_z: {base-price: 8000, tier-multiplier: 3.0}
  radius:  {base-price: 15000, tier-multiplier: 3.5}
  ray:     {base-price: 6000,  tier-multiplier: 2.5}

# General chain
global-chain:
  price: 100
  duration-seconds: 10800    # 3 hours

# Shop icons
shop-icons:
  chain-card-plane-x: OAK_PLANKS
  chain-card-plane-z: OAK_PLANKS
  chain-card-radius: STONE
  chain-card-ray: ARROW

Feature Details

Mine System

  • An independent shared mine world (goldminer_mine)
  • The mine is a 100×100×100 cube; ores are randomly generated according to quality probabilities
  • Quality distribution (adjustable in config.yml): Common 85%, Rare 8%, Epic 6%, Legendary 1%
  • Automatically refreshes at fixed intervals (default 30 seconds); on refresh, all blocks are re-randomized
  • Players spawn on a safe platform at the top of the mine; equipment is automatically protected

Entering & Exiting:

  • Run /goldminer join → teleport to the mine → receive a wooden pickaxe + menu star + infinite stepping glass
  • Exit the mine world (teleport back to the main world) → mine tracking is automatically cleared → you can join again

Pickaxe Upgrades

Players mine to earn experience → level up progressively → pickaxes upgrade automatically:

PickaxeUpgrade RequirementEnchant Limits
Wooden PickaxeInitialEfficiency 5 / Fortune 3 / Unbreaking 3
Stone PickaxeLv.2Efficiency 5 / Fortune 3 / Unbreaking 3
Copper PickaxeLv.22Efficiency 5 / Fortune 3 / Unbreaking 3
Golden PickaxeLv.42Efficiency 5 / Fortune 3 / Unbreaking 3
Iron PickaxeLv.72Efficiency 10 / Fortune 3 / Unbreaking 3
Diamond PickaxeLv.102Efficiency 30 / Fortune 10 / Unbreaking 5
Netherite PickaxeLv.132Efficiency 255 / Fortune 15 / Unbreaking 10
  • Each level improves enchantments progressively; once maxed, the pickaxe advances to the next tier
  • On advancement, one maxed enchantment is randomly inherited
  • Equipment automatically changes with pickaxe level (toggle visibility with /goldminer suit)

Crit System

  • Crit Rate: Independently determined when mining, initially 0.5%, can be purchased up to 100%
  • Crit Multiplier: The bonus multiplier gained when a crit triggers, initially 0.5x
  • Crit effect: Base coins + Base coins × Crit multiplier (rounded)
  • During chain mining, each block has an independent crit check; the Title displays the number of crit blocks and bonus coins

PAPI Placeholders: %goldminer_crit_hit_rate% / %goldminer_crit_magnification%

Potion Shop

In the mine shop → Purchase Boosts → Potion Effects:

PotionLevel RangeDuration Options
Haste1~3030 seconds~1 hour
Speed1~30Same as above
Luck1~30Same as above
  • Purchasing overwrites the current effect of the same type
  • Price formula: Base price × (1 + Level × Level multiplier) × (1 + Duration exponent × Duration multiplier)
  • All parameters can be adjusted in shop.yml

Crit Rate / Crit Multiplier Shop

  • Crit Rate: Permanent increase, options: +0.5% / 1% / 5% / 10% / 50%
  • Crit Multiplier: 30-minute temporary increase, options: 1~20x, repeated purchases stack duration and multiplier
  • After crit rate reaches 100%, the overflow portion purchased is converted into experience at 500%

Level Purchase

  • Presets: Buy 1 level / 5 levels / 10 levels
  • Precise: /goldminer buy lv <amount> confirm
  • Price formula: (Total experience required from current level → target level) × Experience unit price coefficient
  • The formula is displayed publicly in the GUI

Chain Trial Card

In the mine shop → Chain Trial Card (effective within the mine world, 30 seconds):

TypeDescriptionPrice Formula
Plane X-axis chainExpands along the X-axis, up to 15 blocks8000 × 3.0^(N-1)
Plane Z-axis chainExpands along the Z-axis, up to 15 blocks8000 × 3.0^(N-1)
Radius range chainSpherical range, up to radius 1515000 × 3.5^(N-1)
View direction chainIn front of the line of sight, up to 15 blocks + 15 height6000 × 2.5^(N-1)
  • Click to enter the adjustment interface: ◀ Range - / N blocks / ▶ Range +
  • The view direction chain additionally has height adjustment (◀ Height - / N blocks / ▶ Height +)
  • When adjusting, the interface refreshes in place without moving the cursor
  • Same type: Stacks range + height + duration
  • Different type: Overwrites the old effect without refunding coins

General Chain

In the mine shop → General Chain (effective across the entire map outside the mine world):

  • Price: 100 coins
  • Duration: 3 hours (stackable)
  • Range: 9×9×3 blocks of the same type
  • Automatically chains adjacent blocks of the same type when mining ores/wood
  • Chain drops are affected by the player's tool enchantments (Fortune, etc.)
  • Does not take effect inside the mine world (no interference with each other)

Team System

  • /goldminer team create creates a team (enter the name in chat)
  • /goldminer team join <team name> applies to join
  • Team leader /goldminer team accept [player name] accepts applications
  • Leaving a team → experience/level/pickaxe cleared (coins retained)
  • Maximum members: 10

Currency Exchange

  • Mine coins can be exchanged for main world currency (requires Vault)
  • Exchange rate: 1 mine coin = X main world currency (adjustable in config.yml)
  • The GUI provides quick exchanges of 10/100/1000, and also supports entering a custom amount in chat

Permission Nodes

PermissionDescriptionDefault
goldminer.joinJoin the minetrue
goldminer.suitToggle equipment displaytrue
goldminer.team.createCreate a teamtrue
goldminer.team.joinJoin a teamtrue
goldminer.team.acceptAccept join applicationstrue
goldminer.team.leaveLeave a teamtrue
goldminer.team.listView the team listtrue
goldminer.topView the leaderboardtrue
goldminer.exchangeCurrency exchangetrue
goldminer.adminAdministrator permissionop

FAQ

Q: I can't see any ores after joining the mine?
A: The mine is a 100×100×100 cube, from y=0 to y=100. Please confirm that your position is within the mine area.

Q: The mine doesn't refresh automatically?
A: Check whether mine.refresh-interval in config.yml is set to a valid value. You can run /goldminer reload pool to refresh manually.

Q: The pickaxe doesn't change after upgrading?
A: The pickaxe is in the first slot of the hotbar and is automatically replaced after upgrading. If an old pickaxe remains, simply run /goldminer join again.

Q: Can I still chain after the chain trial card expires?
A: No. The chain trial card is only effective for 30 seconds after purchase and automatically expires afterward.

Q: Does the general chain take effect inside the mine world?
A: No. Inside the mine world, please purchase a chain trial card. The general chain only takes effect in worlds outside the mine.

Q: How do I modify shop prices?
A: Method 1: Directly edit shop.yml and then /goldminer reload. Method 2: /goldminer shop set <key> <price> takes effect immediately.

Q: PAPI placeholders are not displaying?
A: Make sure the PlaceholderAPI plugin is installed. When it is not installed, placeholders are silently ignored and do not affect the plugin's operation.

Q: The mine doesn't refresh after a server restart?
A: The plugin will automatically rebuild the mine block tracking list, and normal operation resumes after the first refresh.


Author: 未定awa
Version: 2.1.3
Compatibility: Purpur 1.21.11

Галерея

矿场菜单排行榜货币转换

Последние версии

Все версии →
release

goldminer 2.2.0

2.2.0
14 окт. 2026 г.18Minecraft: 26.2bukkit, paper, purpur
Скачать
Что нового
Update: (v2.2.0, +2106 / -670) Layered Mine (replacing the old quality mechanism) Removed the common/rare/epic/legendary random generation mechanism (block.yml, MineralRarity) Added layers.yml: the mine goes from top to bottom as stone zone → calcite zone → granite zone → deepslate zone → netherrack zone → basalt zone → blackstone zone → end stone zone, with 1 layer of bedrock at the very bottom Each layer consists of **base blocks (default 95%) + ores (default 5%)**, refreshed with vanilla-style probabilities (coal/iron/copper/emerald, amethyst, deepslate ores, raw ore blocks, nether gold/quartz/glowstone, ancient debris, bone blocks, gilded blackstone, various mineral blocks, etc.) Inheritance mechanism: minerals from the upper layer decay and are inherited layer by layer into the lower layer, and all values can be externally configured Mine caves and chests Caves are generated by random walks inside the mine (count/length/radius/chest probability are all adjustable) Chest loot (loot.yml): experience bottles (EXPERIENCE_BOTTLE + NBT, fixed experience 500/2500/10000), level-up balls (SNOWBALL + NBT, increase by 1/3/5 levels), NBT with the same name can stack, can be stored long-term, right-click to use Fixed chest placement logic (search downward for the cave floor) and item writing method (switched to real-time block entity inventory) Refresh mechanism Removed timed refresh: scans air ratio every 10 seconds, automatically performs a full refresh at ≥95% (executed in batches to avoid lagging the server) Added a generation version mechanism: after upgrading the plugin, old mines are automatically rebuilt, with no need to manually delete the world /goldminer reload reloads and refreshes all layers; /goldminer reload <layer> refreshes a single layer and supports Tab completion; pool/info remain compatible Broadcasts prompts to players inside the mine when refresh starts/completes (customizable in lang.yml) Compatibility Zero changes to the database structure, fully compatible with old player data
release

goldminer 2.1.3

2.1.3
15 авг. 2026 г.24Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11paper, purpur, spigot
Скачать
Что нового
#黄金矿工 格式遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/), 版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。 --- ## [2.1.3] - 2026-08-15 适用于 **Purpur 1.21.11** 的挖矿小游戏插件。 #### ✨ 新增 **矿场系统** - 所有玩家共享的独立矿场世界(`goldminer_mine`),借助 Multiverse 创建与管理 - 100×100×100 地面矿场,矿物按品质概率随机生成(默认 普通85% / 稀有8% / 史诗6% / 传奇1%) - 定时自动刷新(默认 30 秒),刷新时全部矿物完全重新随机 - 刷新后安全检测:仅当玩家被方块卡住时才传送到安全平台 - 矿场世界终为白昼、无敌对生物、2000 边界 **挖掘与计分** - 矿场内矿物挖掘给予金币与经验,Title/ActionBar 实时显示奖励 - 矿场外方块按原版掉落逻辑正常挖掘,全部方块可自由放置 - 四档品质矿物:普通 / 稀有 / 史诗 / 传奇,奖励与概率完全可配置(block.yml) - 下界合金块价值最高:66666 金币 + 99999 经验 **镐子进化系统** - 7 级进化线:木镐 → 石镐 → 铜镐 → 金镐 → 铁镐 → 钻石镐 → 下界合金镐 - 等级门槛逐级晋升(Lv.2 / 22 / 42 / 72 / 102 / 132) - 效率/时运/耐久逐级附魔,晋升时随机继承一个满级附魔 - 铁镐解锁效率上限 10,钻石镐 30,下界合金镐 255;时运上限最高 15 - 经验需求随等级平方增长(等级² × 3),前期快后期慢 **装备系统** - 装备随镐子等级自动更换:新手矿工 → 入门矿工 → 炼铜矿工 → 黄金矿工 → 八级矿工 → 寰宇矿工 → 无尽矿工 - 四件套齐全,全套最大等级附魔(含冰霜行者、迅捷潜行、水下呼吸等) - 自带锻造模板纹路(ArmorTrim,各等级不同纹饰) - `/goldminer suit` 切换装备显示;未卸下但缺失时自动重穿 **矿工体验** - 快捷栏 3 格保护物品:镐子 / 下界之星菜单 / 无限垫脚玻璃(不可移动、丢弃、死亡不掉落) - 矿场内永久生命回复 / 饱食 / 抗性效果 - BossBar 以血量条样式显示等级与经验进度(经验值:当前/最大) **小队系统** - 创建 / 申请加入 / 接受申请 / 退出 / 列表 - 等级与经验共享(取成员最大值),金币独立 - 队长离线时入队申请暂存,上线后通知 - 退出小队清空经验、等级、镐子与装备(金币保留) **GUI 菜单** - 下界之星右键打开:返回主城 / 创建小队 / 申请加入 / 排行榜 / 货币兑换 / 退出小队 / 装备切换 - 所有按钮名称、Lore 均可在 lang.yml 配置 **货币系统** - 独立矿场金币,可通过 Vault 兑换为主世界货币(默认 1:100) - GUI 快捷兑换 10/100/1000 + 自定义数量 **暴击系统** - 独立暴击判定(初始 0.5%),暴击额外倍率收益 - 暴击率可永久购买至 100%,溢出部分自动按 500% 转经验 **矿场商店** - 药水商店:急迫 / 速度 / 幸运(1~30 级,30 秒~1 小时) - 暴击率与暴击倍率商店 - 等级购买:预设与精确购买,价格公式公开 - 连锁体验卡:平面X / 平面Z / 半径 / 视角方向 四种连锁(矿场内生效) - 一般连锁:矿场外全地图 9×9×3 连锁(3 小时) **管理功能** - `/goldminer set|add|remove exp|lv <玩家> <数量>` 经验/等级管理(自动同步装备) - `/goldminer reload` 即时重载(刷新间隔等配置立即生效) - `/goldminer shop set <key> <价格>` 商店价格热修改 - SQLite / MySQL 双存储(HikariCP 连接池) **PlaceholderAPI 支持** - `%goldminer_reload_time%` 矿场刷新间隔 - `%goldminer_user_level%` 玩家等级 - `%goldminer_user_money%` 玩家金币 - `%goldminer_crit_hit_rate%` / `%goldminer_crit_magnification%` 暴击率/倍率 - `%goldminer_interlocking_type%` 等连锁相关占位符 #### 🛠 依赖 - Multiverse-Core(必需) - Vault(必需,货币兑换) - PlaceholderAPI(可选,占位符) ---