v0.5.0
This is a major update to support Minecraft v1.21.3 with the new scoreboard and form API.
Game version: v1.21.3
Added
- Support for Minecraft v1.21.3.
Actor::getId
function to get an actor's unique id, persisting between server runs.Actor::isDead
function to check if an actor is marked for removal post-death.ActorTeleport
event that triggers when an entity teleports (e.g., Enderman, Wolf).Mob::isGliding
function to check if a living entity is gliding.Player::sendTitle
andPlayer::resetTitle
functions for sending and resetting an on-screen title.Player::transfer
function to transfer a player to another server.Player::getXuid
to get the Xbox User ID (XUID) of the player.- Python: package metadata can now be used as a fallback for plugin metadata.
- Python:
isinstance
function can now be used to check if aCommandSender
is aPlayer
orConsoleCommandSender
. - Experimental Scoreboard API.
- Experimental Form API.
Changed
Player
class now inherits from theMob
class instead ofActor
class.- BREAKING CHANGE: Plugin names should only contain lowercase letters, numbers, and underscores. Use the prefix
property to display a different name for the plugin logger. - BREAKING CHANGE: The
player.ping
property now returns anint
instead ofdatetime.timedelta
.
Fixed
- Fixed an issue where
Server::setMaxPlayers
would crash due to a change in the internal struct in BDS. - Fixed an issue that python executable cannot be located when running in a virtual environment.