Interface in @minecraft/server
Extended by PlayerEmoteBeforeEvent
A player played an emote.
import type { PlayerEmoteAfterEvent } from '@minecraft/server';Subscribe to it with world.afterEvents.playerEmote.
Example
Section titled “Example”import { world, type PlayerEmoteAfterEvent } from '@minecraft/server';
world.afterEvents.playerEmote.subscribe((event: PlayerEmoteAfterEvent) => { console.log('playerEmote', event.player.name, event.personaPieceId);});import { world } from '@minecraft/server';
world.afterEvents.playerEmote.subscribe((event) => { console.log('playerEmote', event.player.name, event.personaPieceId);});Properties
Section titled “Properties”player
Section titled “player”read-only
readonly player: Player;Types
personaPieceId
Section titled “personaPieceId”read-only
readonly personaPieceId: string;The emote’s id, a UUID.
Used by
Section titled “Used by”WorldAfterEvents.playerEmote, PlayerEmoteAfterEventSignal.subscribe, PlayerEmoteAfterEventSignal.unsubscribe