Skip to content

Commit 529b0ec

Browse files
committed
Initial commit
0 parents  commit 529b0ec

175 files changed

Lines changed: 6706 additions & 0 deletions

File tree

Some content is hidden

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

.gitattributes

Lines changed: 5 additions & 0 deletions
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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
24+
# Files from Forge MDK
25+
forge*changelog.txt

CREDITS.txt

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
Minecraft Forge: Credits/Thank You
2+
3+
Forge is a set of tools and modifications to the Minecraft base game code to assist
4+
mod developers in creating new and exciting content. It has been in development for
5+
several years now, but I would like to take this time thank a few people who have
6+
helped it along it's way.
7+
8+
First, the people who originally created the Forge projects way back in Minecraft
9+
alpha. Eloraam of RedPower, and SpaceToad of Buildcraft, without their acceptiance
10+
of me taking over the project, who knows what Minecraft modding would be today.
11+
12+
Secondly, someone who has worked with me, and developed some of the core features
13+
that allow modding to be as functional, and as simple as it is, cpw. For developing
14+
FML, which stabelized the client and server modding ecosystem. As well as the base
15+
loading system that allows us to modify Minecraft's code as elegently as possible.
16+
17+
Mezz, who has stepped up as the issue and pull request manager. Helping to keep me
18+
sane as well as guiding the community into creating better additions to Forge.
19+
20+
Searge, Bspks, Fesh0r, ProfMobious, and all the rest over on the MCP team {of which
21+
I am a part}. For creating some of the core tools needed to make Minecraft modding
22+
both possible, and as stable as can be.
23+
On that note, here is some specific information of the MCP data we use:
24+
* Minecraft Coder Pack (MCP) *
25+
Forge Mod Loader and Minecraft Forge have permission to distribute and automatically
26+
download components of MCP and distribute MCP data files. This permission is not
27+
transitive and others wishing to redistribute the Minecraft Forge source independently
28+
should seek permission of MCP or remove the MCP data files and request their users
29+
to download MCP separately.
30+
31+
And lastly, the countless community members who have spent time submitting bug reports,
32+
pull requests, and just helping out the community in general. Thank you.
33+
34+
--LexManos
35+
36+
=========================================================================
37+
38+
This is Forge Mod Loader.
39+
40+
You can find the source code at all times at https://github.com/MinecraftForge/MinecraftForge/tree/1.12.x/src/main/java/net/minecraftforge/fml
41+
42+
This minecraft mod is a clean open source implementation of a mod loader for minecraft servers
43+
and minecraft clients.
44+
45+
The code is authored by cpw.
46+
47+
It began by partially implementing an API defined by the client side ModLoader, authored by Risugami.
48+
http://www.minecraftforum.net/topic/75440-
49+
This support has been dropped as of Minecraft release 1.7, as Risugami no longer maintains ModLoader.
50+
51+
It also contains suggestions and hints and generous helpings of code from LexManos, author of MinecraftForge.
52+
http://www.minecraftforge.net/
53+
54+
Additionally, it contains an implementation of topological sort based on that
55+
published at http://keithschwarz.com/interesting/code/?dir=topological-sort
56+
57+
It also contains code from the Maven project for performing versioned dependency
58+
resolution. http://maven.apache.org/
59+
60+
It also contains a partial repackaging of the javaxdelta library from http://sourceforge.net/projects/javaxdelta/
61+
with credit to it's authors.
62+
63+
Forge Mod Loader downloads components from the Minecraft Coder Pack
64+
(http://mcp.ocean-labs.de/index.php/Main_Page) with kind permission from the MCP team.
65+

build.gradle

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
buildscript {
2+
repositories {
3+
maven { url = 'https://files.minecraftforge.net/maven' }
4+
mavenCentral()
5+
}
6+
dependencies {
7+
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.9+', changing: true
8+
}
9+
}
10+
apply plugin: 'net.minecraftforge.gradle'
11+
apply plugin: 'eclipse'
12+
apply plugin: 'maven-publish'
13+
14+
version = '1.0'
15+
group = 'com.master.mastermod'
16+
archivesBaseName = 'mastermod'
17+
18+
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
19+
20+
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
21+
minecraft {
22+
mappings channel: 'official', version: '1.16.5'
23+
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
24+
25+
accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')
26+
27+
// Default run configurations.
28+
// These can be tweaked, removed, or duplicated as needed.
29+
runs {
30+
client {
31+
workingDirectory project.file('run')
32+
33+
// Recommended logging data for a userdev environment
34+
// The markers can be changed as needed.
35+
// "SCAN": For mods scan.
36+
// "REGISTRIES": For firing of registry events.
37+
// "REGISTRYDUMP": For getting the contents of all registries.
38+
property 'forge.logging.markers', 'REGISTRIES'
39+
40+
// Recommended logging level for the console
41+
// You can set various levels here.
42+
// Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
43+
property 'forge.logging.console.level', 'debug'
44+
property 'mixin.env.remapRefMap', 'true'
45+
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
46+
47+
mods {
48+
mastermod {
49+
source sourceSets.main
50+
}
51+
}
52+
}
53+
54+
server {
55+
workingDirectory project.file('run')
56+
57+
// Recommended logging data for a userdev environment
58+
// The markers can be changed as needed.
59+
// "SCAN": For mods scan.
60+
// "REGISTRIES": For firing of registry events.
61+
// "REGISTRYDUMP": For getting the contents of all registries.
62+
property 'forge.logging.markers', 'REGISTRIES'
63+
64+
// Recommended logging level for the console
65+
// You can set various levels here.
66+
// Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
67+
property 'forge.logging.console.level', 'debug'
68+
69+
mods {
70+
mastermod {
71+
source sourceSets.main
72+
}
73+
}
74+
}
75+
76+
data {
77+
workingDirectory project.file('run')
78+
79+
// Recommended logging data for a userdev environment
80+
// The markers can be changed as needed.
81+
// "SCAN": For mods scan.
82+
// "REGISTRIES": For firing of registry events.
83+
// "REGISTRYDUMP": For getting the contents of all registries.
84+
property 'forge.logging.markers', 'REGISTRIES'
85+
86+
// Recommended logging level for the console
87+
// You can set various levels here.
88+
// Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels
89+
property 'forge.logging.console.level', 'debug'
90+
91+
// Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
92+
args '--mod', 'examplemod', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
93+
94+
mods {
95+
mastermod {
96+
source sourceSets.main
97+
}
98+
}
99+
}
100+
}
101+
}
102+
103+
sourceSets.main.resources { srcDir 'src/generated/resources' }
104+
105+
repositories {
106+
maven {
107+
url "https://www.cursemaven.com"
108+
}
109+
maven {
110+
url "https://dvs1.progwml6.com/files/maven/"
111+
}
112+
maven{
113+
url "https://modmaven.k-4u.nl"
114+
}
115+
maven { url 'https://maven.blamejared.com' }
116+
}
117+
118+
dependencies {
119+
minecraft 'net.minecraftforge:forge:1.16.5-36.1.0'
120+
121+
// JEI dependencies
122+
compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api")
123+
runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}")
124+
125+
// (modnmane-projectId:цифры_наверху_страницы_нужной_версии_мода)
126+
//runtimeOnly fg.deobf("curse.maven:mousetweaks-60089:3202662") // Mouse Tweaks
127+
runtimeOnly fg.deobf("curse.maven:appleskin-248787:3395800") // Apple Skin
128+
129+
compileOnly fg.deobf("vazkii.patchouli:Patchouli:1.16.4-53.1:api")
130+
runtimeOnly fg.deobf("vazkii.patchouli:Patchouli:1.16.4-53.1")
131+
}
132+
133+
jar {
134+
manifest {
135+
attributes([
136+
"Specification-Title": "mastermod",
137+
"Specification-Vendor": "Master",
138+
"Specification-Version": "1",
139+
"Implementation-Title": project.name,
140+
"Implementation-Version": "${version}",
141+
"Implementation-Vendor" :"Master",
142+
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
143+
])
144+
}
145+
}
146+
147+
// Example configuration to allow publishing using the maven-publish task
148+
// This is the preferred method to reobfuscate your jar file
149+
jar.finalizedBy('reobfJar')
150+
// However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
151+
//publish.dependsOn('reobfJar')
152+
153+
publishing {
154+
publications {
155+
mavenJava(MavenPublication) {
156+
artifact jar
157+
}
158+
}
159+
repositories {
160+
maven {
161+
url "file:///${project.projectDir}/mcmodsrepo"
162+
}
163+
}
164+
compileJava.options.encoding = 'UTF-8'
165+
166+
tasks.withType(JavaCompile) {
167+
options.encoding = 'UTF-8'
168+
}
169+
}

0 commit comments

Comments
 (0)