-
Notifications
You must be signed in to change notification settings - Fork 2
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
0 parents
commit 10b00da
Showing
32 changed files
with
956 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Disable autocrlf on generated files, they always generate with LF | ||
# Add any extra files or paths here to make git stop saying they | ||
# are changed when only line endings change. | ||
src/generated/**/.cache/cache text eol=lf | ||
src/generated/**/*.json text eol=lf |
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,24 @@ | ||
name: Build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
|
||
- name: Setup JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Build with Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
arguments: build |
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,26 @@ | ||
# eclipse | ||
bin | ||
*.launch | ||
.settings | ||
.metadata | ||
.classpath | ||
.project | ||
|
||
# idea | ||
out | ||
*.ipr | ||
*.iws | ||
*.iml | ||
.idea | ||
|
||
# gradle | ||
build | ||
.gradle | ||
|
||
# other | ||
eclipse | ||
run | ||
runs | ||
run-data | ||
|
||
repo |
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,72 @@ | ||
plugins { | ||
id 'java-library' | ||
id 'eclipse' | ||
id 'idea' | ||
id 'maven-publish' | ||
id 'net.neoforged.gradle.userdev' version '7.0.97' | ||
} | ||
|
||
version = "${mod_version}+${minecraft_version}-Neo" | ||
group = mod_group_id | ||
|
||
base { | ||
archivesName = mod_name | ||
} | ||
|
||
java.toolchain.languageVersion = JavaLanguageVersion.of(17) | ||
|
||
runs { | ||
configureEach { | ||
systemProperty 'forge.logging.markers', 'REGISTRIES' | ||
|
||
systemProperty 'forge.logging.console.level', 'debug' | ||
|
||
modSource project.sourceSets.main | ||
} | ||
|
||
client { | ||
systemProperty 'forge.enabledGameTestNamespaces', project.mod_id | ||
} | ||
} | ||
|
||
sourceSets.main.resources { srcDir 'src/generated/resources' } | ||
|
||
repositories { | ||
mavenLocal() | ||
} | ||
|
||
dependencies { | ||
implementation "net.neoforged:neoforge:${neo_version}" | ||
} | ||
|
||
tasks.withType(ProcessResources).configureEach { | ||
var replaceProperties = [ | ||
minecraft_version : minecraft_version, minecraft_version_range: minecraft_version_range, | ||
neo_version : neo_version, neo_version_range: neo_version_range, | ||
loader_version_range: loader_version_range, | ||
mod_id : mod_id, mod_name: mod_name, mod_license: mod_license, mod_version: mod_version, | ||
mod_authors : mod_authors, mod_description: mod_description, | ||
] | ||
inputs.properties replaceProperties | ||
|
||
filesMatching(['META-INF/mods.toml']) { | ||
expand replaceProperties + [project: project] | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
register('mavenJava', MavenPublication) { | ||
from components.java | ||
} | ||
} | ||
repositories { | ||
maven { | ||
url "file://${project.projectDir}/repo" | ||
} | ||
} | ||
} | ||
|
||
tasks.withType(JavaCompile).configureEach { | ||
options.encoding = 'UTF-8' | ||
} |
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,21 @@ | ||
org.gradle.daemon=false | ||
org.gradle.debug=false | ||
|
||
neogradle.subsystems.parchment.minecraftVersion=1.20.3 | ||
neogradle.subsystems.parchment.mappingsVersion=2023.12.31 | ||
|
||
minecraft_version=1.20.4 | ||
minecraft_version_range=[1.20.4,1.21) | ||
neo_version=20.4.214 | ||
neo_version_range=[20.4,) | ||
loader_version_range=[2,) | ||
|
||
## Mod Properties | ||
|
||
mod_id=quad | ||
mod_name=Quad | ||
mod_license=MIT | ||
mod_version=1.1.3 | ||
mod_group_id=io.github.lieonlion.quad | ||
mod_authors=LieOnLion | ||
mod_description=Giving power with Tags\nNew tags for Items to give more power and customisation to the player |
Binary file not shown.
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,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.