Readonly BetacurrentRepresents the current world tick of the server.
Readonly BetaeventsContains a set of events that are applicable for the lifecycle of items in the Minecraft system.
Function callback to run when the tickDelay time criteria is met.
An opaque identifier that can be used with the clearRun
function to cancel the execution of this run.
BetaFunctional code that will run when this interval occurs.
OptionaltickInterval: numberAn interval of every N ticks that the callback will be called upon.
An opaque handle that can be used with the clearRun method to stop the run of this function on an interval.
BetaFunctional code that will run when this timeout occurs.
OptionaltickDelay: numberAmount of time, in ticks, before the interval will be called.
An opaque handle that can be used with the clearRun method to stop the run of this function on an interval.
A class that provides system-level events and functions.