Skip to content

Commit

Permalink
Add Forge support
Browse files Browse the repository at this point in the history
  • Loading branch information
EnnuiL committed Jan 3, 2025
1 parent 0fdedcd commit 41fdef1
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 14 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

def ENV = System.getenv()

version = ENV.TAG ?: "0.0.0-development${(!ENV.TAG && ENV.BUILD_NUMBER) ? "-build.${ENV.BUILD_NUMBER}" : ''}"
version = ENV.TAG ?: "0.0.0-development${ENV.BUILD_NUMBER ? "-build.${ENV.BUILD_NUMBER}" : ''}"
group = project.maven_group

base {
Expand Down Expand Up @@ -49,7 +49,7 @@ processResources {
filteringCharset 'UTF-8'
inputs.properties 'version': version

filesMatching(['fabric.mod.json', 'quilt.mod.json', 'META-INF/neoforge.mods.toml']) {
filesMatching(['fabric.mod.json', 'quilt.mod.json', 'META-INF/neoforge.mods.toml', 'META-INF/mods.toml']) {
expand 'version': version
}
}
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
minecraft = "1.21.1"
quilt_mappings = "1.21.1+build.3"

quilt_loom = "1.8.4"
quilt_loader = "0.26.4"
quilt_loom = "1.8.5"
quilt_loader = "0.27.0"
shadow = "8.3.3"

quilt_config = "1.3.2"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
3 changes: 1 addition & 2 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
13 changes: 13 additions & 0 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
modLoader = "lowcodefml"
loaderVersion = "*"
license = "All rights reserved"

[[mods]]
modId = "wrench_wrapper"
version = "${version}"
displayName = "Wrench Wrapper"
logoFile = "assets/wrench_wrapper/icon.png"
authors = "Ennui Langeweile"
description = """
A handy wrapper for your Quilt Config!
"""
7 changes: 0 additions & 7 deletions src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,3 @@ authors = "Ennui Langeweile"
description = """
A handy wrapper for your Quilt Config!
"""

[[dependencies.wrench_wrapper]]
modId = "neoforge"
type = "required"
versionRange = "[21.0.0-beta,)"
ordering = "NONE"
side = "BOTH"
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": "This makes Forge happy",
"pack_format": 15
}
}

0 comments on commit 41fdef1

Please sign in to comment.