English | 日本語
CLI for Minecraft Bedrock ScriptAPI development.
scriptup helps you keep @minecraft/* modules current, use external libraries in ScriptAPI projects, and scaffold projects and library-ready structures quickly.
- Make updating @minecraft/* easier
- Make it easy to use external libraries in ScriptAPI
- Make it easy to create libraries for ScriptAPI
- Update ScriptAPI module versions in manifest.json and install matching package versions
- Create a new ScriptAPI project directly in development_behavior_packs
- Initialize the current directory as a ScriptAPI project
- Build ScriptAPI code with tsdown using manifest.json script entry output
- Optional local library scaffold for creating reusable ScriptAPI packages
- Node.js 18+
- Minecraft Bedrock environment for addon testing
- One of npm, pnpm, yarn, or bun
Use your preferred package manager and install globally.
npm i -g @nano191225/scriptuppnpm add -g @nano191225/scriptupAfter installation, run via scriptup (or sup).
scriptup stablescriptup new my-pack --openscriptup buildInstalls module versions matching the latest stable Minecraft version.
Installs module versions matching the latest preview Minecraft version.
Installs LTS-like module versions (non-stable, non-preview, non-beta, non-internal when available), with fallback to stable matching versions.
Manual version lookup mode.
Example:
scriptup 1.21.60
scriptup 2.0.0-betaInitialize the current directory as a ScriptAPI project.
Options:
- --lib: Include local library scaffold under package/
- --no-workflow: Do not generate GitHub Actions workflow files
What it does:
- Scaffolds core project files (manifest.json, tsconfig.json, src/main.ts, etc.)
- Ensures tsdown.config.ts exists
- Sets package.json scripts:
- build: scriptup build --release
- watch: scriptup build --watch
- Installs required dev dependencies
Create a new ScriptAPI project.
Options:
- -o, --open [command]: Open project after creation (preset: code)
- -p, --preview: Use Minecraft Bedrock Preview behavior packs directory
- -d, --dir : Create under a specific directory
- --lib: Include local library scaffold under package/
- --no-link: Do not create behavior-pack link when --dir is used
- --no-workflow: Do not generate GitHub Actions workflow files
Default target directories:
- Windows stable:
- %APPDATA%/Minecraft Bedrock/Users/Shared/games/com.mojang/development_behavior_packs
- Windows preview:
- %APPDATA%/Minecraft Bedrock Preview/Users/Shared/games/com.mojang/development_behavior_packs
- Linux (mcpelauncher):
- ${XDG_DATA_HOME:-~/.local/share}/mcpelauncher/games/com.mojang/development_behavior_packs
Bundle/build current ScriptAPI project using tsdown.
Options:
- -b, --bundle: Force bundled output
- -w, --watch: Watch mode
- -r, --release: Release build (minified, sourcemap off)
Build behavior summary:
- Output target is derived from manifest.json script module entry (for example scripts/main.js)
- Input entry priority:
- src/main.ts
- src/index.ts
- entry in tsdown.config.ts
- Release mode also builds package/**/*.ts into dist/ when package/ exists
- If disallowed external imports remain in output (outside allowed @minecraft/*), scriptup warns with both the likely cause package and remaining dependency names
scriptup init
scriptup stable
scriptup buildscriptup new my-addon --open
cd my-addon
scriptup build --watchscriptup new @yourname/your-lib --lib --dir . --open- scriptup updates versions in manifest.json and installs matching dev dependencies
- Package manager is auto-detected from packageManager field or lockfile
- Alias command sup is also available
MIT