Skip to content

Releases: DoubleF3lix/onyx

v2.1.3

25 Oct 02:02
Compare
Choose a tag to compare

scoreboard.Player

__init__

  • No longer runs convert_scoreboard_player_name. It's now run in scoreboard.Scoreboard.player instead.

set

  • New optional parameter init. When set, the scoreboard 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 to scoreboard.Player

Miscellaneous

  • Added new tests for the new player initialization feature

Onyx v2.1.2

24 Oct 01:51
Compare
Choose a tag to compare

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

21 Oct 20:12
Compare
Choose a tag to compare

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

19 Oct 21:32
Compare
Choose a tag to compare

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, a ZipFile object is returned in generate(["zip_object"]).
  • print_generation_time is now True by default
  • Now returns a dictionary with various information about the generation (output path and generation time by default, may include ZipFile object if only_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

19 Oct 03:44
Compare
Choose a tag to compare

Completely rewrote everything from the ground up

Onyx v1.0.3

19 Oct 00:02
fc03d87
Compare
Choose a tag to compare
Update README.md