Basalt's own: location, the feet, may be moved.
Interface in @minecraft/server
Basalt’s own: location, the feet, may be moved.
import type { PlayerRespawnBeforeEvent } from '@minecraft/server';Subscribe to it with world.beforeEvents.playerRespawn.
Example
Section titled “Example”import { world, type PlayerRespawnBeforeEvent } from '@minecraft/server';
world.beforeEvents.playerRespawn.subscribe((event: PlayerRespawnBeforeEvent) => { console.log('playerRespawn', event.player.name);});import { world } from '@minecraft/server';
world.beforeEvents.playerRespawn.subscribe((event) => { console.log('playerRespawn', event.player.name);});Properties
Section titled “Properties”player
Section titled “player”read-only
readonly player: Player;Types
location
Section titled “location”location: Vector3;Types