generated from KessokuTeaTime/Example-Mod
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
136 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) [`→` Modrinth](https://modrinth.com/mod/edgeless-chat-screen)</p> | ||
### <p align=right>[Main Branch `←`](https://github.com/KessokuTeaTime/Edgeless-Chat-Screen) [`→` CurseForge](https://www.curseforge.com/minecraft/mc-mods/edgeless-chat-screen) [`→` 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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
org.gradle.jvmargs=-Xmx2G | ||
|
||
loom.platform=forge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
9 changes: 3 additions & 6 deletions
9
src/main/java/band/kessokuteatime/edgelesschatscreen/EdgelessChatScreen.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file was deleted.
Oops, something went wrong.
File renamed without changes