This version mainly adds two new features:
- Custom Commands on Item Pick Up
Custom commands can be executed by the console when a player picks up an item. Either delete your config, either add the following fields to the config section of an item:
Code (Text):
# Commands executed by the console when a player picks up the item.
# {player} will be replaced by the player's name.
commands-on-pick-up:
enabled: true
cancel-pickup: false # if true, commands will be executed but the item will disappear, like with money.
commands:
- "say {player} earned 10 coins!"
- "say {player} eeeks {player} {player} {player} {player}"
{player} is replaced by the name of the player. Do not put the slash before the command.
- Random item throwing on DJ & Money Bomb
Off by default, this feature allows to replace the circular throwing with a random throwing. To toggle it, add:
Code (Text):
random: true
To the config section of your events. Only works for DJ and money bomb, as rain events are already random.
It also includes minor improvements and fixes, especially for 1.16.5 compatibility.
If you don't want to delete your existing config and have trouble adding the new sections, please have a look at the default config available here:
https://github.com/iSach/MagicalEventsWiki/wiki/Default-Config-File