Skip to content

Commit

Permalink
port to forge
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Apr 6, 2024
1 parent c6e57da commit a66f7f9
Show file tree
Hide file tree
Showing 12 changed files with 136 additions and 168 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
### Fixes
### Changes

- **Fixed** [#4.](https://github.com/KessokuTeaTime/Edgeless-Chat-Screen/issues/4)
- Port to Forge
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
### <p align=right>[`` CurseForge](https://www.curseforge.com/minecraft/mc-mods/edgeless-chat-screen)&ensp;[`` Modrinth](https://modrinth.com/mod/edgeless-chat-screen)</p>
### <p align=right>[Main Branch ``](https://github.com/KessokuTeaTime/Edgeless-Chat-Screen)&emsp;[`` CurseForge](https://www.curseforge.com/minecraft/mc-mods/edgeless-chat-screen)&ensp;[`` Modrinth](https://modrinth.com/mod/bounced)</p>

# Edgeless Chat Screen

An extremely simple mod that makes your chat screen edgeless just like below!

![Contrast](https://github.com/KessokuTeaTime/Edgeless-Chat-Screen/blob/artwork/content/contrast.png)

## License

**Edgeless Chat Screen** is licensed under the **[GNU General Public License v3.](LICENSE)**
### Edgeless Chat Screen for Forge `1.20.x`
80 changes: 80 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
class Display {
String name
String loader
String version
}

plugins {
id "maven-publish"
alias(libs.plugins.architectury.loom)
alias(libs.plugins.modpublisher)
}

Display display = new Display()

group = libs.versions.maven.group.get()
version = "${libs.versions.mod.get()}-${libs.versions.loader.get()}${libs.versions.minecraft.get()}"
base.archivesName = libs.versions.archives.name.get()

display.name = libs.versions.display.name.get()
display.loader = libs.versions.display.loader.get()
display.version = libs.versions.display.version.get()

loom {
forge {
mixinConfigs = [
"edgelesschatscreen.mixins.json"
]
}
}

repositories {
mavenCentral()
}

dependencies {
minecraft(libs.minecraft)
mappings(libs.yarn) { artifact { classifier = "v2" } }
forge(libs.forge)
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

withSourcesJar()
}

tasks {
processResources {
filesMatching("META-INF/mods.toml") {
expand "version": libs.versions.mod.get()
}
}

jar {
from("LICENSE")
}
}

publisher {
apiKeys {
modrinth(System.getenv("MODRINTH_TOKEN"))
curseforge(System.getenv("CURSEFORGE_TOKEN"))
}

setModrinthID(libs.versions.id.modrinth)
setCurseID(libs.versions.id.curseforge)

setVersionType("release")
setVersion(project.version.toString())
setGameVersions("1.20", "1.20.1", "1.20.2", "1.20.3", "1.20.4")
setLoaders("neoforge")

setDisplayName("${display.name} ${libs.versions.mod.get()} for ${display.loader} ${display.version}")

setArtifact(remapJar)
addAdditionalFile(remapSourcesJar)

setChangelog(file("CHANGELOG.md"))
}
89 changes: 0 additions & 89 deletions build.gradle.kts

This file was deleted.

3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
org.gradle.jvmargs=-Xmx2G

loom.platform=forge
21 changes: 8 additions & 13 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
maven-group = "band.kessokuteatime"
archives-name = "edgelesschatscreen"
mod = "1.1.1"
loader = "fabric"
loader = "forge"

minecraft = "1.20"
yarn = "1.20+build.1"
fabric-loader = "0.15.9"
fabric-api = "0.83.0+1.20"
fabric-loom = "1.6-SNAPSHOT"
minecraft = "1.20.1"
yarn = "1.20.1+build.10"
forge = "1.20.1-47.2.21"
architectury-loom = "1.5-SNAPSHOT"
modpublisher = "2.1.0"

# id
Expand All @@ -17,18 +16,14 @@ id-curseforge = "998249"

# display
display-name = "Edgeless Chat Screen"
display-loader = "Fabric"
display-loader = "Forge"
display-version = "1.20.x"

[libraries]
minecraft = { group = "com.mojang", name = "minecraft", version.ref = "minecraft" }
yarn = { group = "net.fabricmc", name = "yarn", version.ref = "yarn" }
fabric-loader = { group = "net.fabricmc", name = "fabric-loader", version.ref = "fabric-loader" }
fabric-api = { group = "net.fabricmc.fabric-api", name = "fabric-api", version.ref = "fabric-api" }
forge = { group = "net.minecraftforge", name = "forge", version.ref = "forge" }

[plugins]
fabric-loom = { id = "fabric-loom", version.ref = "fabric-loom" }
architectury-loom = { id = "dev.architectury.loom", version.ref = "architectury-loom" }
modpublisher = { id = "com.hypherionmc.modutils.modpublisher", version.ref = "modpublisher" }

[bundles]
fabric = ["fabric-loader", "fabric-api"]
10 changes: 10 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pluginManagement {
repositories {
maven { url = "https://maven.fabricmc.net/" }
maven { url = "https://maven.architectury.dev/" }
maven { url = "https://maven.neoforged.net/releases/" }
maven { url = "https://maven.firstdark.dev/releases" } // modpublisher
mavenCentral()
gradlePluginPortal()
}
}
11 changes: 0 additions & 11 deletions settings.gradle.kts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package band.kessokuteatime.edgelesschatscreen;

import net.fabricmc.api.ClientModInitializer;
import net.minecraftforge.fml.common.Mod;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class EdgelessChatScreen implements ClientModInitializer {
@Mod(EdgelessChatScreen.ID)
public class EdgelessChatScreen {
public static final String NAME = "Edgeless Chat Screen", ID = "edgelesschatscreen";
public static final Logger LOGGER = LoggerFactory.getLogger(ID);

@Override
public void onInitializeClient() {
}
}
28 changes: 28 additions & 0 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
modLoader = "javafml"
loaderVersion = "[43,)"
license = "GPL-3.0"

[[mods]]
modId = "edgelesschatscreen"
version = "${version}"
displayName = "Stenographer"
displayURL = "https://github.com/KessokuTeaTime/Edgeless-Chat-Screen"
authors = "Kessoku Tea Time"
description = '''
Why not having an edgeless chat screen?
'''
logoFile = "icon.png"

[[dependencies.edgelesschatscreen]]
modId = "forge"
mandatory = true
versionRange = "[43,)"
ordering = "NONE"
side = "BOTH"

[[dependencies.edgelesschatscreen]]
modId = "minecraft"
mandatory = true
versionRange = "[1.20,)"
ordering = "NONE"
side = "BOTH"
37 changes: 0 additions & 37 deletions src/main/resources/fabric.mod.json

This file was deleted.

File renamed without changes

0 comments on commit a66f7f9

Please sign in to comment.