YouTube-Tutorials-17

From McJty Modding
Revision as of 02:56, 28 July 2021 by McJty (talk | contribs) (Created page with "Steps to port a mod from 1.16 to 1.17: step 1: Make a copy of your 1.16 mod to a new folder or (alternatively) use github to make a new branch and clone that step 2: Download...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Steps to port a mod from 1.16 to 1.17:

step 1: Make a copy of your 1.16 mod to a new folder or (alternatively) use github to make a new branch and clone that step 2: Download the MDP and copy over the gradle folder and gradlew scripts from there, nothing else step 3: Edit the build.gradle to use FG 5.1+ step 4: Open a cmd window or bash shell (for Linux) with java16 in the JAVA_HOME step 5: If your 1.16.5 mod is not using official mappings then run gradlew -PUPDATE_MAPPINGS=1.16.5 -PUPDATE_MAPPINGS_CHANNEL=official updatemappings step 6: Edit the build.gradle mappings line mappings channel: 'official', version: '1.16.5' [THIS IS IMPORTANT!!] step 7: Add the following line to your build.gradle:

       apply from: 'https://raw.githubusercontent.com/SizableShrimp/Forge-Class-Remapper/main/classremapper.gradle' plugin

step 8: Run gradlew -PUPDATE_CLASSNAMES=true updateClassnames step 9: Change the build.gradle mappings line to mappings channel: 'official', version: '1.17.1' step 10: Change the sourceCompability = ... = '1.8' to '16' step 11: Change the forge dependency to minecraft 'net.minecraftforge:forge:1.17.1-37.0.1' [USE LATEST HERE, .1 WAS LATEST AT THE TIME OF WRITING] step 11: Import into intellij, changing intellij's project SDK to java16, and making use the gradle jre uses the project JDK too step 12: Run gradlew genIntellijRuns step 13+: Fix code and test(edited)