Migration for the typical mod which doesn't use anything special but Minecraft forge and some library dependencies. For core plugin, Mixins, shadowing, access transformers, ASM or etc. you'll need to do some extra steps. If they are missing in this document - we will gladly receive your suggestions/contribution.
- Copy and replace all files from template to your repository, but
build.gradle
- Copy all repositories from your
build.gradle(.kts)
torepositories.gradle
- Copy all dependencies from your
build.gradle(.kts)
todependecies.gradle
- replace your
build.gradle(.kts)
withbuild.gradle
from template. In case you have written some custom tasks/configurations not present in the template - move them intoaddon.gradle
. It will automatically be integrated if present. - Adapt
gradle.properties
to your mod - Ensure
src/main/resources/mcmod.info
contains${modId}
,${modName}
.${modVersion}
and${minecraftVersion}
- Re-import the project to your IDE (e.g. restart with clean caches in IntelliJ IDEA)
- Run
./gradlew clean setupDecompWorkspace
For the reference checkout the example mixin configuration branch of the template.
- Extract mixins package and plugin configuration from
mixins.yourModId.json
togradle.properties
- Implement MixinPlugin according to example from the reference
- Remove mixins.mymodid.json