Skip to content

2A - First non-beta release

Choose a tag to compare

@Omena0 Omena0 released this 25 Feb 07:43
· 94 commits to main since this release
Immutable release. Only release title and notes can be modified.

Feature update

Changes

Networking

  • Optimized for single request latency
  • Use batching to speed up multiple requests
  • Now uses orjson for faster parsing
  • Automatic handle management

New APIs

  • Tab list API on Player
  • Region utils on World: .set_block, .fill, .replace, .fill_sphere, .fill_cylinder, .fill_line
  • Particle shapes on World
  • Entity spawn helpers on World: spawn_at_player, spawn_projectile, spawn_with_nbt.
  • Support for command execution on Server
  • world.entities property
  • RaycastResult.distance and .hit_face

New helpers

  • Sidebar: Scoreboard helper
  • Config: TOML config helper
  • Cooldown: Automatically manage cooldowns
  • Hologram: Show floating text
  • Menu / MenuItem: Create easy chest GUIs
  • ActionBarDisplay: Manage action bars easily
  • BossBarDisplay: Manage boss bars easily
  • BlockDisplay: Show fake blocks
  • ItemDisplay: Show floating items
  • ImageDisplay: Show images in the world
  • ItemBuilder: Easily create items
  • Shutdown event

API improvements

  • Fixed type errors regarding EnumValue not matching its child classes
  • EntityGoneException now extends BridgeError
  • @task decorator: Run tasks on an interval
  • Added event priority and throttle_ms parameters
  • Added command description parameter
  • Location: .add, .clone, .distance, .distance_squared are now sync
  • Scoreboard, Team, Objective, and BossBar creation methods are now sync
  • Config: Added support for multiple formats, toml (default), json, and properties.
  • Commands can be now executes as console

Cleanup

  • Entity class moved before Player
  • Moved most of the code from a single file to multiple
  • Improved typing across python bridge

Misc