Sueta
PE

PercentageBlocks

1.0

Command executed when player breaks a block

·Plugin

When a certain block is broken it has a chance to run a command.
Fully customizable and supports multiple command execution at once.

Config.yml

SOUND_ON_BREAK: true
SOUND: 'ENTITY_VILLAGER_YES'

PARTICLES_ON_BREAK: true
PARTICLE: 'FLASH'
COUNT: 10

#--------------

Blocks:
COAL_ORE:
1:
commands:
- 'eco give %player_name% 50'
- 'give %player_name% diamond 1'
percentage: 20
2:
commands:
- 'eco give %player_name% 50'
- 'give %player_name% diamond 1'
percentage: 30
IRON_ORE:
1:
commands:
- 'eco give %player_name% 50'
- 'give %player_name% diamond 1'
percentage: 50
2:
commands:
- 'eco give %player_name% 50'
- 'give %player_name% diamond 1'
percentage: 50
#--------------

Similar projects

Plugin →