Mineuniverse
Plugins

CustomFortune

PLUGIN
This plugin gives players a chance to have a console command run when they break certain blocks.
by _ForgeUser9034439
Download Claim this project
Add a badge to your pageLink to CustomFortune from a README, website or forum post.
Preview: Badge

Badges update automatically and link to the plugin page on MineUniverse.

733 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Mechanics
Advertisement Remove ads with Premium →

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

Advertisement Remove ads with Premium →

You Might Also Like