Skip to content

Commit

Permalink
Added 1.17.1 support and gamerule
Browse files Browse the repository at this point in the history
  • Loading branch information
Emafire003 committed Feb 22, 2022
1 parent 0b4d23e commit 61845c4
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 8 deletions.
9 changes: 6 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ plugins {
id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16

archivesBaseName = project.archives_base_name
version = project.mod_version
Expand All @@ -24,6 +24,9 @@ dependencies {
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

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

}

processResources {
Expand All @@ -36,7 +39,7 @@ processResources {

tasks.withType(JavaCompile).configureEach {
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
it.options.release = 17
it.options.release = 16
}

java {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.12.12

# Mod Properties
mod_version = 0.1.0
mod_version = 0.2.0
maven_group = me.emafire003.dev
archives_base_name = coloredglowlib

Expand Down
File renamed without changes
3 changes: 3 additions & 0 deletions src/main/resources/assets/coloredglowlib/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"gamerule.overrideTeamColors": "[ColoredGlowLib] Use the color of the library instead of of the team"
}
3 changes: 3 additions & 0 deletions src/main/resources/assets/coloredglowlib/lang/it_it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"gamerule.overrideTeamColors": "[ColoredGlowLib] Usa il colore di questa libreria anziché dei team del gioco"
}
2 changes: 1 addition & 1 deletion src/main/resources/coloredglowlib.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"required": true,
"minVersion": "0.8",
"package": "me.emafire003.dev.coloredglowlib.mixin",
"compatibilityLevel": "JAVA_17",
"compatibilityLevel": "JAVA_16",
"mixins": [
"EntityColorMixin"
],
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},

"license": "MIT",
"icon": "assets/modid/icon.png",
"icon": "assets/coloredglowlib/icon.png",

"environment": "*",
"entrypoints": {
Expand All @@ -28,8 +28,8 @@

"depends": {
"fabricloader": ">=0.12.12",
"minecraft": "1.18.x",
"java": ">=17"
"minecraft": ["1.18.x", "1.17.x"],
"java": ">=16"
},
"suggests": {
"another-mod": "*"
Expand Down

0 comments on commit 61845c4

Please sign in to comment.