1.6 KiB
1.6 KiB
Migration guides
Generic migration
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.gradlefrom 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.propertiesto your mod - Ensure
src/main/resources/mcmod.infocontains${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
Mixin configuration
For the reference checkout the example mixin configuration branch of the template.
- Extract mixins package and plugin configuration from
mixins.yourModId.jsontogradle.properties - Implement MixinPlugin according to example from the reference
- Remove mixins.mymodid.json