πŸ”§ Changelog#

(WIP) 1.19 - 2.0 - Bookshelf#

Breaking changes

This version contain breaking changes. In the following changelog, they are identified by the πŸ’₯ emoji.

βž• Addition#

  • There is now a changelog! πŸŽ‰

  • Added bs.vector:get_by_motion function

  • Added a scale 3 variation to the bs.math:exp function

  • (WIP) Added unit tests to ensure that the library is working as expected before each release.

  • It is now possible to control every aspect off the collision process in bs.move:by_vector

  • Added fractionned distribution to allow users to download modules as independant datapack - Thanks to ascpial in Gunivers/Bookshelf#55

πŸ” Tweaks#

  • πŸ’₯ All vectors scores where rename such as bs.vector.x become bs.vector.x to be fully consistent with the rest of the lib. This is a breaking change, but it should be easy to fix in your projects with a simple β€œsearch & replace” action.

  • πŸ’₯ Classical and local vector submodules was merge. bs.vector[Left,Up,Front] was replaced by bs.vector.[x,y,z]

  • πŸ’₯ The project got a fresh new identity: Bookshelf. It imply that all the namespace, score, entities tag and other names containing the β€œglib” prefix was changed to β€œbs”. This is a breaking change, but it should be easy to fix in your projects with a simple β€œsearch & replace” action.

  • (WIP) Improved documentation style (inspired from Numpy doc)

  • πŸ’₯ bs.math:log now give output shifted by 3 digits (3,14159 -> 3141) instead of 4 to be more consistant with other mathematical functions.

  • πŸ’₯ Merged LGdir and BiomeDetector systems in bs.example module

  • πŸ’₯ Merged all bs.math submodules. All math function are now at the root of the bs.math namespace.

  • πŸ’₯ Moved bs.health:safe_kill to bs.core:entity/safe_kill

  • πŸ’₯ Moved bs.core:default_entity to bs.core:entity/summon

  • πŸ’₯ Refactored bs.biome variable names to match the development standards:

    • (score) bs.temperature \(\rightarrow\) bs.biome.temp

    • (tag) bs.canRain \(\rightarrow\) bs.biome.CanRain

    • (tag) bs.canSnow \(\rightarrow\) bs.biome.CanSnow

  • πŸ’₯ bs.location:get_relative and bs.location:add now use bs.loc.[rx,ry,rz] scores

  • πŸ’₯ β€œaccuracy” folders was renamed to β€œscale” and files inside was renamed β€œ10-X” to β€œX”

πŸ› Bug fixes#

  • Orientation and location getters was not clearing the default entity, which sometimes cause bugs in systems that try to get the entity at the same location.

  • πŸ’₯ The bs.math:sin function was actually cmputing -sin(x) instead of sin(x).

  • Fixed bs.math:common/log, bs.math:log10, bs.math:log2 and bs.math:loga functions

  • Fixed bs.math:arctan function

  • Fixed bs.move:by_local_vector function

  • Fixed bs.bitwise:two_complement function

  • Fixed bs.location:spread and bs.location:spread/scale/3 - Thanks to A2va in Gunivers/Bookshelf#41

  • Fixed bs.view modules