Skip to content

Commit 286a1ea

Browse files
committed
add mod files
1 parent 87940b0 commit 286a1ea

File tree

1,322 files changed

+20025
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,322 files changed

+20025
-2
lines changed

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Disable autocrlf on generated files, they always generate with LF
2+
# Add any extra files or paths here to make git stop saying they
3+
# are changed when only line endings change.
4+
src/generated/**/.cache/cache text eol=lf
5+
src/generated/**/*.json text eol=lf

.gitignore

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# eclipse
2+
bin
3+
*.launch
4+
.settings
5+
.metadata
6+
.classpath
7+
.project
8+
9+
# idea
10+
out
11+
*.ipr
12+
*.iws
13+
*.iml
14+
.idea
15+
16+
# gradle
17+
build
18+
.gradle
19+
20+
# other
21+
eclipse
22+
run
23+
libs
24+
resources/__pycache__
25+
26+
# Files from Forge MDK
27+
forge*changelog.txt

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 eerussianguy
3+
Copyright (c) 2022 eerussianguy
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
# Beneath
2-
A nether addon for TFC
2+
3+
Beneath makes food in TFC work more like it did in Classic (or in 2012). Food weight and decay are represented as fractions and are shown as bars on items. Food decay can also be cut off of items by right clicking them with a knife in your inventory.
4+
5+
This mod requires [TerraFirmaCraft for 1.18+](https://www.curseforge.com/minecraft/mc-mods/tfcraft/)
6+
7+
This mod is under the MIT License. This means that you can include it in your modpack without asking my permission.
8+
9+
TFC, which this mod is an addon for, is under the EUPL license. When using portions of this mod, be aware that the TFC license may apply.

build.gradle

+147
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
buildscript {
2+
repositories {
3+
// These repositories are only for Gradle plugins, put any other repositories in the repository block further below
4+
maven { url = 'https://maven.minecraftforge.net' }
5+
mavenCentral()
6+
maven {
7+
// Parchment
8+
url = "https://maven.parchmentmc.org"
9+
}
10+
maven {
11+
url "https://repo.spongepowered.org/repository/maven-public/"
12+
content { includeGroup "org.spongepowered" }
13+
}
14+
}
15+
dependencies {
16+
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
17+
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
18+
classpath group: 'org.parchmentmc', name: 'librarian', version: '1.+', changing: true
19+
}
20+
}
21+
22+
23+
apply plugin: 'net.minecraftforge.gradle'
24+
// Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.
25+
apply plugin: 'idea'
26+
apply plugin: 'maven-publish'
27+
apply plugin: 'org.parchmentmc.librarian.forgegradle'
28+
apply plugin: 'org.spongepowered.mixin'
29+
30+
31+
version = '1.0.0'
32+
group = 'com.eerussianguy.beneath' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
33+
archivesBaseName = 'beneath'
34+
35+
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
36+
37+
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
38+
minecraft {
39+
mappings channel: 'parchment', version: '2022.03.13-1.18.2'
40+
//mappings channel: 'official', version: '1.18.2'
41+
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Currently, this location cannot be changed from the default.
42+
43+
runs {
44+
client {
45+
workingDirectory project.file('run')
46+
args '-mixin.config=beneath.mixins.json'
47+
48+
property 'mixin.env.remapRefMap', 'true'
49+
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
50+
property 'forge.logging.markers', 'REGISTRIES'
51+
property 'forge.logging.console.level', 'debug'
52+
53+
mods {
54+
beneath {
55+
source sourceSets.main
56+
}
57+
}
58+
}
59+
60+
server {
61+
workingDirectory project.file('run')
62+
args '-mixin.config=beneath.mixins.json', '--nogui'
63+
64+
property 'mixin.env.remapRefMap', 'true'
65+
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
66+
property 'forge.logging.markers', 'REGISTRIES'
67+
property 'forge.logging.console.level', 'debug'
68+
69+
mods {
70+
beneath {
71+
source sourceSets.main
72+
}
73+
}
74+
}
75+
}
76+
}
77+
78+
// Include resources generated by data generators.
79+
sourceSets.main.resources { srcDir 'src/generated/resources' }
80+
81+
repositories {
82+
mavenCentral()
83+
maven {
84+
// JEI
85+
name = "Progwml6 maven"
86+
url = "https://dvs1.progwml6.com/files/maven/"
87+
}
88+
maven {
89+
// Mirror for JEI
90+
name = "ModMaven"
91+
url = "https://modmaven.k-4u.nl"
92+
}
93+
maven {
94+
url 'https://www.cursemaven.com'
95+
content {
96+
includeGroup "curse.maven"
97+
}
98+
}
99+
100+
flatDir {
101+
dir 'libs'
102+
}
103+
}
104+
105+
dependencies {
106+
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
107+
implementation fg.deobf("curse.maven:tfc-302973:${tfc_identifier}")
108+
109+
110+
if (System.getProperty("idea.sync.active") != "true") {
111+
annotationProcessor "org.spongepowered:mixin:${mixin_version}:processor"
112+
}
113+
114+
// Patchouli
115+
implementation fg.deobf("vazkii.patchouli:Patchouli:${patchouli_version}")
116+
117+
// JEI
118+
compileOnly fg.deobf("mezz.jei:jei-${minecraft_version}:${jei_version}:api")
119+
runtimeOnly fg.deobf("mezz.jei:jei-${minecraft_version}:${jei_version}")
120+
121+
}
122+
123+
// Example for how to get properties into the manifest for reading at runtime.
124+
jar {
125+
manifest {
126+
attributes([
127+
"Specification-Title" : "beneath",
128+
"Specification-Vendor" : "eerussianguy",
129+
"Specification-Version" : "1", // We are version 1 of ourselves
130+
"Implementation-Title" : project.name,
131+
"Implementation-Version" : project.jar.archiveVersion,
132+
"Implementation-Vendor" : "eerussianguy",
133+
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
134+
"MixinConfigs": "beneath.mixins.json"
135+
])
136+
}
137+
}
138+
139+
idea {
140+
module {
141+
excludeDirs.add(file("run"))
142+
}
143+
}
144+
145+
mixin {
146+
add sourceSets.main, "beneath.refmap.json"
147+
}

gradle.properties

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
2+
# This is required to provide enough memory for the Minecraft decompilation process.
3+
org.gradle.jvmargs=-Xmx3G
4+
org.gradle.daemon=false
5+
6+
# Version metadata
7+
forge_version=40.1.73
8+
minecraft_version=1.18.2
9+
mixin_version=0.8.5
10+
jei_version=9.7.1.232
11+
patchouli_version=1.18.2-70
12+
tfc_identifier=4464400

gradle/wrapper/gradle-wrapper.jar

58.1 KB
Binary file not shown.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)