@minecraft/creator-tools
Version:
Minecraft Creator Tools command line and libraries.
7 lines (5 loc) • 358 B
text/typescript
import { world, DimensionLocation } from "@minecraft/server";
// When running a world with this behavior pack, type '/scriptevent sample:run' in chat to trigger this code.
export function scriptBox(log: (message: string, status?: number) => void, targetLocation: DimensionLocation) {
world.sendMessage("Hello world! Replace this line with your code.");
}