Skip to content

@minecraft/server


@minecraft/server / ItemReleaseUseAfterEvent

Class: ItemReleaseUseAfterEvent ​

Defined in: @minecraft/server/index.d.ts:14380

Contains information related to a chargeable item when the player has finished using the item and released the build action.

Properties ​

itemStack? ​

readonly optional itemStack?: ItemStack

Defined in: @minecraft/server/index.d.ts:14387

Remarks ​

Returns the item stack that triggered this item event.


source ​

readonly source: Player

Defined in: @minecraft/server/index.d.ts:14393

Remarks ​

Returns the source entity that triggered this item event.


useDuration ​

readonly useDuration: number

Defined in: @minecraft/server/index.d.ts:14400

Remarks ​

Returns the time, in ticks, for the remaining duration left before the charge completes its cycle.