This update adds luck, 2 new commands, changes, and fixes.
Unfortunately because of this update, blockLocs data in data.yml will be lost.
Luck has been implemented in random blocks.
How luck works, there are three groups of events; good,neutral,bad. picks one of these three groups based off of a luck value then picks an event in the group based off of a weight value.
For those who don't want to use luck, there is an option when creating a random block to disable it (disabled by default) so it skips picking a luck group and just picks from all events based off of weight.
You can add luck upgrades for the random block to increase/decrease its luck value, but because crafting with luck upgrades is dynamic, currently its disabled due to how spigot handles crafting and causes duplication and weird visual bugs. After several attempts at fixing this with no success, I decided to leave it for now until I can come up with a work around for it.
Commands
/rbs buggered <fix/remove>
Fixes or removes random blocks that have an incorrect block.
/rbs delete <random block/@all> <world/@all>
Deletes all random blocks in a world
Changes
Random block items can now be any material except air.
Random block block type can now be any block, not just solid blocks.
Moved the config option that was in data.yml and put it in a new config.yml file along with a few more options.
The data.yml file has been renamed to blockLocs.yml and only contains the random block locations and block info.
Random block data is now saved in a folder called blocks with a corresponding yml file named after the random block.
Fixes
Field variables in disabled events will now get saved.
Breaking a solid block will now drop its item, I have no idea how I didn't see this earlier, haha.
Removed an unnecessary exception that was thrown when a duplicate random block class was added, this will now fail silently.
Added a check for disabled random blocks when adding a random block to ensure no duplicate classes are added.