Readonly
Beta
eventsContains a set of events that are applicable to the entirety of the world.
Readonly
Beta
scoreboardReturns the general global scoreboard that applies to the world.
Beta
Optional
options: EntityQueryOptionsAdditional options that can be used to filter the set of players returned.
A player array.
Beta
The message to be displayed.
This method can throw if the provided RawMessage is
in an invalid format. For example, if an empty name
string
is provided to score
.
// Displays "Apple or Coal"
let rawMessage = {
translate: "accessibility.list.or.two",
with: { rawtext: [{ translate: "item.apple.name" }, { translate: "item.coal.name" }] },
};
world.sendMessage(rawMessage);
A class that wraps the state of a world - a set of dimensions and the environment of Minecraft.