- Fixes #1
- ‼️ Replaced the public function
scrfx:add_screen_effectwith two new API functions. - Added API function
scrfx:api/register_screen_effect/register_groupwhich accepts two macro argumentsstorage, andpathlike the old function.- This registers all screen effect definitions in the list provided.
- Throws an error message if the provided screen effect group does not exist.
- Added API function
scrfx:api/register_screen_effect/register_definitionwhich accepts two macro argumentsstorage, andpath.- This registers the screen effect definition provided.
- Throws an error message if the provided screen effect group does not exist.
- Note: In the future, I might add data validation for easier debugging :).
- Changed screen effect definition and group schema, see the README for more info.
- Support for 1.21.6-1.21.8
- Removed redundant
.dev_modeflag from scoreboardscrfx.zinternals.globals - Added a better reload message.
- You can disable this by setting the
.disable_reload_messageflag from scoreboardscrfx.zinternals.globalsto 1. - There's also clickable text in the reload message that does this for you.
- You can disable this by setting the
- Changed how datapacks register screen effects.
- You will now define your own storage containing the screen effect definitions.
- Once you have done that you can run the
scrfx:add_screen_effectsfunction which take in astorageand apathargument.
- Changed callbacks.
- Instead of having only two options on where to run commands, You can now run commands on any frame you like.
- The
middleandendfields have been replaced with onecallbacksfield because of this. - It is a compound which contains key value pairs, the key being the frame number and the value being the command.
You can read more about this inside README.md#registering-the-screen-effects.
- Replaced screen effect
examples:draw_transitionwith a better screen effectexamples:transition. - Added function
scrfx:purge_running_screen_effectswhich resets all player scoreboard data and running screen effect storage data. - Players now stop their running screen effect when rejoining.
- Optimized build file.
- Added more configs to build file.
- You can now specify a specific file to build in the command arguments of the build file.



