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.
Список изменений
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