Skip to main content

Installation

Locally

note

All snippets of this documentation can be edited, and you can preview the resulting data pack. If you want to quickly see what Sandstone can offer, there is no need to install anything. Just edit the snippets, and see the results in live.

If you want to use Sandstone to create data packs, a local installation will be necessary.

The first step is to install Bun. Node.js is not officially supported anymore.

You will then need a code editor: I personally recommend Visual Studio Code.

Create an empty folder named "Sandstone Projects": it will contain all your future Sandstone projects. Inside this folder, open a terminal then run the following command:

bun i -g sandstone-cli
sand create <my-project>
note

Replace <my-project> with your project's name. It will only be the name of the project folder, not the name of the data pack.

Example: sand create my-first-sandstone-project

Answer the different questions. Congratulations, you created your first Sandstone project!

To build the data pack, run the following command:

bun dev:build

The downside of build is that it only builds your data pack once. To build then rebuild on each change, run watch instead:

bun dev:watch