setup minotaur

This commit is contained in:
nelle 2024-12-21 17:29:54 -07:00
parent ce09fc287a
commit 36565f2bd3
5 changed files with 32 additions and 11 deletions

View file

@ -5,6 +5,7 @@ plugins {
java java
id("org.jetbrains.kotlin.jvm") version "2.1.0" id("org.jetbrains.kotlin.jvm") version "2.1.0"
id("fabric-loom") version "1.9-SNAPSHOT" id("fabric-loom") version "1.9-SNAPSHOT"
id("com.modrinth.minotaur") version "2.+"
id("maven-publish") id("maven-publish")
} }
@ -41,16 +42,33 @@ dependencies {
modImplementation("net.fabricmc.fabric-api:fabric-api:${project.property("fabric_version")}") modImplementation("net.fabricmc.fabric-api:fabric-api:${project.property("fabric_version")}")
} }
modrinth {
token.set(System.getenv("MODRINTH_TOKEN"))
projectId.set("Hxo4BmMk")
versionNumber.set(project.property("mod_version").toString())
versionType.set("release")
uploadFile.set(tasks.jar)
gameVersions.addAll("1.20.5", "1.20.6", "1.21", "1.21.1")
loaders.addAll("fabric", "quilt")
dependencies {
// The scope can be `required`, `optional`, `incompatible`, or `embedded`
// The type can either be `project` or `version`
required.project("fabric-api")
required.project("fabric-language-kotlin")
}
syncBodyFrom = rootProject.file("README.md").readText()
}
tasks.processResources { tasks.processResources {
inputs.property("version", project.version) inputs.property("version", project.property("mod_version"))
inputs.property("minecraft_version", "1.20.6") inputs.property("minecraft_version", project.property("minecraft_version"))
inputs.property("loader_version", project.property("loader_version")) inputs.property("loader_version", project.property("loader_version"))
filteringCharset = "UTF-8" filteringCharset = "UTF-8"
filesMatching("fabric.mod.json") { filesMatching("fabric.mod.json") {
expand( expand(
"version" to project.version, "version" to project.property("mod_version"),
"minecraft_version" to "1.20.6", "minecraft_version" to project.property("minecraft_version"),
"loader_version" to project.property("loader_version"), "loader_version" to project.property("loader_version"),
"kotlin_loader_version" to project.property("kotlin_loader_version"), "kotlin_loader_version" to project.property("kotlin_loader_version"),
) )

View file

@ -9,7 +9,7 @@ org.gradle.jvmargs=-Xmx1G
kotlin_loader_version=1.13.0+kotlin.2.1.0 kotlin_loader_version=1.13.0+kotlin.2.1.0
# Mod Properties # Mod Properties
mod_version = 0.0.1-DEV mod_version = 1.0.0
maven_group = observer.nelle maven_group = observer.nelle
archives_base_name = roses_mod archives_base_name = roses_mod

View file

@ -37,6 +37,6 @@
"fabricloader": ">=${loader_version}", "fabricloader": ">=${loader_version}",
"fabric-language-kotlin": ">=${kotlin_loader_version}", "fabric-language-kotlin": ">=${kotlin_loader_version}",
"fabric": "*", "fabric": "*",
"minecraft": "${minecraft_version}" "minecraft": "1.20.5-1.21.1"
} }
} }

View file

@ -1,12 +1,17 @@
# Roses Mod # Roses Mod
## NOTE: all previous versions of minecraft probably have strange bugs in them, due to how i originally built the mod, i am currently rewriting the mod and going to publish builds for each version
> **Note**
> The mod has been rewritten, previous versions have some bugs and not all bug fixes or features have been backported,
> I will be backporting the mod after this rewrite back as far as I can while being sane.
>
> It's also now based on fabric instead of quilt, as the kotlin support is more frequent.
This mod brings back the classic roses and other classic flowers to minecraft, without replacing any newer flower types. This mod brings back the classic roses and other classic flowers to minecraft, without replacing any newer flower types.
Features: Features:
- Roses and Potted Roses - Roses and Potted Roses
- Cyan Flowers (Potted Cyan Flowers)
- Rose Bushes drop roses - Rose Bushes drop roses
- 2x2 Roses in a crafting table will output a rose bush - 2x2 Roses in a crafting table will output a rose bush
- Cyan Flowers
- Bees can pollinate all flowers - Bees can pollinate all flowers

View file

@ -32,7 +32,5 @@ plugins {
// Include the `app` and `utils` subprojects in the build. // Include the `app` and `utils` subprojects in the build.
// If there are changes in only one of the projects, Gradle will rebuild only the one that has changed. // If there are changes in only one of the projects, Gradle will rebuild only the one that has changed.
// Learn more about structuring projects with Gradle - https://docs.gradle.org/8.7/userguide/multi_project_builds.html // Learn more about structuring projects with Gradle - https://docs.gradle.org/8.7/userguide/multi_project_builds.html
// include(":app")
// include(":utils")
include(":MC1.20.6") include(":MC1.20.6")
include("legacy") include(":legacy")