Skip to content
PokeJofeJr4th edited this page Aug 11, 2023 · 12 revisions

Welcome to the minescript wiki!

Minescript is a language built to add features of typical programming into the Minecraft datapack system beyond what it is normally capable of as a Domain-Specific language. It allows for both raw functions and template annotations for common use cases like consumables and custom crafting recipes.

Quickstart Guide

Installing a Binary

First, download the binary that corresponds to your system from the latest release on the sidebar. Setting up your computer to recognize this as a program to easily run from the terminal varies by operating system. Alternatively, you can use a terminal to navigate to where you have Minescript downloaded and use a relative path like ./minescript <arguments> to run it.

Build from Source

Another way to run minescript is by compiling the rust source code using cargo. Then, you can navigate to the project's root and run it with cargo run -- <arguments>.

.minecraft

In order to send the datapack to minecraft, Minescript needs to know where the .minecraft folder is on your system. For example, on Windows, this is C:\Users\<your username>\AppData\Roaming\.minecraft. To avoid entering this path every time you run minescript, you can create a .env file in the folder where you run minescript.

DOTMINECRAFT="C:\\Users\\<your username>\\AppData\\Roaming\\.minecraft"

Important Sections

Clone this wiki locally