Releases: Bedrock-OSS/bedrock-boost
Releases · Bedrock-OSS/bedrock-boost
1.3.1
Added
- Vec3 Utility:
- Added
Vec3.fromString(str, format, separator)
static method to parse vectors from string representations.- Supports both
"long"
(Vec3(x, y, z)
) and"short"
(x, y, z
) formats. - Customizable component separator (default:
", "
). - Throws an error if the input format is invalid.
- Supports both
- Added
1.3.0
- Entity Utilities:
- Created
EntityUtils.ts
providing functions to find entity hitbox dimensions and base locations.
#9 by @WavePlayz
- Created
- Logging System:
- Updated logging to use Logging 2.0.0 permissions system, improving compatibility and permission management.
#11 by @bogumidu
- Updated logging to use Logging 2.0.0 permissions system, improving compatibility and permission management.
- Vector Calculations:
- Fixed inverted signs in vector calculations for correct orientation, especially for direction and rotation math.
#10 by @WavePlayz
- Fixed inverted signs in vector calculations for correct orientation, especially for direction and rotation math.
- ColorJSON:
- Enhanced compatibility with frozen objects and arrays.
- Improved cycle detection and pretty-printing for nested, frozen, and cyclic objects.
- Vec3:
- Added
fromRotation()
as the preferred method for creating direction vectors from yaw and pitch, deprecatingfromYawPitch()
.
- Added
1.2.4
- ColorUtils:
- Improved handling of RGBA values, especially 32-bit numbers (alpha channel detection and assignment).
- Added
ColorUtils.test.ts
with comprehensive tests forColorUtils.toRGBA()
supporting 24bit, 32bit, and separate RGBA input.
- EntitySaver:
- Changed entity ID generation to use bitwise shift for integer conversion, preventing float IDs.
- Vec3:
- Added new
toRotation()
method for converting normal vectors to yaw and pitch (returns correct values), and markedtoYawPitch()
as deprecated due to inverted output. - Added tests for the new
toRotation()
method.
- Added new
- Vec2 Docs:
- Corrected documentation/comments for
toArray()
andtoBlockLocation()
to properly reference X and Y (not Z).
- Corrected documentation/comments for
1.2.3
- Vec3 Class and Tests:
- Corrected the logic for direction vectors (
North
/South
z-value sign) and related test assertions. - Improved calculation of vector length to use
Math.hypot
for increased stability. - Refined
distance()
to use the improvedlength()
method. - Improved
angleBetween()
for better zero-handling and numerical stability (clamping the cosine value). - Improved
projectOnVector()
to handle zero-length vectors safely and prevent divide-by-zero errors.
- Corrected the logic for direction vectors (
- VersionUtils:
- Fixed the logic in
isVersion2()
to properly detect the prototype property type of entities.
- Fixed the logic in
1.2.2
- Added
ignoreCreative
in theConsumeDurabilityOptions
interface to allow ignoring the player's game mode when consuming durability. - Updated the
consumeDurability
method to account for the player's game mode - Adjusted how game modes are compared (handled both V1 and V2 formats by converting to lowercase).
consumeDurability
deprecated function now explicitly setsignoreCreative
totrue
to maintain backward compatibility.
1.2.1
1.2.0
Added
- Introduced
pushFog
,popFog
, andremoveFog
methods inCommandUtils.ts
for managing fog on players. - Added experimental support for Script API V2
Changed
- Refactored
Vec3.ts
to improve formatting and add extensive type-checking for various operations. - Updated
EntityPulseScheduler.ts
andPlayerPulseScheduler.ts
to useisValid
function fromVersionUtils.ts
for entity validation. - Modified
ItemUtils.ts
to includebreakSound
option for handling item break sounds, replacingsuppressSound
.
1.1.1
1.1.0
Added
- Added
SlotLocation
enum andQuantity
type inCommandUtils.ts
. - Added
EntitySaver
utility class for saving and loading entities. - Added
ItemUtils
class for handling item durability with options for ignoring enchantments and suppressing sound. - Added
isItem
method inCommandUtils.ts
to check if an entity has items matching specified matchers.
Changed
- Refactored
index.ts
to useexport * from
syntax instead of individual exports. - Modified
CommandUtils.ts
to include new enums and types, and updated method implementations. - Deprecated
consumeDurability
function in favor ofItemUtils.consumeDurability
.