Spawnpack is a Bun-powered CLI for scaffolding Minecraft Bedrock add-on projects with a guided terminal wizard.
It generates BP/RP structure, optional Script API setup, optional rgl integration, marketplace-ready namespaced content folders, and optional AI tooling files.
- Inline wizard built with
@clack/prompts - Behavior Pack and Resource Pack scaffold
- Scripting options: None, JavaScript, TypeScript
- Optional packages:
@minecraft/server@minecraft/server-ui@minecraft/vanilla-data@minecraft/math
- Optional
rglsetup for faster Bedrock builds - Optional marketplace add-on structure using nested
namespace/projectIdfolders in BP/RP content directories - Optional Rockide recommendation during setup
- Optional AI setup:
CLAUDE.md.mcp.json
Spawnpack is published on npm, but it runs on Bun.
Install Bun first:
bun add -g spawnpacknpm i -g spawnpackbunx spawnpackbun install
bun run src/index.tsspawnpackShow the installed version:
spawnpack -v
spawnpack --versionThe wizard walks through:
- Project name and author
- Marketplace add-on structure toggle
- Destination folder
- Script API setup
- Publisher ID and Project ID when needed
- Script packages
rgltoggle- Rockide toggle
- AI setup toggle
- Review screen and generation
Depending on your choices, Spawnpack can generate:
packs/BPpacks/RPdata/scripts/main.tspacks/BP/scripts/<publisher-id>/<project-id>/main.jspackage.jsontsconfig.jsondprint.jsonconfig.jsonforrglCLAUDE.md.mcp.json
When enabled, Spawnpack creates marketplace-style nested folders under many BP/RP content directories.
Example:
packs/BP/animation_controllers/publisher/sample/
packs/BP/entities/publisher/sample/
packs/RP/animation_controllers/publisher/sample/
packs/RP/textures/items/publisher/sample/
This helps multiple add-ons coexist more safely in the same world by reducing content path collisions.
Spawnpack fetches the latest stable npm versions for:
@minecraft/server@minecraft/server-ui@minecraft/vanilla-data@minecraft/math
If version lookup fails, it falls back to baked stable defaults.
bun install
bun run typecheck
bun run buildThe npm package is configured to publish only:
dist/spawnpack.jstemplates/CLAUDE.mdREADME.mdLICENSEpackage.json
Internal planning files, Serena state, and local AI/project notes are excluded from the published tarball.