mirror of
				https://github.com/chylex/Minecraft-Window-Title.git
				synced 2025-10-31 12:17:18 +01:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			1.17
			...
			6c4892dcd0
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 6c4892dcd0 | 
| @@ -4,7 +4,7 @@ val fabricVersion: String by project | ||||
|  | ||||
| plugins { | ||||
| 	idea | ||||
| 	id("fabric-loom") version "0.10-SNAPSHOT" | ||||
| 	id("fabric-loom") | ||||
| } | ||||
|  | ||||
| dependencies { | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|   "schemaVersion": 1, | ||||
|   "id": "customwindowtitle", | ||||
|   "id": "${id}", | ||||
|   "name": "${name}", | ||||
|   "description": "${description}", | ||||
|   "version": "${version}", | ||||
| @@ -22,12 +22,13 @@ | ||||
|       "chylex.customwindowtitle.fabric.CustomWindowTitle" | ||||
|     ] | ||||
|   }, | ||||
|   "mixins": [ | ||||
|     "customwindowtitle.mixins.json" | ||||
|   ], | ||||
|    | ||||
|   "mixins": [{ | ||||
|     "config": "${id}.mixins.json" | ||||
|   }], | ||||
|    | ||||
|   "depends": { | ||||
|     "fabricloader": ">=0.7.2", | ||||
|     "minecraft": ">=1.17" | ||||
|     "fabricloader": ">=${minimumFabricVersion}", | ||||
|     "minecraft": ">=${minimumMinecraftVersion}" | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -1,27 +1,27 @@ | ||||
| modLoader = "javafml" | ||||
| loaderVersion = "[31,)" | ||||
| loaderVersion = "[0,)" | ||||
|  | ||||
| authors = "${author}" | ||||
| license = "${license}" | ||||
| issueTrackerURL = "${issuesURL}" | ||||
|  | ||||
| [[mods]] | ||||
| modId = "customwindowtitle" | ||||
| modId = "${id}" | ||||
| version = "${version}" | ||||
| displayName = "${name}" | ||||
| description = "${description}" | ||||
| displayURL = "${sourcesURL}" | ||||
|  | ||||
| [[dependencies.customwindowtitle]] | ||||
| [[dependencies.${id}]] | ||||
| modId = "minecraft" | ||||
| mandatory = true | ||||
| versionRange = "[1.17,)" | ||||
| versionRange = "[${minimumMinecraftVersion},)" | ||||
| ordering = "NONE" | ||||
| side = "CLIENT" | ||||
|  | ||||
| [[dependencies.customwindowtitle]] | ||||
| [[dependencies.${id}]] | ||||
| modId = "forge" | ||||
| mandatory = true | ||||
| versionRange = "[31.2.45,)" | ||||
| versionRange = "[${minimumForgeVersion},)" | ||||
| ordering = "NONE" | ||||
| side = "CLIENT" | ||||
|   | ||||
| @@ -14,6 +14,10 @@ val modIssuesURL: String by project | ||||
| val minecraftVersion: String by project | ||||
| val mixinVersion: String by project | ||||
|  | ||||
| val minimumMinecraftVersion: String by project | ||||
| val minimumForgeVersion: String by project | ||||
| val minimumFabricVersion: String by project | ||||
|  | ||||
| val modNameStripped = modName.replace(" ", "") | ||||
| val jarVersion = "$minecraftVersion+v$modVersion" | ||||
|  | ||||
| @@ -101,8 +105,7 @@ subprojects { | ||||
| 	} | ||||
| 	 | ||||
| 	tasks.processResources { | ||||
| 		from(rootProject.sourceSets.main.get().resources) | ||||
| 		 | ||||
| 		inputs.property("id", modId) | ||||
| 		inputs.property("name", modName) | ||||
| 		inputs.property("description", modDescription) | ||||
| 		inputs.property("version", modVersion) | ||||
| @@ -110,6 +113,13 @@ subprojects { | ||||
| 		inputs.property("license", modLicense) | ||||
| 		inputs.property("sourcesURL", modSourcesURL) | ||||
| 		inputs.property("issuesURL", modIssuesURL) | ||||
| 		inputs.property("minimumMinecraftVersion", minimumMinecraftVersion) | ||||
| 		inputs.property("minimumForgeVersion", minimumForgeVersion) | ||||
| 		inputs.property("minimumFabricVersion", minimumFabricVersion) | ||||
| 		 | ||||
| 		from(rootProject.sourceSets.main.get().resources) { | ||||
| 			expand(inputs.properties) | ||||
| 		} | ||||
| 	} | ||||
| 	 | ||||
| 	tasks.jar { | ||||
| @@ -130,6 +140,10 @@ subprojects { | ||||
| 			) | ||||
| 		} | ||||
| 	} | ||||
| 	 | ||||
| 	tasks.test { | ||||
| 		onlyIf { false } | ||||
| 	} | ||||
| } | ||||
|  | ||||
| tasks.register("setupIdea") { | ||||
|   | ||||
| @@ -12,8 +12,14 @@ modIssuesURL=https://github.com/chylex/Minecraft-Window-Title/issues | ||||
| minecraftVersion=1.17.1 | ||||
| forgeVersion=37.0.75 | ||||
| fabricVersion=0.11.7 | ||||
| loomVersion=0.12 | ||||
| mixinVersion=0.8.4 | ||||
|  | ||||
| # Constraints | ||||
| minimumMinecraftVersion=1.17 | ||||
| minimumForgeVersion=31.2.45 | ||||
| minimumFabricVersion=0.7.2 | ||||
|  | ||||
| # Gradle | ||||
| org.gradle.jvmargs=-Xmx3G | ||||
| org.gradle.daemon=false | ||||
|   | ||||
| @@ -6,6 +6,12 @@ pluginManagement { | ||||
| 		maven(url = "https://maven.fabricmc.net/") { name = "Fabric" } | ||||
| 		maven(url = "https://repo.spongepowered.org/repository/maven-public/") { name = "Sponge Snapshots" } | ||||
| 	} | ||||
| 	 | ||||
| 	plugins { | ||||
| 		if (settings.extra.has("loomVersion")) { | ||||
| 			id("fabric-loom") version "${settings.extra["loomVersion"]}-SNAPSHOT" | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
|  | ||||
| if (settings.extra.has("forgeVersion")) { | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|     "pack": { | ||||
|         "description": "Custom Window Title", | ||||
|         "description": "${name}", | ||||
|         "pack_format": 5, | ||||
|         "_comment": "" | ||||
|     } | ||||
		Reference in New Issue
	
	Block a user