Skip to content

MineScriptPacker

Write Minecraft data packs in TypeScript, with autocomplete and error checking for every command of the exact Minecraft version you target.
import { $ } from "#mc";
/** @mcfunction */
export function StartRound() {
$.tp("@a", "0 ~10 0");
$.tellraw("@a", { text: "Fight!", color: "red" });
$.execute.as("@a").at("@s").run.say("go!");
$.function(Cleanup);
}
function Cleanup() {
$.say("cleaning up");
}

Generated from the game

The commands come straight from your Minecraft version, so they always match it, snapshots and April Fools versions included. Type $. and your editor shows them all.

Functions are files

Each TypeScript function becomes an .mcfunction, named after its file and function name. JSDoc tags mark entry points, @load and @tick.

Live reload

mspacker dev downloads the server, rebuilds on save and runs /reload over RCON.

Tested across versions

Every release from 1.13.2 to the latest snapshot is checked against a real server, including a probe of every command path.