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)
This property is deprecated and will be removed in 2.0.0.
Remarks
This event fires immediately when the script environment is
initialized on a World. Not all script functionality may be
available. For guaranteed access to world state, use the
world initialize after event.
This property can be read in early-execution mode.
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)