The ItemComponentUseOnEvent class in @minecraft/server.
Class in @minecraft/server
Extends ItemUseOnEvent
import { ItemComponentUseOnEvent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”source
Section titled “source”read-only
readonly source: Entity;Types
usedOnBlockPermutation
Section titled “usedOnBlockPermutation”read-only
readonly usedOnBlockPermutation: BlockPermutation;Types
Used by
Section titled “Used by”Inherited
Section titled “Inherited”From ItemUseOnEvent: block, blockFace, faceLocation, itemStack