Skip to content

EntityItemFallEvent

youyihj edited this page Dec 11, 2023 · 1 revision

EntityItemFallEvent

@since 1.13.8

This event is fired when an entity item falls down.

This event is not cancelled.

Event Class

mods.zenutils.event.EntityItemFallEvent

Event interface extensions

EntityItemFall Event implements the following interfaces and are able to call all of their methods/getters/setters as well:

Event manager call

This code calls an event handler of EntityRemove event.

events.onEntityItemFall(function(event as EntityItemFallEvent) {...} );

ZenGetters/ZenSetters

The following information can be retrieved/set during the event:

ZenGetter Return Type Description
item IEntityItem The entity item
distance float the distance to the entity item fall down
blockStates List<IBlockState> Blocks that the entity item collided
Clone this wiki locally