Optionaloptions: EntityQueryOptionsAdditional options that can be used to filter the set of players returned.
A player array.
OptionalmusicOptions: MusicOptionsPlays a particular music track for all players.
This function can't be called in read-only mode.
OptionalmusicOptions: MusicOptionsQueues an additional music track for players. If a track is not playing, a music track will play.
This function can't be called in read-only mode.
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.