Skip to content

Use SNMT

Marceau Malegeant edited this page Feb 15, 2022 · 4 revisions

Use SNMT

This page is dedicated to the setup of an SNMT project. Please DM me on Twitter or create an issue if you have struggles with renaming. I will help you with this.

The gradle files

You'll have to replace all the "soetchnomodtemplate" with your MODID (you can use CTRL+R in IntelliJ to have the replace menu, who'll be a must-have, because you have to replace ALL of it.) in :

build.gradle

The Java classes

You'll have to replace (and rename the packages, can be long sorry 😭) all the "soetchnomodtemplate" with your MODID (you can use CTRL+R in IntelliJ to have the replace menu, who'll be a must-have, because you have to replace ALL of it.) in :

SoetchNoModTemplate.java (rename)

Reference.java (rename and change the string MOD_ID)

The mod.toml

You'll only have to rename the 18 (with your MODID), 24 (with your mod's name), 26 and 28 (with your links), 30 (with your mod's logo), 32 (with the credits of your mod), 34 (with your name), 36 (with your description, please keep the line with the SNMT credit, I'd be thankful!) and 40 + 52 (just replace the MODID)

The *.JSON files (in assets)

So, they are the last to refactor, they are in src/main/resources/assets or data. Just change the MODID in each (or just delete them, they are examples for recipes, item and block models, etc..).

(Note : When you rename the packages, IntelliJ replaces the name of the package (net.soetch.soetchnomodtemplate) with the new name. Please verify in the Java files if they are changed.)

You can also delete the .github folder.

Clone this wiki locally