A mod that adds your armor to the hud modrinth.com/mod/simple-armor-hud
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: updated versions to 1.21.11 and newer gradle versions

legoraft aef04365 5a5a553c

+37 -44
+30 -37
build.gradle
··· 1 1 plugins { 2 - id 'fabric-loom' version "${loom_version}" 2 + id 'net.fabricmc.fabric-loom-remap' version "${loom_version}" 3 3 id 'maven-publish' 4 - 5 4 } 6 5 7 - sourceCompatibility = JavaVersion.VERSION_17 8 - targetCompatibility = JavaVersion.VERSION_17 9 - 10 - archivesBaseName = project.archives_base_name 11 6 version = project.minecraft_version + "-" + project.mod_version 12 7 group = project.maven_group 13 8 9 + base { 10 + archivesName = project.archives_base_name 11 + } 12 + 14 13 repositories { 15 14 // Add repositories to retrieve artifacts from in here. 16 15 // You should only use this when depending on other mods because 17 16 // Loom adds the essential maven repositories to download Minecraft and libraries from automatically. 18 17 // See https://docs.gradle.org/current/userguide/declaring_repositories.html 19 18 // for more information about repositories. 20 - // maven { url = "https://maven.gegy.dev" } 21 - maven { 22 - name = "TerraformersMC" 23 - url = "https://maven.terraformersmc.com/" 24 - } 25 - maven { 26 - name = "Ladysnake Libs" 27 - url = 'https://maven.ladysnake.org/releases' 28 - } 19 + maven { 20 + name = "TerraformersMC" 21 + url = "https://maven.terraformersmc.com/" 22 + } 23 + maven { 24 + name = "Ladysnake Libs" 25 + url = 'https://maven.ladysnake.org/releases' 26 + } 29 27 } 30 28 31 29 loom { 32 - splitEnvironmentSourceSets() 30 + splitEnvironmentSourceSets() 33 31 34 - mods { 35 - modid { 36 - sourceSet sourceSets.main 37 - sourceSet sourceSets.client 38 - } 39 - } 32 + mods { 33 + "armorhud" { 34 + sourceSet sourceSets.main 35 + sourceSet sourceSets.client 36 + } 37 + } 40 38 41 39 } 42 40 ··· 50 48 51 49 // Fabric API. This is technically optional, but you probably want it anyway. 52 50 modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" 53 - 54 - // Uncomment the following line to enable the deprecated Fabric API modules. 55 - // 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. 56 - 57 - // modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}" 58 - 59 - // modImplementation "dev.emi:trinkets:${project.trinkets_version}" 60 51 } 61 52 62 53 processResources { 63 54 inputs.property "version", project.version 64 55 65 56 filesMatching("fabric.mod.json") { 66 - expand "version": project.version 57 + expand "version": inputs.properties.version 67 58 } 68 59 } 69 60 70 61 tasks.withType(JavaCompile).configureEach { 71 - it.options.release = 17 62 + it.options.release = 21 72 63 } 73 64 74 65 java { 75 - // Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task 76 - // if it is present. 77 - // If you remove this line, sources will not be generated. 66 + sourceCompatibility = JavaVersion.VERSION_21 67 + targetCompatibility = JavaVersion.VERSION_21 78 68 } 79 69 80 70 jar { 71 + inputs.property "archivesName", project.base.archivesName 72 + 81 73 from("LICENSE") { 82 - rename { "${it}_${project.archivesBaseName}"} 74 + rename { "${it}_${inputs.properties.archivesName}"} 83 75 } 84 76 } 85 77 86 78 // configure the maven publication 87 79 publishing { 88 80 publications { 89 - mavenJava(MavenPublication) { 81 + create("mavenJava", MavenPublication) { 82 + artifactId = project.archives_base_name 90 83 from components.java 91 84 } 92 85 } ··· 98 91 // The repositories here will be used for publishing your artifact, not for 99 92 // retrieving dependencies. 100 93 } 101 - } 94 + }
+6 -6
gradle.properties
··· 4 4 5 5 # Fabric Properties 6 6 # check these on https://fabricmc.net/develop 7 - minecraft_version=1.21.10 8 - yarn_mappings=1.21.10+build.1 9 - loader_version=0.17.2 10 - loom_version=1.11-SNAPSHOT 7 + minecraft_version=1.21.11 8 + yarn_mappings=1.21.11+build.3 9 + loader_version=0.18.2 10 + loom_version=1.14-SNAPSHOT 11 11 12 12 # Mod Properties 13 13 mod_version=1.6.0 ··· 15 15 archives_base_name=simple-armor-hud 16 16 17 17 # Dependency properties 18 - fabric_version=0.135.0+1.21.10 19 - modmenu_version=16.0.0-rc.1 18 + fabric_version=0.139.5+1.21.11 19 + modmenu_version=17.0.0-alpha.1 20 20 trinkets_version=3.10.0
+1 -1
gradle/wrapper/gradle-wrapper.properties
··· 1 1 distributionBase=GRADLE_USER_HOME 2 2 distributionPath=wrapper/dists 3 - distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip 3 + distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip 4 4 networkTimeout=10000 5 5 zipStoreBase=GRADLE_USER_HOME 6 6 zipStorePath=wrapper/dists