builder
Build Minecraft Bedrock packs from JavaScript, TypeScript and ordinary pack assets.
A project can contain one resource pack, one behavior pack or any combination of packs. Builder transforms copied source files, validates the result and exports each pack to its configured destination. Your authored files stay intact.
Install
Use Node.js 22.18 or newer:
- npm
- yarn
- pnpm
npm install --save-dev @bedrock-core/builder
yarn add --dev @bedrock-core/builder
pnpm add --save-dev @bedrock-core/builder
Run the installed bc-builder executable through your package manager. Build a pack provides a complete resource-only example; the CLI creates a configured starter.
Build and watch
{
"scripts": {
"build": "bc-builder build config.json build",
"watch": "bc-builder watch config.json default"
}
}
Profiles choose the output paths and build settings. Watch mode rebuilds after input changes. Unchanged compilations are reused when their dependencies still match.
What gets built
| Your source | Minecraft output |
|---|---|
| Pack manifests and ordinary assets | Validated pack files |
| TypeScript JSON templates | JSON blocks, entities, recipes and other content |
| Markdown and MDX guides | In-game guide pages |
| Translation modules | Language files and typed runtime translations |
| JSX screens | Compiled UI and runtime registrations |
| JavaScript and TypeScript scripts | The script modules declared by each manifest |
Only the processing needed by your inputs runs automatically. Built-in processing explains the inputs and settings for each stage.
Extend a build
Use a plugin for custom processing with pack information and build services. Existing Node-based Regolith filters can use the Node script adapter, which maps their conventional folders onto selected project packs.
Next steps
- Build a pack — run a first build
- Projects and packs — organize one or many packs
- Generate JSON — write typed content and generate variants
- Watch and cache — rebuild during development
- Configuration — look up profile and export settings