Skip to main content

command

Function command 

Source
pub async fn command(
    commands: &CommandSender,
    world: WorldId,
    job: impl FnOnce(&mut World) -> Result<Value, String> + Send + 'static,
) -> ToolResult
Available on crate feature mcp and non-WebAssembly only.
Expand description

Send a job to the world world names and await its JSON result.