diff --git a/README.MD b/README.MD new file mode 100644 index 0000000..1e586e6 --- /dev/null +++ b/README.MD @@ -0,0 +1,19 @@ +# ShaderAPI + +A simple mod that allows you to download and apply shader packs from the internet. + +## Usage + +To use this mod, you need to have the [Iris Shaders](https://github.com/IrisShaders/Iris) mod installed. + +Once you have Iris installed, you can download and apply shader packs by sending a request to the server. +(The server will need to have an implementation of the `ShaderAPI` Serverside. An example for PaperMC can be found [here](https://github.com/Liams-Services/ShaderAPI-Paper)) + + +## Building + +To build this mod, you need to have [Gradle](https://gradle.org/) installed. + +1. Clone the repository +2. Open the project in your IDE +3. Run the `gradle chiseledBuild` task to build the mod for all versions diff --git a/build.gradle.kts b/build.gradle.kts index b3333d4..ef1a98b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,6 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.tasks.KotlinCompile +import java.util.* plugins { kotlin("jvm") version "2.0.20" @@ -7,7 +8,11 @@ plugins { id("maven-publish") } -version = project.property("mod_version") as String +val dailyVersion = Calendar.getInstance(TimeZone.getTimeZone("Europe/Berlin")).run { + "${get(Calendar.YEAR)}.${get(Calendar.MONTH) + 1}.${get(Calendar.DAY_OF_MONTH)}" +} + +version = dailyVersion + "-" + project.property("minecraft_version") as String group = project.property("maven_group") as String base { diff --git a/gradle.properties b/gradle.properties index 82e7ced..9d628b2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,7 +7,6 @@ yarn_mappings=[VERSIONED] loader_version=0.16.3 kotlin_loader_version=1.12.1+kotlin.2.0.20 # Mod Properties -mod_version=[VERSIONED] maven_group=com.liamxsage archives_base_name=shaderapi # Dependencies diff --git a/versions/1.21.1/gradle.properties b/versions/1.21.1/gradle.properties index 02487d1..de7461e 100644 --- a/versions/1.21.1/gradle.properties +++ b/versions/1.21.1/gradle.properties @@ -1,4 +1,3 @@ minecraft_version=1.21.1 yarn_mappings=1.21.1+build.3 -mod_version=1.21.1 fabric_version=0.103.0+1.21.1 diff --git a/versions/1.21/gradle.properties b/versions/1.21/gradle.properties index a8fadae..1b41a48 100644 --- a/versions/1.21/gradle.properties +++ b/versions/1.21/gradle.properties @@ -1,4 +1,3 @@ minecraft_version=1.21 yarn_mappings=1.21+build.3 -mod_version=1.21 fabric_version=0.102.0+1.21