/// Utilities for the external API - not necessarily used by the API itself, but useful for users of the API. import { execute, Selector } from "sandstone"; import { KRADLE_PARTICIPANT_TAG } from "./constants"; /** * Execute a callback for every player in the game, at their position. */ export function forEveryPlayer(callback: () => void) { return execute.as(Selector("@a", { tag: KRADLE_PARTICIPANT_TAG })).at("@s").run(callback); }