Treasure Mining icon

Treasure Mining -----

Custom Command Rewards when breaking blocks, diminishing returns, max amounts, and more




VERY IMPORTANT TO READ FULL UPDATE LOG
Always back up configs when updating any plugin.

Old config uses
Code (YAML):
blocks :
 - COBBLESTONE
  - STONE
  - WHEAT

New config uses
Code (YAML):
sources :
 - COBBLESTONE
  - STONE
  - WHEAT
  - FISHING
  - ENCHANT
Notice blocks was changed to sources

Why was this changed from blocks to sources?
Because you can now add
FISHING - when a fish is caught
PLAYER_KILL - when a player is killed
MOB_KILL - when ANY entity is killed BESIDES player
ENCHANT - when an enchanting table enchants
You can NOT specify certain mobs.

What else was changed?
- If you check for an ageable block, like WHEAT, it will now only give rewards if it is full growth.
- worlds: [] can now be empty for any world (idk why this logic was missing before)

CONFIG VERSION = 3
Recommend changing this AFTER you update your config.
----------, Dec 5, 2025

Multiple rewards in 1 list were broken. It is now fixed.
----------, Nov 11, 2025

Updated plugin for 1.21.10
No other updates
----------, Nov 7, 2025

Cleaned up some code to exit loops quicker

- UPDATED CONFIG TO VERSION 3

- World list can now be left empty to ignore world check

- Added world_restriction and region_restriction to config, they can be whitelist or blacklist, whitelist is the default if the option is not present.

Code (Java):
config_version : 3

world_restriction : "whitelist" #or blacklist
worlds :
  - world
  - world_nether

region_restriction : "whitelist" #or blacklist
regions :
  - myregion
----------, Dec 18, 2023

Nothing important, just some efficiency and code improvements
----------, Nov 25, 2023

After adding regions, please update config version to '2'!

Now you can choose specific WorldGuard Regions to shower rewards, Enjoy!

You may choose to backup and regenerate config yourself, or copy-paste.
Here is where the config change is:
Code (YAML):

worlds
:
 - world
 - world_nether
 - world_the_end
regions
:
 - myregion
Or to keep regions empty
regions: []
----------, Nov 21, 2023

Added bStats to help motivation with maintaining this project, Thank you to all who are using it, I appreciate you! And please keep requesting features!
----------, Nov 17, 2023

Instead of accessing the playerData file every block break, which is expensive on resources, data is now loaded and stored in the plugin and only saves to playerData file every 10 minutes, when the plugin is reloaded, and when the plugin is disabled.

The only time you should see a problem with losing up to 10 minutes of data, is if your server crashes.
----------, Nov 14, 2023

Cleaned up a lot of static methods
No need to update config, unless you need more examples of rewards and improved comments.
----------, Nov 13, 2023

If region/world is protected, dont give rewards.
----------, Nov 12, 2023

Resource Information
Author:
----------
Total Downloads: 1,052
First Release: Nov 11, 2023
Last Update: Dec 5, 2025
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings