-
Notifications
You must be signed in to change notification settings - Fork 25
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 b1b3018
Showing
488 changed files
with
10,658 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,40 @@ | ||
# Automatically build the project and run any configured tests for every push | ||
# and submitted pull request. This can help catch issues that only occur on | ||
# certain platforms or Java versions, and provides a first line of defence | ||
# against bad commits. | ||
|
||
name: build | ||
on: [pull_request, push] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
# Use these Java versions | ||
java: [ | ||
17, # Current Java LTS & minimum supported by Minecraft | ||
] | ||
# and run on both Linux and Windows | ||
os: [ubuntu-22.04, windows-2022] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v3 | ||
- name: validate gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
- name: setup jdk ${{ matrix.java }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'microsoft' | ||
- name: make gradle wrapper executable | ||
if: ${{ runner.os != 'Windows' }} | ||
run: chmod +x ./gradlew | ||
- name: build | ||
run: ./gradlew build | ||
- name: capture build artifacts | ||
if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Artifacts | ||
path: build/libs/ |
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,25 @@ | ||
|
||
Installation information | ||
======= | ||
|
||
This template repository can be directly cloned to get you started with a new | ||
mod. Simply create a new repository cloned from this one, by following the | ||
instructions provided by [GitHub](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template). | ||
|
||
Once you have your clone, simply open the repository in the IDE of your choice. The usual recommendation for an IDE is either IntelliJ IDEA or Eclipse. | ||
|
||
If at any point you are missing libraries in your IDE, or you've run into problems you can | ||
run `gradlew --refresh-dependencies` to refresh the local cache. `gradlew clean` to reset everything | ||
{this does not affect your code} and then start the process again. | ||
|
||
Mapping Names: | ||
============ | ||
By default, the MDK is configured to use the official mapping names from Mojang for methods and fields | ||
in the Minecraft codebase. These names are covered by a specific license. All modders should be aware of this | ||
license. For the latest license text, refer to the mapping file itself, or the reference copy here: | ||
https://github.com/NeoForged/NeoForm/blob/main/Mojang.md | ||
|
||
Additional Resources: | ||
========== | ||
Community Documentation: https://docs.neoforged.net/ | ||
NeoForged Discord: https://discord.neoforged.net/ |
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 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 NeoForged project | ||
|
||
This license applies to the template files as supplied by github.com/NeoForged/MDK | ||
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,141 @@ | ||
plugins { | ||
id 'java-library' | ||
id 'eclipse' | ||
id 'idea' | ||
id 'maven-publish' | ||
id 'net.neoforged.moddev' version '1.0.0' | ||
} | ||
|
||
tasks.named('wrapper', Wrapper).configure { | ||
distributionType = Wrapper.DistributionType.BIN | ||
} | ||
|
||
version = mod_version | ||
group = mod_group_id | ||
|
||
base { | ||
archivesName = mod_id | ||
} | ||
|
||
java.toolchain.languageVersion = JavaLanguageVersion.of(21) | ||
|
||
|
||
neoForge { | ||
version = project.neo_version | ||
|
||
accessTransformers { | ||
file('src/main/resources/META-INF/accesstransformer.cfg') | ||
} | ||
|
||
parchment { | ||
mappingsVersion = project.parchment_mappings_version | ||
minecraftVersion = project.parchment_minecraft_version | ||
} | ||
runs { | ||
client { | ||
client() | ||
systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id | ||
} | ||
|
||
server { | ||
server() | ||
programArgument '--nogui' | ||
systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id | ||
} | ||
|
||
gameTestServer { | ||
type = "gameTestServer" | ||
systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id | ||
} | ||
|
||
data { | ||
data() | ||
programArguments.addAll '--mod', project.mod_id, '--all', '--output', file('src/generated/resources/').getAbsolutePath(), '--existing', file('src/main/resources/').getAbsolutePath() | ||
} | ||
|
||
configureEach { | ||
systemProperty 'forge.logging.markers', 'REGISTRIES' | ||
logLevel = org.slf4j.event.Level.DEBUG | ||
} | ||
} | ||
|
||
mods { | ||
"${mod_id}" { | ||
sourceSet(sourceSets.main) | ||
} | ||
} | ||
} | ||
|
||
sourceSets.main.resources { srcDir 'src/generated/resources' } | ||
configurations { | ||
runtimeClasspath.extendsFrom localRuntime | ||
} | ||
|
||
repositories { | ||
flatDir { | ||
dir 'src/main/resources/META-INF/jar' | ||
} | ||
maven { | ||
name = "BlameJared" | ||
url = "https://maven.blamejared.com" | ||
} | ||
maven { url "https://maven.ryanliptak.com/" } | ||
} | ||
|
||
dependencies { | ||
implementation "vectorwing.farmersdelight:farmersdelight" | ||
//implementation "maven.modrinth:farmers-delight:${project.delight_version}" | ||
|
||
compileOnly "squeek.appleskin:appleskin-neoforge:${appleskin_version}:api" | ||
runtimeOnly "squeek.appleskin:appleskin-neoforge:${appleskin_version}" | ||
|
||
compileOnly "mezz.jei:jei-${minecraft_version}-common-api:${jei_version}" | ||
compileOnly "mezz.jei:jei-${minecraft_version}-neoforge-api:${jei_version}" | ||
|
||
localRuntime "mezz.jei:jei-${minecraft_version}-neoforge:${jei_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/neoforge.mods.toml']) { | ||
expand replaceProperties | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
register('mavenJava', MavenPublication) { | ||
from components.java | ||
} | ||
} | ||
repositories { | ||
maven { | ||
url "file://${project.projectDir}/repo" | ||
} | ||
} | ||
} | ||
|
||
tasks.withType(JavaCompile).configureEach { | ||
options.encoding = 'UTF-8' | ||
} | ||
|
||
idea { | ||
module { | ||
downloadSources = true | ||
downloadJavadoc = true | ||
} | ||
} |
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 @@ | ||
|
||
org.gradle.jvmargs=-Xmx1G | ||
org.gradle.daemon=true | ||
org.gradle.parallel=true | ||
org.gradle.caching=true | ||
org.gradle.configuration-cache=true | ||
|
||
parchment_minecraft_version=1.21 | ||
parchment_mappings_version=2024.07.07 | ||
minecraft_version=1.21 | ||
minecraft_version_range=[1.21,1.21.1) | ||
neo_version=21.0.113-beta | ||
neo_version_range=[21.0.0-beta,) | ||
loader_version_range=[4,) | ||
|
||
mod_id=expandeddelight | ||
mod_name=Expanded Delight | ||
mod_license=MIT | ||
mod_version=0.1.0 | ||
mod_group_id=ianm1647.expandeddelight | ||
mod_authors=ianm1647 | ||
mod_description=Gradually expands upon the already amazing Farmers Delight | ||
|
||
jei_version=19.5.0.31 | ||
appleskin_version=mc1.21-3.0.4 | ||
delight_version= |
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.8-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.