Skip to content

Commit afb4027

Browse files
authored
commit
0 parents  commit afb4027

45 files changed

Lines changed: 4730 additions & 0 deletions

Some content is hidden

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

LICENSE

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
A Minecraft Fabric mod that adds Red-Black Tree to the game.
2+

build.gradle

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+
// Add repositories to retrieve artifacts from in here.
15+
// You should only use this when depending on other mods because
16+
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
17+
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
18+
// for more information about repositories.
19+
}
20+
21+
dependencies {
22+
// To change the versions see the gradle.properties file
23+
minecraft "com.mojang:minecraft:${project.minecraft_version}"
24+
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
25+
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
26+
27+
// Fabric API. This is technically optional, but you probably want it anyway.
28+
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
29+
}
30+
31+
processResources {
32+
inputs.property "version", project.version
33+
34+
filesMatching("fabric.mod.json") {
35+
expand "version": project.version
36+
}
37+
}
38+
39+
tasks.withType(JavaCompile).configureEach {
40+
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
41+
it.options.release = 17
42+
}
43+
44+
java {
45+
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
46+
// if it is present.
47+
// If you remove this line, sources will not be generated.
48+
withSourcesJar()
49+
}
50+
51+
jar {
52+
from("LICENSE") {
53+
rename { "${it}_${project.archivesBaseName}"}
54+
}
55+
}
56+
57+
// configure the maven publication
58+
publishing {
59+
publications {
60+
mavenJava(MavenPublication) {
61+
from components.java
62+
}
63+
}
64+
65+
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
66+
repositories {
67+
// Add repositories to publish to here.
68+
// Notice: This block does NOT have the same function as the block in the top level.
69+
// The repositories here will be used for publishing your artifact, not for
70+
// retrieving dependencies.
71+
}
72+
}

gradle.properties

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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.18.2
7+
yarn_mappings=1.18.2+build.3
8+
loader_version=0.14.6
9+
10+
# Mod Properties
11+
mod_version = 1.0.0
12+
maven_group = com.example
13+
archives_base_name = fabric-example-mod
14+
15+
# Dependencies
16+
fabric_version=0.53.0+1.18.2

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)