Skip to content

Commit 0b0bc78

Browse files
committed
Init
0 parents  commit 0b0bc78

36 files changed

Lines changed: 1654 additions & 0 deletions

.gitignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# gradle
2+
3+
.gradle/
4+
build/
5+
out/
6+
classes/
7+
8+
# eclipse
9+
10+
*.launch
11+
12+
# idea
13+
14+
.idea/
15+
*.iml
16+
*.ipr
17+
*.iws
18+
19+
# vscode
20+
21+
.settings/
22+
.vscode/
23+
bin/
24+
.classpath
25+
.project
26+
27+
# macos
28+
29+
*.DS_Store
30+
31+
# fabric
32+
33+
run/

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TODO

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Fabric Example Mod
2+
3+
## Setup
4+
5+
For setup instructions please see the [fabric wiki page](https://fabricmc.net/wiki/tutorial:setup) that relates to the IDE that you are using.
6+
7+
## License
8+
9+
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.

build.gradle

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
plugins {
2+
id 'fabric-loom' version '0.12-SNAPSHOT'
3+
id 'maven-publish'
4+
}
5+
6+
sourceCompatibility = JavaVersion.VERSION_17
7+
targetCompatibility = JavaVersion.VERSION_17
8+
9+
archivesBaseName = project.archives_base_name
10+
version = project.mod_version
11+
group = project.maven_group
12+
13+
repositories {
14+
mavenLocal()
15+
maven {
16+
name = "CottonMC"
17+
url = "https://server.bbkr.space/artifactory/libs-release"
18+
}
19+
20+
// Add repositories to retrieve artifacts from in here.
21+
// You should only use this when depending on other mods because
22+
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
23+
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
24+
// for more information about repositories.
25+
}
26+
27+
dependencies {
28+
// To change the versions see the gradle.properties file
29+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
30+
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
31+
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
32+
33+
// Fabric API. This is technically optional, but you probably want it anyway.
34+
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
35+
36+
annotationProcessor "org.ow2.asm:asm:9.0"
37+
annotationProcessor "org.ow2.asm:asm-analysis:9.0"
38+
annotationProcessor "org.ow2.asm:asm-commons:9.0"
39+
annotationProcessor "org.ow2.asm:asm-tree:9.0"
40+
annotationProcessor "org.ow2.asm:asm-util:9.0"
41+
42+
modImplementation include("io.github.cottonmc:LibGui:6.4.0+1.19")
43+
}
44+
45+
processResources {
46+
inputs.property "version", project.version
47+
48+
filesMatching("fabric.mod.json") {
49+
expand "version": project.version
50+
}
51+
}
52+
53+
tasks.withType(JavaCompile).configureEach {
54+
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
55+
it.options.release = 17
56+
}
57+
58+
java {
59+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
60+
// if it is present.
61+
// If you remove this line, sources will not be generated.
62+
withSourcesJar()
63+
}
64+
65+
jar {
66+
from("LICENSE") {
67+
rename { "${it}_${project.archivesBaseName}"}
68+
}
69+
}
70+
71+
// configure the maven publication
72+
publishing {
73+
publications {
74+
mavenJava(MavenPublication) {
75+
from components.java
76+
}
77+
}
78+
79+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
80+
repositories {
81+
// Add repositories to publish to here.
82+
// Notice: This block does NOT have the same function as the block in the top level.
83+
// The repositories here will be used for publishing your artifact, not for
84+
// retrieving dependencies.
85+
}
86+
}

gradle.properties

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Done to increase the memory available to gradle.
2+
org.gradle.jvmargs=-Xmx1G
3+
4+
# Fabric Properties
5+
# check these on https://fabricmc.net/develop
6+
minecraft_version=1.19.2
7+
yarn_mappings=1.19.2+build.28
8+
loader_version=0.14.17
9+
10+
11+
#Fabric api
12+
fabric_version=0.76.0+1.19.2
13+
14+
# Mod Properties
15+
mod_version = 1.0.0
16+
maven_group = atlasengine
17+
archives_base_name = atlasengine-fabric

gradle/wrapper/gradle-wrapper.jar

58.1 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
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.4-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

gradlew

Lines changed: 234 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)