Create a Rewards
How to create a reward and add it to the luckyblock
To create a reward, you need to go to rewards.yml, copy and paste one of the sample rewards, or edit the existing ones.
exampleNormal: # This is the name of the reward that goes into the luckyblock, at luckyblocks.yml
1:
chance: 60
execute:
- '[TITLE] %animation_luckyblock%;&5&l┃ &dYou found 100$;20;40;20'
- '[SOUND] BLOCK_LAVA_POP;0;1'
- '[MESSAGE] %prefix%You found &d100$&7!'
- '[ACTION] %animation_found100%'
- '[CONSOLE] eco give %player% 100'
2:
chance: 55
execute:
- '[TITLE] %animation_fast%;none;20;40;20'
- '[SOUND] BLOCK_LAVA_POP;0;1'
- '[ACTION] %prefix%Now you are very fast!'
- '[EFFECT] FAST_DIGGING;2;120'
- '[EFFECT] SPEED;5;200'
3:
chance: 60
execute:
- '[TITLE] &c&lYOU HAD BAD LUCK!;&4&l┃ &cYou lost 500$;20;40;20'
- '[SOUND] BLOCK_LAVA_POP;0;1'
- '[MESSAGE] %prefix%You lost &c&m500$&7!'
- '[ACTION] &c&l- 500$'
- '[CONSOLE] eco take %player% 500'
- '[EFFECT] BLINDNESS;0;60'
4:
chance: 50
execute:
- '[TITLE] %animation_luckyblock%;&5&l┃ &dYou found 10k$;20;40;20'
- '[SOUND] BLOCK_LAVA_POP;0;1'
- '[MESSAGE] %prefix%You found &d10k$&7!'
- '[ACTION] %animation_found10k%'
- '[CONSOLE] eco give %player% 10000'
5:
chance: 10
execute:
- '[BROADCAST_TITLE] %animation_legendary%;&6&l┃ &e%player% has found a Legendary LuckyBlock!;20;40;20'
- '[SOUND] BLOCK_LAVA_POP;0;1'
- '[BROADCAST] %prefix%&d%player% &7has found a &eLegendary&7 LuckyBlock!'
- '[BROADCAST_ACTION] &d%player% &7has found a &eLegendary&7 LuckyBlock!'
- '[MESSAGE] %prefix%You found &d1M$&7!'
- '[SUDO] I found a 1M$!'
- '[PLAYER] balance'
- '[CONSOLE] eco give %player% 1000000'
- '[BOSSBAR] %animation_foundLegendary%;YELLOW;SEGMENTED_20;1.0;5'
- '[CLEAR_EFFECT] all'
nothing:
execute:
- '[TITLE] &c&lYOU HAVE NOT FOUND ANYTHING;none;20;40;20'
- '[MESSAGE] %prefix%You did not find anything!'To add the rewards to the luckyblock, go to luckyblocks.yml, and in your luckyblock in the "rewards" section you put the name of the reward
exampleNormal:
rewards: exampleNormal # Here you have to put the name of the reward that is on rewards.ymlLast updated