Skip to main content

ItemInteractEvent

ItemInteract event.

Type

Properties

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
sourcePlayer | Entity | undefinednullSource of event.
itemItemStacknullItem data.
blockBlocknullBlock data.
blockLocationBlockLocationnullBlock location data.
directionnumbernullDirection.
faceLocationXnumbernullPlayer facing direction X axis.
faceLocationYnumbernullPlayer facing direction Y axis.
cancelCallableFunctionnullFunction to cancel event.