@@ -29,6 +29,9 @@ plugins {
2929buildscript {
3030 // Set loom platform to correct loader
3131 extra[" loom.platform" ] = project.name.split(' -' )[1 ]
32+ if (project.name[0 ] != ' 1' ) {
33+ extra.set(" fabric.loom.disableObfuscation" , " true" )
34+ }
3235}
3336
3437val mcPlatform = Platform .fromProject(project)
@@ -70,6 +73,7 @@ val shadeModImplementation: Configuration by configurations.creating {
7073
7174// Version definitions
7275val mcVersion = VersionDefinition ( // Used for pre releases and release candidates
76+ " 26.1" to " 26.1-pre-2" ,
7377 default = mcPlatform.versionString
7478)
7579val compatibleMcVersion = VersionDefinition (
@@ -82,9 +86,11 @@ val compatibleMcVersion = VersionDefinition(
8286 " 1.21.8" to VersionRange (" 1.21.6" , " 1.21.8" , name = " 1.21.8" ),
8387 " 1.21.10" to VersionRange (" 1.21.9" , " 1.21.10" , name = " 1.21.10" ),
8488 " 1.21.11" to VersionRange (" 1.21.11" , " 1.21.11" , name = " 1.21.11" ),
89+ " 26.1" to VersionRange (" 26.1" , " 26.2" , inclusive = false , name = " 26.1" )
8590)
8691val javaVersion = VersionDefinition (
8792 " 1.20.1" to " 17" ,
93+ " 26.1" to " 25" ,
8894 default = " 21" ,
8995)
9096val parchmentVersion = VersionDefinition (
@@ -102,6 +108,7 @@ val fabricApiVersion = VersionDefinition(
102108 " 1.21.8" to " 0.129.0+1.21.8" ,
103109 " 1.21.10" to " 0.136.0+1.21.10" ,
104110 " 1.21.11" to " 0.139.4+1.21.11" ,
111+ " 26.1" to " 0.143.14+26.1" ,
105112)
106113val modMenuVersion = VersionDefinition (
107114 " 1.20.1" to " 7.2.2" ,
@@ -110,7 +117,8 @@ val modMenuVersion = VersionDefinition(
110117 " 1.21.5" to " 14.0.0" ,
111118 " 1.21.8" to " 15.0.0" ,
112119 " 1.21.10" to " 16.0.0-rc.1" ,
113- " 1.21.11" to " 17.0.0-alpha.1"
120+ " 1.21.11" to " 17.0.0-alpha.1" ,
121+ " 26.1" to " 18.0.0-alpha.6" ,
114122)
115123val neoForgeVersion = VersionDefinition (
116124 " 1.21.1" to " 21.1.95" ,
@@ -143,19 +151,21 @@ val universalMcVersion = VersionDefinition(
143151 default = mcPlatform.versionString
144152)
145153val universalVersion = VersionDefinition (
146- default = " ${universalMcVersion.get(mcPlatform)} -${mcPlatform.loaderString} :446 "
154+ default = " ${universalMcVersion.get(mcPlatform)} -${mcPlatform.loaderString} :466 "
147155)
148156
149157dependencies {
150158 minecraft(" com.mojang:minecraft:${mcVersion.get(mcPlatform)} " )
151159
152- @Suppress(" UnstableApiUsage" )
153- mappings(loom.layered {
154- officialMojangMappings()
155- parchmentVersion.getOrNull(mcPlatform)?.let {
156- parchment(" org.parchmentmc.data:parchment-$it @zip" )
157- }
158- })
160+ if (mcPlatform.major == 1 ) {
161+ @Suppress(" UnstableApiUsage" )
162+ mappings(loom.layered {
163+ officialMojangMappings()
164+ parchmentVersion.getOrNull(mcPlatform)?.let {
165+ parchment(" org.parchmentmc.data:parchment-$it @zip" )
166+ }
167+ })
168+ }
159169
160170 if (mcPlatform.isFabric) {
161171 modImplementation(" net.fabricmc:fabric-loader:0.17.3" )
0 commit comments