To install mc-build on your device you must first install Node.js. Simply visit their site (nodejs.org) and download and run the installer.
Once node is finished installing open a command prompt and run this command:
npm i -g mc-build
Tada! mc-build is now installed.
To create a mc-build datapack, simply navigate to your chosen
world/datapacks folder, and create a new datapack folder.
Then inside the datapack folder, create a
src folder, and a pack.mcmeta file. (The pack.mcmeta is identical to a vanilla pack.mcmeta)
Then open a command prompt and navigate to your new datapack folder.
Once inside your datapack folder, run the command
That's it! Your datapack is now ready for development.
Open a command prompt and navigate to your datapack folder. Then:
- To create a JSON config:
mcb -config json
mcb -config js