Skip to content

Commit

Permalink
port to neoforge
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Apr 6, 2024
1 parent a66f7f9 commit 1ba35e5
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 23 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
### Changes

- Port to Forge
- Port to NeoForge
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
### <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 for Forge `1.20.x`
### Edgeless Chat Screen for NeoForge `1.20.x`
11 changes: 2 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,15 @@ 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()
maven { url = "https://maven.neoforged.net/releases/" }
}

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

java {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
org.gradle.jvmargs=-Xmx2G

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

minecraft = "1.20.1"
yarn = "1.20.1+build.10"
forge = "1.20.1-47.2.21"
minecraft = "1.20.4"
yarn = "1.20.4+build.3"
neoforge = "20.4.219"
architectury-loom = "1.5-SNAPSHOT"
modpublisher = "2.1.0"

Expand All @@ -16,13 +16,13 @@ id-curseforge = "998249"

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

[libraries]
minecraft = { group = "com.mojang", name = "minecraft", version.ref = "minecraft" }
yarn = { group = "net.fabricmc", name = "yarn", version.ref = "yarn" }
forge = { group = "net.minecraftforge", name = "forge", version.ref = "forge" }
neoforge = { group = "net.neoforged", name = "neoforge", version.ref = "neoforge" }

[plugins]
architectury-loom = { id = "dev.architectury.loom", version.ref = "architectury-loom" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package band.kessokuteatime.edgelesschatscreen;

import net.minecraftforge.fml.common.Mod;
import net.neoforged.fml.common.Mod;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
11 changes: 7 additions & 4 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
modLoader = "javafml"
loaderVersion = "[43,)"
loaderVersion = "[1,)"
license = "GPL-3.0"

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

[[mixins]]
config = "edgelesschatscreen.mixins.json"

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

Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/pack.mcmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"pack": {
"description": "Edgeless Chat Screen",
"pack_format": 10
}
}

0 comments on commit 1ba35e5

Please sign in to comment.