Skip to content

Commit

Permalink
update to 1.20.5
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas <a@ndy.sh>
  • Loading branch information
Greek committed Apr 23, 2024
1 parent b62d794 commit 11b9a3d
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 33 deletions.
17 changes: 7 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.5-SNAPSHOT'
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'maven-publish'
}

Expand All @@ -19,7 +19,7 @@ repositories {
}

loom {
splitEnvironmentSourceSets()
splitEnvironmentSourceSets()

mods {
"togglenametags" {
Expand All @@ -38,11 +38,7 @@ dependencies {

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

// Uncomment the following line to enable the deprecated Fabric API modules.
// 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.

// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
}

processResources {
Expand All @@ -54,7 +50,7 @@ processResources {
}

tasks.withType(JavaCompile).configureEach {
it.options.release = 17
it.options.release = 21
}

java {
Expand All @@ -63,8 +59,8 @@ java {
// If you remove this line, sources will not be generated.
withSourcesJar()

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

jar {
Expand All @@ -76,7 +72,8 @@ jar {
// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
create("mavenJava", MavenPublication) {
artifactId = project.archives_base_name
from components.java
}
}
Expand Down
14 changes: 6 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
org.gradle.jvmargs=-Xmx1G
org.gradle.parallel=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.4
yarn_mappings=1.20.4+build.3
loader_version=0.15.6
minecraft_version=1.20.5
yarn_mappings=1.20.5+build.1
loader_version=0.15.10

#Fabric api
fabric_version=0.97.6+1.20.5

# Mod Properties
mod_version=2.0.5
maven_group=sh.ndy
archives_base_name=togglenametags

# Dependencies
fabric_version=0.94.0+1.20.4
5 changes: 2 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#Tue Apr 23 18:05:08 EDT 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion src/client/resources/togglenametags.client.mixins.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"package": "sh.ndy.mixin.client",
"compatibilityLevel": "JAVA_17",
"compatibilityLevel": "JAVA_21",
"client": [
"MixinRenderNameTag",
"MixinRenderSelfNameTag"
Expand Down
17 changes: 7 additions & 10 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"id": "togglenametags",
"version": "${version}",
"name": "ToggleNametags",
"description": "This is an example description! Tell everyone what your mod is about!",
"description": "A mod that allows you to toggle your nametags.",
"authors": [
"Me!"
"Andreas <a@ndy.sh>"
],
"contact": {
"homepage": "https://fabricmc.net/",
"sources": "https://github.com/FabricMC/fabric-example-mod"
"homepage": "https://github.com/Greek/ToggleNametags",
"sources": "https://github.com/Greek/ToggleNametags"
},
"license": "CC0-1.0",
"icon": "assets/togglenametags/icon.png",
Expand All @@ -30,12 +30,9 @@
}
],
"depends": {
"fabricloader": ">=0.15.6",
"minecraft": "~1.20.4",
"java": ">=17",
"fabricloader": ">=0.15.10",
"minecraft": ">=1.20.5",
"java": ">=21",
"fabric-api": "*"
},
"suggests": {
"another-mod": "*"
}
}
2 changes: 1 addition & 1 deletion src/main/resources/togglenametags.mixins.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"package": "sh.ndy.mixin",
"compatibilityLevel": "JAVA_17",
"compatibilityLevel": "JAVA_21",
"mixins": [
"ExampleMixin"
],
Expand Down

0 comments on commit 11b9a3d

Please sign in to comment.