Basalt's own (PowerNukkitX's PlayerRespawnEvent).
Interface in @minecraft/server
Basalt’s own (PowerNukkitX’s PlayerRespawnEvent).
import type { PlayerRespawnAfterEvent } from '@minecraft/server';Subscribe to it with world.afterEvents.playerRespawn.
Example
Section titled “Example”import { world, type PlayerRespawnAfterEvent } from '@minecraft/server';
world.afterEvents.playerRespawn.subscribe((event: PlayerRespawnAfterEvent) => { console.log('playerRespawn', event.player.name);});import { world } from '@minecraft/server';
world.afterEvents.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”read-only
readonly location: Vector3;Types