🛠️ 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_motionfunctionAdded a scale 3 variation to the
bs.math:expfunction(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_vectorAdded fractionned distribution to allow users to download modules as independant datapack - Thanks to ascpial in Gunivers/Bookshelf#55
bs.vector:normalizeandbs.vector:fast_normalizenow have abs.opt.0option 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.xbecomebs.vector.xto 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:lognow 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.examplemodule💥 Merged all
bs.mathsubmodules. All math function are now at the root of thebs.mathnamespace.💥 Moved
bs.health:safe_killtobs.core:entity/safe_kill💥 Moved
bs.core:default_entitytobs.core:entity/summon💥 Refactored
bs.biomevariable 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_relativeandbs.location:addnow 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:sinfunction was actually cmputing -sin(x) instead of sin(x).Fixed
bs.math:common/log,bs.math:log10,bs.math:log2andbs.math:logafunctionsFixed
bs.math:arctanfunctionFixed
bs.move:by_local_vectorfunctionFixed
bs.bitwise:two_complementfunctionFixed
bs.location:spreadandbs.location:spread/scale/3- Thanks to A2va in Gunivers/Bookshelf#41Fixed
bs.viewmodules