Verbosity update! Use /luck verbose <true | false> to enable / disable chat feedback every time a luck event triggers.
Fixed a few bugs, disabled the "vein-miner" type effect until a better solution can be devised.
Changelog:
- Added verbose entry to the Player configuration files. Player configuration files will need to be regenerated. Please make sure to make backups of all configurations before regenerating configuration files.
- Fixed a bug with the hide feature; now, any entity within a 25 block radius will automatically lose target of the player when their luck activates while sneaking.
- Removed the vein-mining feature as it is unstable and non-functional. A fix and/or replacement will be implemented in a future update.
- Updated supported version to 1.20.3
- Adjusted Logging methods.
Added a check for the Luck potion effect within the RNG factor to consider if the player is being affected by a luck potion.
Changed version from 1.2.0 to 1.2.1
Added a Codacy analysis workflow
Fixed a bug where the RNG calculation was based off a percentage of 100 [in the case of (n/1024) * 100] while the actual player luck value was based off raw points out of 1024. This meant that so long as the player had over 100 luck points and met the criteria for that particular effect, it would successfully trigger every time. Now, both the player's luck points and the RNG number calculation is based off a percentage of 100, in the case of [(n/1024) * 100]. A total of 1024 points of luck are available, and the RNG calculates a number within 0 and 1024; This resulting number is then divided by 1024 and then subsequentially multiplied by 100 to retrieve a percentage.
The download link has been changed to redirect to the github resources page. The latest release can be found at the top. Please refer to the changelog on the release page for a complete list of changes.