Releases: DoubleF3lix/onyx
Releases · DoubleF3lix/onyx
v2.1.3
scoreboard.Player
__init__
- No longer runs
convert_scoreboard_player_name
. It's now run inscoreboard.Scoreboard.player
instead.
set
- New optional parameter
init
. When set, thescoreboard players set
command is added to the_init
function instead of the current one.
scoreboard.Scoreboard
__init__
- New optional parameter
players
. This is a dictionary of players to values which should be set in the_init
function. Best used for constants.
player
- Now runs
convert_scoreboard_player_name
before passing it toscoreboard.Player
Miscellaneous
- Added new tests for the new player initialization feature
Onyx v2.1.2
pack_manager.DataPack
function
- Can now take in either a string in replacement of
link
, or the linked function can return a string. In either case, the string is used as the function contents instead of having to use methods calls.
pack_manager.PackResource
- Improved documentation
pack_manager.Function
- Modified to reflect the changes in
pack_manger.DataPack.function
.
send_object_to_parent_pack
- New method which will update the beet object for this function in the parent data pack.
util.RelPos2D
__init__
- Fixed conflict where remnants of onyx v1 still existed
Miscellaneous
- Added new tests for the new string function behavior
Onyx v2.1.1
pack_manager.DataPack
generate
- Fixed documentation and type hinting still showing nothing was returned
commands.Commands
function
:
- Added
/function
command. Takes in a string or a function object.
Onyx v2.1.0
pack_manager.DataPack
generate
:
- Has better printed feedback
- New parameters
only_generate_zip_object
,print_output_path
-
only_generate_zip_object
doesn't create any files on the disk. Instead, aZipFile
object is returned ingenerate(["zip_object"])
.
print_generation_time
is nowTrue
by default- Now returns a dictionary with various information about the generation (output path and generation time by default, may include
ZipFile
object ifonly_generate_zip_object
is set to true.
Miscellaneous:
- GitHub CI now properly checks the contents of some files to verify their structure.
DataPack.generate
has been moved near the top of the class to make it more visible in the documentation.
Onyx v2.0.0
Completely rewrote everything from the ground up
Onyx v1.0.3
Update README.md