aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-05-09 16:11:01 +0200
committerLinnea Gräf <nea@nea.moe>2024-05-09 16:11:01 +0200
commitc78b1fb14719c820766facf470ca51dde44ec6cc (patch)
tree31dab05121c7bb150493dcde32b25dca0d95ecd8
parent7b60acb67b0e00a59e9042dd7d9ae9fd0586a437 (diff)
downloadveloxcaelo-c78b1fb14719c820766facf470ca51dde44ec6cc.tar.gz
veloxcaelo-c78b1fb14719c820766facf470ca51dde44ec6cc.tar.bz2
veloxcaelo-c78b1fb14719c820766facf470ca51dde44ec6cc.zip
Add README1.0.0
-rw-r--r--README.md11
-rw-r--r--build.gradle.kts36
2 files changed, 31 insertions, 16 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..298a962
--- /dev/null
+++ b/README.md
@@ -0,0 +1,11 @@
+# Velox Caelo
+
+> Basically just one patch to make your OptiFine a bit faster.
+
+This mod needs **[OptiFine](https://optifine.net/downloads** and Forge to do anything.
+
+Put OptiFine and this mod ([download here](https://github.com/nea89o/veloxcaelo/releases)) to your mod folder.
+
+
+
+
diff --git a/build.gradle.kts b/build.gradle.kts
index a5c7bb7..48d55d4 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -16,6 +16,18 @@ repositories {
maven("https://repo.polyfrost.cc/releases")
maven("https://maven.notenoughupdates.org/releases/")
mavenCentral()
+ maven("https://nea.moe/redir-repo") {
+ metadataSources { artifact() }
+ content {
+ includeGroup("optifine")
+ }
+ }
+}
+
+val optifineConfig by configurations.creating {
+}
+configurations.compileOnly {
+ extendsFrom(optifineConfig)
}
unimined.minecraft {
@@ -28,10 +40,16 @@ unimined.minecraft {
loader("11.15.1.2318-1.8.9")
mixinConfig("veloxcaelo.mixins.json")
}
+ mods {
+ remap(optifineConfig) {
+ namespace("official")
+ }
+ }
runs {
this.config("client") {
this.args.addAll(
listOf(
+ "--mods", optifineConfig.resolve().joinToString(",") { it.toRelativeString(this.workingDir) },
"--tweakClass", "org.spongepowered.asm.launch.MixinTweaker",
"--tweakClass", "io.github.notenoughupdates.moulconfig.tweaker.DevelopmentResourceTweaker",
)
@@ -45,20 +63,6 @@ unimined.minecraft {
}
-val downloadOptifine by tasks.creating {
- val outputFile = layout.buildDirectory.file("download/optifine.jar")
- outputs.file(outputFile)
- doLast {
- outputFile.get().asFile.parentFile.mkdirs()
- uri("https://optifine.net/download?f=preview_OptiFine_1.8.9_HD_U_M6_pre2.jar")
- .toURL()
- .openStream().use { input ->
- outputFile.get().asFile.outputStream().use { output ->
- input.copyTo(output)
- }
- }
- }
-}
val shadowModImpl by configurations.creating {
configurations.named("modImplementation").get().extendsFrom(this)
}
@@ -69,8 +73,8 @@ val shadowImpl by configurations.creating {
dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test")
shadowImpl("org.spongepowered:mixin:0.7.11-SNAPSHOT")
- shadowModImpl("org.notenoughupdates.moulconfig:legacy:3.0.0-beta.5")
- compileOnly(project.files(downloadOptifine))
+ shadowModImpl("org.notenoughupdates.moulconfig:legacy:3.0.0-beta.7")
+ optifineConfig("optifine:optifine:1.8.9")
compileOnly("org.jetbrains:annotations:24.1.0")
}