-
Notifications
You must be signed in to change notification settings - Fork 2
Command Line
minescript <PATH> <NAMESPACE>
minescript src.txt my_project
This is the path to your source file. If you run the command from the folder your code is in, this should be something simple like src.txt
.
This is the namespace your project will be built into. It's important to note that minescript will delete any existing datapacks it finds with this name.
You can add flags after the required arguments to change how minescript behaves.
minescript ... -v
minescript ... --verbose
With this flag enabled, minescript will print out detailed data on how it interprets your code. This is most useful for debugging and submitting issues.
minescript ... -w <WORLD>
minescript ... --world <WORLD>
Without this flag, minescript writes to .minecraft/datapacks/<NAMESPACE>
. With this flag, it writes to .minecraft/saves/<WORLD>/datapacks/<NAMESPACE>
.
minescript ... -r
minescript ... --reload
When you use this flag, minescript will monitor your source files. Whenever they change, it will rebuild your project. If you combine this with the -w
flag, you can apply your changes in Minecraft with just the /reload
command.
minescript -h
minescript --help
This flag doesn't run minescript, and instead displays a short description of how you can call minescript.