Mineuniverse
Log in Register
Plugins

CustomFortune

This plugin gives players a chance to have a console command run when they break certain blocks.
by _ForgeUser9034439
Download Claim this project
699 downloads
0 likes
Updated Jun 30, 2026
0 hypes
Mechanics

CustomFortune

This plugin gives players a chance to have a console command run when they break certain blocks.

Commands

This plugin does not contain any commands.

Permissions

Permissions are layed out as follows:

customfortune.1
customfortune.2
customfortune.3

and so on. The number following 'customfortune.' is the % chance that the player will get lucky and the command(s) will be run.

Config

Here is the default config:

fortune-blocks:
  - 'diamond_ore'
  - 'iron_ore'
  - 'coal_ore'
  - 'emerald_ore'
  - 'lapis_ore'
message: '&2&oThe odds are in your favor!'
commands-to-run:
  - 'say &c&lPlayer ''%p'' broke %b and got lucky! They get a prize!'
  - 'give %p diamond 64'

The fortune blocks section can be any length, with any material name in the game. Material names can be found here: http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html.

The string in 'message:' will be sent to the player if they break a fortune block and they end up succeeding to perform the command.

For the commands, use %p to substitute the player's name, and %b to substitute the name of the block they broke. For example, the default first command will tell all players on the server that someone got lucky and what block they broke.

Chat colors are supported in both commands (for sending messages and broadcasting) and the message that will be sent to the player that broke the block.

CustomFortune v1.0
MC CB 1.7.9-R0.2
Release 2014-08-07 Get

More from _ForgeUser9034439

RecipeAdder
8,412
AntiBoost
681
UniqueKills
532
NoQuitHere
490
SignKits
3,800
ColourWithPerm
2,034

You Might Also Like

MobHealth
Simple plugin to let you know the damage you just caused to a mob, and how much health it has left.
989,881
Player Heads
Lop off Player and all Mob Heads with configurable drop rates + pvp-farming nerf, includes detailed commands and permissions
979,351
Advanced Item Effects
Adds custom effects to any item including potion effects.
97,290
VoxelMore
"Sharing is caring."
9,999
SunSteel
A Golden Item Enhancement Plugin
9,880
Sneaker
Hide name tags above players' heads.
9,865