π§ 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
functionAdded 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
bs.vector:normalize
andbs.vector:fast_normalize
now have abs.opt.0
option to specify the output precision and return the normalization factor onbs.out.0
.Added a new log module as
bs.log:_
(Gunivers/Bookshelf#76)
π Tweaks#
π₯ All vectors scores where rename such as
bs.vector.x
becomebs.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 bybs.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 thebs.math
namespace.π₯ Moved
bs.health:safe_kill
tobs.core:entity/safe_kill
π₯ Moved
bs.core:default_entity
tobs.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
andbs.location:add
now usebs.loc.[rx,ry,rz]
scoresπ₯ βaccuracyβ folders was renamed to βscaleβ and files inside was renamed β10-Xβ to βXβ
π₯ Constant names were renamed to apply snake case convention
π 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
andbs.math:loga
functionsFixed
bs.math:arctan
functionFixed
bs.move:by_local_vector
functionFixed
bs.bitwise:two_complement
functionFixed
bs.location:spread
andbs.location:spread/scale/3
- Thanks to A2va in Gunivers/Bookshelf#41Fixed
bs.view
modules