A set of events that fire before an actual action occurs. In
most cases, you can potentially cancel or modify the
impending event. Note that in before events any APIs that
modify gameplay state will not function and will throw an
error. (e.g., dimension.spawnEntity)
For custom items, this event is triggered when the
fundamental set of defined components for the item change.
Note that this event is only fired for custom data-driven
items.
A set of events that fire before an actual action occurs. In most cases, you can potentially cancel or modify the impending event. Note that in before events any APIs that modify gameplay state will not function and will throw an error. (e.g., dimension.spawnEntity)