Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
uses: ZephByte/mod-workflows/.github/workflows/build.yml@v1
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
permissions:
contents: write
uses: ZephByte/mod-workflows/.github/workflows/release.yml@v1
with:
release-name: Scaled Dragon Fight
secrets: inherit
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Changelog

## Scaled Dragon Fight - v2.0.0

New config format and one release for Minecraft 26.1, 26.2, and 26.3.

### Changes
- **New TOML config** - settings now live in `config/scaleddragonfight.toml`, grouped into sections with the default value and a description above each setting
- **Automatic migration** - an existing `scaleddragonfight.properties` is imported into the new file on first start and kept as `scaleddragonfight.properties.bak`. The first operator to join is told what happened
- **Countdown per dimension** - the XP bar countdown can be turned on or off separately for the Overworld, the Nether, and The End, replacing the single countdown toggle. A disabled countdown in an old config stays off everywhere
- **Patch versions** - each jar now loads on every patch of its Minecraft version, e.g. the 26.1 jar works on 26.1.1 and 26.1.2

### Requirements
| Minecraft | Fabric Loader | Fabric API | Fabric Language Kotlin |
|---|---|---|---|
| 26.3 | 0.20.1+ | 0.166.2+26.3 | 1.13.9+kotlin.2.3.10 |
| 26.2 | 0.20.1+ | 0.161.0+26.2 | 1.13.9+kotlin.2.3.10 |
| 26.1 - 26.1.2 | 0.18.4+ | 0.144.0+26.1 | 1.13.9+kotlin.2.3.10 |
26 changes: 26 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
kotlin("jvm") version "2.3.0"
id("net.fabricmc.fabric-loom") version "1.15-SNAPSHOT"
id("maven-publish")
id("me.modmuss50.mod-publish-plugin") version "0.8.4"
}

version = "${project.property("mod_version")}+${stonecutter.current.version}"
Expand Down Expand Up @@ -110,3 +111,28 @@ publishing {
// retrieving dependencies.
}
}

val modVersion = project.version as String
val gameVersionList = (project.property("modrinth_versions") as String).split(",").map { it.trim() }

publishMods {
file.set(tasks.jar.flatMap { it.archiveFile })
version.set(modVersion)
changelog.set(providers.environmentVariable("CHANGELOG").orElse(""))
type.set(
when {
modVersion.contains("-alpha") -> ALPHA
modVersion.contains("-beta") -> BETA
else -> STABLE
}
)
modLoaders.add("fabric")

modrinth {
accessToken.set(providers.environmentVariable("MODRINTH_TOKEN").orElse(""))
projectId.set(providers.gradleProperty("modrinth_id").orElse(""))
minecraftVersions.addAll(gameVersionList)
requires { slug.set("fabric-api") }
requires { slug.set("fabric-language-kotlin") }
}
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ org.gradle.jvmargs=-Xmx1G
mod_version=v2.0.0
maven_group=com.zephbyte
archives_base_name=ScaledDragonFight
modrinth_id=3HbLTpGS

# Night Config
night_config_version=3.8.1
1 change: 1 addition & 0 deletions versions/26.1/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# check these on https://modmuss50.me/fabric.html
minecraft_version=26.1
modrinth_versions=26.1,26.1.1,26.1.2
minecraft_dependency=>=26.1 <26.2
loader_version=0.18.4
kotlin_loader_version=1.13.9+kotlin.2.3.10
Expand Down
1 change: 1 addition & 0 deletions versions/26.2/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# check these on https://modmuss50.me/fabric.html
minecraft_version=26.2
modrinth_versions=26.2
minecraft_dependency=>=26.2 <26.3
loader_version=0.20.1
kotlin_loader_version=1.13.9+kotlin.2.3.10
Expand Down
1 change: 1 addition & 0 deletions versions/26.3/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# check these on https://modmuss50.me/fabric.html
minecraft_version=26.3
modrinth_versions=26.3
minecraft_dependency=>=26.3 <26.4
loader_version=0.20.1
kotlin_loader_version=1.13.9+kotlin.2.3.10
Expand Down
Loading