Prompts for various information and outputs a skeleton mod, ready to be modified. Prevents faffing about with the example mod and having to change various fields, potentially missing certain information.
Also provides basic validation to prevent some errors.
bin
directory to your PATH
environment variableWindows:
Environment variables
and select Edit the system environment variables
.Environment variables
button in the bottom right.System variables
, select Path
then click Edit
.bin
folder and click OK to save.Linux and Mac:
bin
directory:
$ export PATH=$PATH:/your/chosen/folder/GeneratorFabricMod/bin
Once the bin
directory has been added to your PATH
, navigate to the folder where you would like to create a new project. Here, simply run GeneratorFabricMod:
$ GeneratorFabricMod
GeneratorFabricMod should start and load all the data it needs. Once all the data has been loaded, you may begin answering the questions.
For some of the prompts such as the Minecraft version, you will be shown a list. Simply use the up and down arrow keys or k and j to move up and down the list, respectively. Use return/enter to select the currently highlighted option.
For the mod version, the prompt will enforce SemVer. You can simply type out the version in full, and the field will accept it. Alternatively, for the major, minor and patch versions, you can use the up and down arrow keys to increment or decrement the version.
To move between sections you can use the left and right arrow keys, or you can enter a . to go to the next section.
Pressing the - key at any point in the version numbers will take you to the pre-release section, and pressing + at any point at all will take you to the build metadata section.
This project uses TemplateMakerFabric to get the data it needs for prompting and for outputting the skeleton.