Last active
July 2, 2023 02:42
-
-
Save Lothrazar/a7ed9fc7485d22aab8412b4e16ce5088 to your computer and use it in GitHub Desktop.
1.20 port steps with reminders and links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0. read https://gist.github.com/ChampionAsh5357/cf818acc53ffea6f4387fe28c2977d56 | |
1. download https://files.minecraftforge.net/net/minecraftforge/forge/index_1.20.1.html | |
2. copy gradle files&folders | |
3. update settings.gradle plugin | |
plugins { | |
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0' | |
} | |
4. update meta-inf normal changes along with | |
version="${mod_version}" #mandatory | |
5. pack mcmeta (optional) "pack_format": 15 | |
6. gradle properties update version numbers add NEW | |
mod_id= | |
mc_version=1.20.1 | |
forge_version=47.0.1 | |
# optional dependencies | |
jei_version=15.0.0.12 | |
curios_version=5.2.0-beta.3+1.20 | |
7. build.gradle | |
id 'net.minecraftforge.gradle' version '[6.0,6.2)' | |
base { archivesName = "" } | |
mappings channel: 'official', version: "${mc_version}" | |
copyIdeResources = true | |
enableEclipsePrepareRuns = true | |
property 'forge.enabledGameTestNamespaces', mod_id | |
def resourceTargets = ['META-INF/mods.toml', 'pack.mcmeta'] | |
def replaceProperties = [ | |
mod_id: mod_id, mod_version: mod_version, version: version | |
] | |
processResources { | |
inputs.properties replaceProperties | |
replaceProperties.put 'project', project | |
filesMatching(resourceTargets) { | |
expand replaceProperties | |
} | |
} | |
implementation fg.deobf("curse.maven:flib-661261:4583429") | |
// implementation fg.deobf("blank:flib-${mc_version}:${flib_version}") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment