Basalt's own (PowerNukkitX's PlayerDropItemEvent).
Interface in @minecraft/server
Extended by PlayerDropItemBeforeEvent
Basalt’s own (PowerNukkitX’s PlayerDropItemEvent).
import type { PlayerDropItemAfterEvent } from '@minecraft/server';Subscribe to it with world.afterEvents.playerDropItem.
Example
Section titled “Example”import { world, type PlayerDropItemAfterEvent } from '@minecraft/server';
world.afterEvents.playerDropItem.subscribe((event: PlayerDropItemAfterEvent) => { console.log('playerDropItem', event.player.name, event.itemStack.typeId);});import { world } from '@minecraft/server';
world.afterEvents.playerDropItem.subscribe((event) => { console.log('playerDropItem', event.player.name, event.itemStack.typeId);});Properties
Section titled “Properties”player
Section titled “player”read-only
readonly player: Player;Types
itemStack
Section titled “itemStack”read-only
readonly itemStack: ItemStack;Types