Skip to content

Releases: Bedrock-OSS/bedrock-boost

1.3.1

27 Jun 11:35
Compare
Choose a tag to compare

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.

1.3.0

18 Jun 08:06
Compare
Choose a tag to compare
  • Entity Utilities:
    • Created EntityUtils.ts providing functions to find entity hitbox dimensions and base locations.
      #9 by @WavePlayz
  • Logging System:
    • Updated logging to use Logging 2.0.0 permissions system, improving compatibility and permission management.
      #11 by @bogumidu
  • Vector Calculations:
    • Fixed inverted signs in vector calculations for correct orientation, especially for direction and rotation math.
      #10 by @WavePlayz
  • 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, deprecating fromYawPitch().

1.2.4

18 Jun 08:03
Compare
Choose a tag to compare
  • ColorUtils:
    • Improved handling of RGBA values, especially 32-bit numbers (alpha channel detection and assignment).
    • Added ColorUtils.test.ts with comprehensive tests for ColorUtils.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 marked toYawPitch() as deprecated due to inverted output.
    • Added tests for the new toRotation() method.
  • Vec2 Docs:
    • Corrected documentation/comments for toArray() and toBlockLocation() to properly reference X and Y (not Z).

1.2.3

18 Jun 08:00
Compare
Choose a tag to compare
  • 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 improved length() 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.
  • VersionUtils:
    • Fixed the logic in isVersion2() to properly detect the prototype property type of entities.

1.2.2

27 Apr 09:19
Compare
Choose a tag to compare
  • Added ignoreCreative in the ConsumeDurabilityOptions 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 sets ignoreCreative to true to maintain backward compatibility.

1.2.1

08 Apr 10:43
Compare
Choose a tag to compare

Fixed

  • Fixed V2 compatibility

1.2.0

08 Apr 07:25
Compare
Choose a tag to compare

Added

  • Introduced pushFog, popFog, and removeFog methods in CommandUtils.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 and PlayerPulseScheduler.ts to use isValid function from VersionUtils.ts for entity validation.
  • Modified ItemUtils.ts to include breakSound option for handling item break sounds, replacing suppressSound.

1.1.1

08 Apr 07:23
Compare
Choose a tag to compare

Fixed

  • Fixed exports, refactored in the previous version

1.1.0

08 Apr 07:20
Compare
Choose a tag to compare

Added

  • Added SlotLocation enum and Quantity type in CommandUtils.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 in CommandUtils.ts to check if an entity has items matching specified matchers.

Changed

  • Refactored index.ts to use export * from syntax instead of individual exports.
  • Modified CommandUtils.ts to include new enums and types, and updated method implementations.
  • Deprecated consumeDurability function in favor of ItemUtils.consumeDurability.

1.0.3

21 Feb 10:42
Compare
Choose a tag to compare

Changelog for Version 1.0.3

Changed

  • Improved entity handling by using the new EntityPulseScheduler.addIfMatchesWithRetry method.
  • Enhanced formatting and readability of the code.