···11plugins {
22- id 'fabric-loom' version '0.12-SNAPSHOT'
22+ id 'fabric-loom' version '1.6-SNAPSHOT'
33 id 'maven-publish'
44}
5566-sourceCompatibility = JavaVersion.VERSION_17
77-targetCompatibility = JavaVersion.VERSION_17
88-99-archivesBaseName = project.archives_base_name
106version = project.mod_version
117group = project.maven_group
88+99+base {
1010+ archivesName = project.archives_base_name
1111+}
12121313repositories {
1414 // Add repositories to retrieve artifacts from in here.
···1818 // for more information about repositories.
1919}
20202121+loom {
2222+ splitEnvironmentSourceSets()
2323+2424+ mods {
2525+ "breakfree" {
2626+ sourceSet sourceSets.main
2727+ sourceSet sourceSets.client
2828+ }
2929+ }
3030+}
3131+2132dependencies {
2233 // To change the versions see the gradle.properties file
2334 minecraft "com.mojang:minecraft:${project.minecraft_version}"
···2536 modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
26372738 // Fabric API. This is technically optional, but you probably want it anyway.
2828- modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
2929-3030- // Uncomment the following line to enable the deprecated Fabric API modules.
3131- // These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
3232-3333- // modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
3939+ //modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
3440}
35413642processResources {
···4248}
43494450tasks.withType(JavaCompile).configureEach {
4545- // Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
4646- it.options.release = 17
5151+ it.options.release = 21
4752}
48534954java {
···5156 // if it is present.
5257 // If you remove this line, sources will not be generated.
5358 withSourcesJar()
5959+6060+ sourceCompatibility = JavaVersion.VERSION_21
6161+ targetCompatibility = JavaVersion.VERSION_21
5462}
55635664jar {
···6270// configure the maven publication
6371publishing {
6472 publications {
6565- mavenJava(MavenPublication) {
7373+ create("mavenJava", MavenPublication) {
7474+ artifactId = project.archives_base_name
6675 from components.java
6776 }
6877 }
+10-6
gradle.properties
···11# Done to increase the memory available to gradle.
22org.gradle.jvmargs=-Xmx1G
33+org.gradle.parallel=true
44+35# Fabric Properties
46# check these on https://fabricmc.net/versions.html
55-minecraft_version=1.20.2-pre1
66-yarn_mappings=1.20.2-pre1+build.3
77-loader_version=0.14.22
77+minecraft_version=1.21
88+yarn_mappings=1.21+build.1
99+loader_version=0.15.11
1010+811# Mod Properties
99-mod_version=1.2.0
1010-maven_group=io.gtihub.justapotota
1212+mod_version=1.3.0
1313+maven_group=io.github.justapotota
1114archives_base_name=breakfree
1515+1216# Dependencies
1317# check this on https://fabricmc.net/versions.html
1414-fabric_version=0.88.2+1.20.2
1818+fabric_version=0.100.1+1.21
···1414@rem limitations under the License.
1515@rem
16161717-@if "%DEBUG%" == "" @echo off
1717+@if "%DEBUG%"=="" @echo off
1818@rem ##########################################################################
1919@rem
2020@rem Gradle startup script for Windows
···2525if "%OS%"=="Windows_NT" setlocal
26262727set DIRNAME=%~dp0
2828-if "%DIRNAME%" == "" set DIRNAME=.
2828+if "%DIRNAME%"=="" set DIRNAME=.
2929+@rem This is normally unused
2930set APP_BASE_NAME=%~n0
3031set APP_HOME=%DIRNAME%
3132···40414142set JAVA_EXE=java.exe
4243%JAVA_EXE% -version >NUL 2>&1
4343-if "%ERRORLEVEL%" == "0" goto execute
4444+if %ERRORLEVEL% equ 0 goto execute
44454545-echo.
4646-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
4747-echo.
4848-echo Please set the JAVA_HOME variable in your environment to match the
4949-echo location of your Java installation.
4646+echo. 1>&2
4747+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
4848+echo. 1>&2
4949+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
5050+echo location of your Java installation. 1>&2
50515152goto fail
5253···56575758if exist "%JAVA_EXE%" goto execute
58595959-echo.
6060-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
6161-echo.
6262-echo Please set the JAVA_HOME variable in your environment to match the
6363-echo location of your Java installation.
6060+echo. 1>&2
6161+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
6262+echo. 1>&2
6363+echo Please set the JAVA_HOME variable in your environment to match the 1>&2
6464+echo location of your Java installation. 1>&2
64656566goto fail
6667···75767677:end
7778@rem End local scope for the variables with windows NT shell
7878-if "%ERRORLEVEL%"=="0" goto mainEnd
7979+if %ERRORLEVEL% equ 0 goto mainEnd
79808081:fail
8182rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
8283rem the _cmd.exe /c_ return code!
8383-if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
8484-exit /b 1
8484+set EXIT_CODE=%ERRORLEVEL%
8585+if %EXIT_CODE% equ 0 set EXIT_CODE=1
8686+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
8787+exit /b %EXIT_CODE%
85888689:mainEnd
8790if "%OS%"=="Windows_NT" endlocal