Basalt's own (PowerNukkitX's PlayerMoveEvent), fired when the player's block changes.
Interface in @minecraft/server
Basalt’s own (PowerNukkitX’s PlayerMoveEvent), fired when the player’s block changes.
import type { PlayerMoveAfterEvent } from '@minecraft/server';Subscribe to it with world.afterEvents.playerMove.
Example
Section titled “Example”import { world, type PlayerMoveAfterEvent } from '@minecraft/server';
world.afterEvents.playerMove.subscribe((event: PlayerMoveAfterEvent) => { console.log('playerMove', event.player.name);});import { world } from '@minecraft/server';
world.afterEvents.playerMove.subscribe((event) => { console.log('playerMove', event.player.name);});Properties
Section titled “Properties”player
Section titled “player”read-only
readonly player: Player;Types
fromLocation
Section titled “fromLocation”read-only
readonly fromLocation: Vector3;Types
toLocation
Section titled “toLocation”read-only
readonly toLocation: Vector3;Types