The ItemReleaseUseAfterEvent interface in @minecraft/server.
Interface in @minecraft/server
Extends ItemUseOverTimeEvent
import type { ItemReleaseUseAfterEvent } from '@minecraft/server';Subscribe to it with world.afterEvents.itemReleaseUse.
Example
Section titled “Example”import { world, type ItemReleaseUseAfterEvent } from '@minecraft/server';
world.afterEvents.itemReleaseUse.subscribe((event: ItemReleaseUseAfterEvent) => { console.log('itemReleaseUse', event.source.name, event.itemStack.typeId, event.useDuration);});import { world } from '@minecraft/server';
world.afterEvents.itemReleaseUse.subscribe((event) => { console.log('itemReleaseUse', event.source.name, event.itemStack.typeId, event.useDuration);});Used by
Section titled “Used by”WorldAfterEvents.itemReleaseUse, ItemReleaseUseAfterEventSignal.subscribe, ItemReleaseUseAfterEventSignal.unsubscribe