Home›Java›Mods›BLOCK BREAK REWARD | Simple, Customizable and Optimize! | MySQL Support, Actionbar, Leaderboard,...
ModsJava
BLOCK BREAK REWARD | Simple, Customizable and Optimize! | MySQL Support, Actionbar, Leaderboard,...
Version 1.0 is released, it's ready to be used now.
Config.yml
you can customize a lot of things for your rewards.
Spoiler: Config.yml
#MySQL, set it up properly and it might run.
MySQL:
enableMySQL : false
username : "root"
password : ""
port : 3306
databaseName : ""
HelpMessage :
- /blockbreakreward reload | to reload the plugin
- /blockbreakreward YamltoMySQLDatabase | transfer YAML files to MySQL database
- /blockbreakreward help | show helps
ReloadMessage : Block Break Reward is reloaded, have fun
NeedPermission : You don't have permission to use this command
InventoryFullWarning : ' [BlockBreakReward ] your inventory is full'
#Turn on and off message when player's inventory is full
EnableFullInventoryWarning : false
#Drop block straight into player's inventory without picking up
BlockToInventory : false
#Turn on and off action bar, may affect your server performance
#a bit, but not significant
ProgressActionBar : true
#How action bar will be displayed
ActionBarTemplate : ' %block_just_mined% | TOTAL: %mined_blocks% | PROGRESS: %progression_state%%'
#Play sound when you reach the reward blockNeedToMine
ProgressReachSound : none
#0 means only saving player data when they leave or when you stop the server, if you wanna change it then
#it's better to set it to more than 500, this will affect your server performance a lot if you set it to a small number.
SavePlayerDataAfter : 0
#remove none if you wanna add except blocks, blocks in here will
#not be counted when be mined
#you might wanna take a look at this to set a properly block value https://minecraft.fandom.com/wiki/Tag#Blocks
ExceptBlocks :
- none
# remove all if you want to add a specific tool, you can add a specific name
#like IRON_PICKAXE, GOLD_PICKAXE, or just PICKAXE for all type of pickaxe
SpecificTools :
- all
#Every reward name must be unique
Rewards:
Reward1:
permission : blockbreakreward.default
blockNeedToMine : 1000
randomCommand : false
commands :
- give %player_name% 500
Reward2:
permission : blockbreakreward.opplayer
blockNeedToMine : 5000000
randomCommand : false
commands :
- op %player_name%
- eco give %player_name% 500
- ban %player_name% mining too much blocks %mined_blocks%
Reward3:
permission : blockbreakreward.reward3
blockNeedToMine : 10
randomCommand : true
commands :
- give %player_name% 20
- kill %player_name%
Code (YAML):
#MySQL, set it up properly and it might run.
MySQL:
enableMySQL : false
username : "root"
password : ""
port : 3306
databaseName : ""
HelpMessage :
- /blockbreakreward reload | to reload the plugin
- /blockbreakreward YamltoMySQLDatabase | transfer YAML files to MySQL database
- /blockbreakreward help | show helps
ReloadMessage : Block Break Reward is reloaded, have fun
NeedPermission : You don't have permission to use this command
InventoryFullWarning : ' [BlockBreakReward ] your inventory is full'
#Turn on and off message when player's inventory is full
EnableFullInventoryWarning : false
#Drop block straight into player's inventory without picking up
BlockToInventory : false
#Turn on and off action bar, may affect your server performance
#a bit, but not significant
ProgressActionBar : true
#How action bar will be displayed
ActionBarTemplate : ' %block_just_mined% | TOTAL: %mined_blocks% | PROGRESS: %progression_state%%'
#Play sound when you reach the reward blockNeedToMine
ProgressReachSound : none
#0 means only saving player data when they leave or when you stop the server, if you wanna change it then
#it's better to set it to more than 500, this will affect your server performance a lot if you set it to a small number.
SavePlayerDataAfter : 0
#remove none if you wanna add except blocks, blocks in here will
#not be counted when be mined
#you might wanna take a look at this to set a properly block value https://minecraft.fandom.com/wiki/Tag#Blocks
ExceptBlocks :
- none
# remove all if you want to add a specific tool, you can add a specific name
#like IRON_PICKAXE, GOLD_PICKAXE, or just PICKAXE for all type of pickaxe
SpecificTools :
- all
#Every reward name must be unique
Rewards:
Reward1:
permission : blockbreakreward.default
blockNeedToMine : 1000
randomCommand : false
commands :
- give %player_name% 500
Reward2:
permission : blockbreakreward.opplayer
blockNeedToMine : 5000000
randomCommand : false
commands :
- op %player_name%
- eco give %player_name% 500
- ban %player_name% mining too much blocks %mined_blocks%
Reward3:
permission : blockbreakreward.reward3
blockNeedToMine : 10
randomCommand : true
commands :
- give %player_name% 20
- kill %player_name%
In Short: just give reward's permission to the player and they'll get the rewards as commands after "blockNeedToMine" is reached, note that if the player has 2 or more permissions they will get the reward that has less "blockNeedToMine", so... no permission conflict.
Leaderboard.yml
Spoiler: Leaderboard.yml
Code (YAML):
FillBackgroundWith
: BLACK_STAINED_GLASS_PANE
#Should set this to a high number, this will affect your server's performance
UpdateEverySeconds : 7200
LeaderboardTitle : TOP MINER!
LeaderboardGUI:
TOP1:
material : PLAYER_HEAD
position : 14
top : 1
name : '§c %player_name% #1'
lores:
- '§eTOTAL MINED BLOCKS : §b %mined_blocks%'
- '§eTOTAL MINED DIAMONDS : §b %mined_diamonds%'
- '§eTOTAL MINED EMERALDS : §b %mined_emeralds%'
- '§eTOTAL MINED GOLDS : §b %mined_golds%'
- '§eTOTAL MINED IRONS : §b %mined_irons%'
- '§eTOTAL MINED COALS : §b %mined_coals%'
TOP2:
material : PLAYER_HEAD
position : 22
top : 2
name : '§c %player_name% #2'
lores:
- '§eTOTAL MINED BLOCKS : §b %mined_blocks%'
- '§eTOTAL MINED DIAMONDS : §b %mined_diamonds%'
- '§eTOTAL MINED EMERALDS : §b %mined_emeralds%'
- '§eTOTAL MINED GOLDS : §b %mined_golds%'
- '§eTOTAL MINED IRONS : §b %mined_irons%'
- '§eTOTAL MINED COALS : §b %mined_coals%'
TOP3:
material : PLAYER_HEAD
position : 24
top : 3
name : '§c %player_name% #3'
lores:
- '§eTOTAL MINED BLOCKS : §b %mined_blocks%'
- '§eTOTAL MINED DIAMONDS : §b %mined_diamonds%'
- '§eTOTAL MINED EMERALDS : §b %mined_emeralds%'
- '§eTOTAL MINED GOLDS : §b %mined_golds%'
- '§eTOTAL MINED IRONS : §b %mined_irons%'
- '§eTOTAL MINED COALS : §b %mined_coals%'
#Should set this to a high number, this will affect your server's performance
UpdateEverySeconds : 7200
LeaderboardTitle : TOP MINER!
LeaderboardGUI:
TOP1:
material : PLAYER_HEAD
position : 14
top : 1
name : '§c %player_name% #1'
lores:
- '§eTOTAL MINED BLOCKS : §b %mined_blocks%'
- '§eTOTAL MINED DIAMONDS : §b %mined_diamonds%'
- '§eTOTAL MINED EMERALDS : §b %mined_emeralds%'
- '§eTOTAL MINED GOLDS : §b %mined_golds%'
- '§eTOTAL MINED IRONS : §b %mined_irons%'
- '§eTOTAL MINED COALS : §b %mined_coals%'
TOP2:
material : PLAYER_HEAD
position : 22
top : 2
name : '§c %player_name% #2'
lores:
- '§eTOTAL MINED BLOCKS : §b %mined_blocks%'
- '§eTOTAL MINED DIAMONDS : §b %mined_diamonds%'
- '§eTOTAL MINED EMERALDS : §b %mined_emeralds%'
- '§eTOTAL MINED GOLDS : §b %mined_golds%'
- '§eTOTAL MINED IRONS : §b %mined_irons%'
- '§eTOTAL MINED COALS : §b %mined_coals%'
TOP3:
material : PLAYER_HEAD
position : 24
top : 3
name : '§c %player_name% #3'
lores:
- '§eTOTAL MINED BLOCKS : §b %mined_blocks%'
- '§eTOTAL MINED DIAMONDS : §b %mined_diamonds%'
- '§eTOTAL MINED EMERALDS : §b %mined_emeralds%'
- '§eTOTAL MINED GOLDS : §b %mined_golds%'
- '§eTOTAL MINED IRONS : §b %mined_irons%'
- '§eTOTAL MINED COALS : §b %mined_coals%'
Commands:
- /blockbreakreward reload
- /blockbreakreward YAMLtoMySQLDatabase
- /blockbreakreward leaderboard
Permissions:
- blockbreakreward.reload
- blockbreakreward.yamltomysqldatabase
- blockbreakreward.leaderboard
Available PlaceHolders:
- %player_name% | get player's name
- %mined_after_join% | get the total blocks player have mined after joining the server
- %mined_blocks% | get the player's total mined blocks
- %mined_diamonds% | get the player's total mined diamonds blocks
- %mined_emeralds% | get player's total mined emeralds blocks
- %mined_golds%" | get player's total mined golds blocks
- %mined_irons% | get the player's total mined irons blocks
- %mined_coals% | get the player's total mined coals blocks
- %block_just_mined% | get the block that the player just mined
- %progression_state% | display the player progress to reward as percentsClick to expand...
TO DO:
let me think a sec,..maybe:
- Leaderboard
- PlaceholderAPI support
that should be enough for this plugin
Click to expand...
Spoiler
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.16, 1.17, 1.18
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
BLOCK BREAK REWARD | Simple, Customizable and Optimize! | MySQL Support, Actionbar, Leaderboard,... is a free Minecraft Java mod. Compatible with Minecraft 1.16, 1.17, 1.18, 1.19. Downloaded 2,272 times (via Spigot). Download it and open it directly in the game.