Skip to content

Commit b144435

Browse files
committed
Create project
0 parents  commit b144435

10 files changed

Lines changed: 501 additions & 0 deletions

.editorconfig

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 4
9+
indent_style = tab
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
max_line_length = 250
13+
tab_width = 4
14+
ij_java_space_before_if_parentheses = true
15+
ij_java_space_before_for_parentheses = true
16+
ij_java_space_before_try_parentheses = true
17+
ij_java_space_before_catch_parentheses = true
18+
ij_java_space_before_while_parentheses = true
19+
ij_java_space_before_switch_parentheses = true
20+
ij_java_space_before_synchronized_parentheses = true
21+
ij_java_space_after_type_cast = false
22+
ij_java_blank_lines_after_class_header = 1
23+
ij_java_if_brace_force = if_multiline
24+
ij_java_for_brace_force = if_multiline
25+
ij_java_while_brace_force = if_multiline
26+
ij_java_do_while_brace_force = if_multiline
27+
ij_java_imports_layout = unset
28+
ij_java_class_count_to_use_import_on_demand = 10
29+
ij_java_names_count_to_use_import_on_demand = 10
30+
ij_java_doc_do_not_wrap_if_one_line = true
31+
ij_xml_space_inside_empty_tag = true
32+
33+
[*.lang]
34+
trim_trailing_whitespace = false
35+
ij_properties_keep_blank_lines = true
36+
37+
[*.{json,info,mcmeta}]
38+
indent_style = space
39+
indent_size = 2
40+
41+
[*.md]
42+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
# These are explicitly windows files and should use crlf
4+
*.bat text eol=crlf
5+
*.json text
6+
*.lang text
7+
*.mcmeta text
8+
*.info text
9+
*.jar binary
10+
*.zip binary
11+
*.class binary
12+
*.png binary
13+
*.ogg binary

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Gradle
2+
/.gradle
3+
/build
4+
/run
5+
6+
# IDEA
7+
/.idea
8+
/out
9+
10+
# OS
11+
Thumbs.db
12+
ehthumbs.db
13+
Desktop.ini
14+
.DS_Store
15+
.LSOverride

build.gradle

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
plugins {
2+
id 'java-library'
3+
id 'net.minecraftforge.gradle' version '6.0.+'
4+
id 'idea'
5+
}
6+
7+
java {
8+
toolchain.languageVersion = JavaLanguageVersion.of(8)
9+
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
10+
}
11+
12+
idea {
13+
module {
14+
inheritOutputDirs = true
15+
excludeDirs += file('./run')
16+
}
17+
}
18+
19+
minecraft {
20+
mappings channel: 'stable', version: '39-1.12'
21+
22+
// Default run configurations.
23+
runs {
24+
configureEach {
25+
workingDirectory project.file('run')
26+
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP' // Recommended logging data for a userdev environment
27+
property 'forge.logging.console.level', 'debug' // Recommended logging level for the console
28+
}
29+
30+
client {
31+
}
32+
33+
server {
34+
args '--nogui'
35+
}
36+
}
37+
}
38+
39+
dependencies {
40+
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2860'
41+
}
42+
43+
tasks.withType(JavaCompile).configureEach {
44+
options.encoding = 'UTF-8'
45+
}
46+
47+
jar {
48+
manifest {
49+
attributes 'FMLCorePlugin': 'LoadingPlugin'
50+
attributes 'FMLCorePluginContainsFMLMod': 'false'
51+
}
52+
}
53+
54+
tasks.register('sourcesJar', Jar) {
55+
archiveClassifier.set('sources')
56+
from sourceSets.main.java
57+
}
58+
59+
artifacts {
60+
archives tasks.named('sourcesJar')
61+
}

gradle.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Project
2+
group=me.theandrey.mods
3+
version=1.12.2-1.0
4+
5+
# Repositories
6+
net.minecraftforge.repository.url=https://maven.minecraftforge.net/

gradle/wrapper/gradle-wrapper.jar

42.5 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)