UserConfig
The settings in mspacker.config.ts. Only version and namespace are required.
Properties
Section titled “Properties”description?
Section titled “description?”
optionaldescription?:string
The pack description in pack.mcmeta.
optionaljava?:string
Path to java. Default: JAVA_HOME, PATH, then the launcher’s bundled runtime.
minecraftRoot?
Section titled “minecraftRoot?”
optionalminecraftRoot?:string
Minecraft launcher root (for singleplayer saves). Overridden by MINECRAFT_ROOT.
optionalname?:string
Pack folder name. Defaults to the package name / project dir.
namespace
Section titled “namespace”namespace:
string
“mypack”, “mypack:”, “mypack:generated” or “mypack:generated/”
outDir?
Section titled “outDir?”
optionaloutDir?:string
Build output dir. Default “dist”.
parsers?
Section titled “parsers?”
optionalparsers?:Record<string,UserParserDef>
Add or override argument parsers, keyed by brigadier parser id (e.g. “minecraft:particle”).
Use this when a new Minecraft version adds or changes an argument type before MSPacker is
updated. Fields you leave out keep the built-in behavior (or the string fallback).
type changes generated signatures, so re-run mspacker gen after editing it.
optionalraw?:string
Raw datapack files merged into the output verbatim. Default “datapack”.
server?
Section titled “server?”
optionalserver?:object
The dev server (mspacker dev).
optionaldir?:string
Server dir used by dev (world + datapacks). Overridden by MSPACKER_SERVER_DIR. Default “server”.
If it contains a server jar, that jar is used; otherwise the official jar is downloaded.
download?
Section titled “download?”
optionaldownload?:boolean
Download the official server jar when none is provided. Default true.
optionalhost?:string
RCON host. Default “127.0.0.1”.
optionaljar?:string
Jar file name inside the server dir. Default “server.jar” or the only *.jar.
jvmArgs?
Section titled “jvmArgs?”
optionaljvmArgs?:string[]
Extra JVM args for the server mspacker dev starts.
optionalsrc?:string
TS source dir. Default “src”.
version
Section titled “version”version:
string
Minecraft version id, must match the server jar (e.g. “26.3” or “26.3-snapshot-1”).