What is Regolith

Regolith is an Add-on Compiler for the Bedrock Edition of Minecraft.

Steps to install are on the Regolith website

Prerequisites

Before proceeding, make sure you have CommandLang properly installed and activated. For JSON Templating Engine also the Java 11 or later is required. Instructions are provided here

Project setup

Since Regolith takes the role of the compiler, we will initialize it using regolith command.

regolith init

After that we need to add JSON Templating Engine and CommandLang as filters.

regolith install github.com/MCDevKit/regolith-library/jsonte
regolith install github.com/MCDevKit/regolith-library/command_lang

Configuration

The next step is to edit config.json file to add JSON Templating Engine and CommandLang as filters to the chosen profile. Only relevant fields are shown.

{
  "regolith": {
    "profiles": {
      "default": {
        "filters": [
          {
            "filter": "jsonte"
          },
          {
            "filter": "command_lang"
          }
        ]
      }
    }
  }
}

Running the compiler

regolith run