- 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_effects
function which take in astorage
and apath
argument.
- Changed callbacks.
- Instead of having only two options on where to run commands, You can now run commands on any frame you like.
- The
middle
andend
fields have been replaced with onecallbacks
field 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_transition
with a better screen effectexamples:transition
. - Added function
scrfx:purge_running_screen_effects
which 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.