-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yeah I have thrown away all the code and began with new code
- Loading branch information
0 parents
commit 9bb6d72
Showing
127 changed files
with
2,902 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
tab_width = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.gradle] | ||
indent_style = tab | ||
|
||
[*.gradle.kts] | ||
indent_style = tab | ||
|
||
[*.java] | ||
indent_style = tab | ||
|
||
[*.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[fabric.mod.json] | ||
indent_style = tab | ||
tab_width = 2 | ||
|
||
[*.toml] | ||
indent_style = tab | ||
tab_width = 2 | ||
|
||
[*.properties] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
*.java text eol=lf diff=java | ||
*.gradle text eol=lf diff=java | ||
*.kt text eol=lf diff=kotlin | ||
*.kts text eol=lf diff=kotlin | ||
gradlew text eol=lf | ||
*.bat text eol=crlf | ||
|
||
*.md text eol=lf diff=markdown | ||
|
||
.editorconfig text eol=lf | ||
|
||
*.json text eol=lf | ||
*.json5 text eol=lf | ||
*.properties text eol=lf | ||
*.toml text eol=lf | ||
*.xml text eol=lf diff=html | ||
|
||
# Modding specific | ||
*.accesswidener text eol=lf | ||
|
||
# These files are binary and should be left untouched | ||
# (binary is a macro for -text -diff) | ||
*.class binary | ||
*.dll binary | ||
*.ear binary | ||
*.jar binary | ||
*.jks binary | ||
*.png binary | ||
*.so binary | ||
*.war binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build Mod | ||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Eclipse Temurin 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
cache: 'gradle' | ||
- name: Build with Gradle | ||
run: gradle build | ||
- name: Upload build artifacts (Fabric) | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ github.event.repository.name }}-Fabric-${{ github.sha }} | ||
path: | | ||
fabric/build/libs/*.jar | ||
!fabric/build/libs/*-dev.jar | ||
- name: Upload build artifacts (Neo) | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ github.event.repository.name }}-Neo-${{ github.sha }} | ||
path: | | ||
norge/build/libs/*.jar | ||
!norge/build/libs/*-dev.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Upload Release Artifacts | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
env: | ||
TAG: ${{ github.ref_name }} | ||
BUILD_NUMBER: ${{ github.run_number }} | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'microsoft' | ||
java-version: 21 | ||
- name: Copy Maven Upload URL | ||
id: extract_maven_upload_url | ||
run: echo "maven_upload_url=${{ secrets.MAVEN_UPLOAD_URL }}" >> $GITHUB_OUTPUT | ||
- name: Build with Gradle | ||
run: ./gradlew assemble --rerun-tasks | ||
- name: Maven Release | ||
if: steps.extract_maven_upload_url.outputs.maven_upload_url | ||
env: | ||
MAVEN_UPLOAD_URL: ${{ secrets.MAVEN_UPLOAD_URL }} | ||
MAVEN_UPLOAD_USERNAME: ${{ secrets.MAVEN_UPLOAD_USERNAME }} | ||
MAVEN_UPLOAD_PASSWORD: ${{ secrets.MAVEN_UPLOAD_PASSWORD }} | ||
run: ./gradlew publish | ||
- name: Publish (GitHub Releases) | ||
id: publish_github | ||
uses: Kir-Antipov/mc-publish@995edadc13559a8b28d0b7e6571229f067ec7659 # (new) v3.3.0 | ||
with: | ||
github-token: ${{ github.token }} | ||
version: ${{ env.TAG }} | ||
files: | | ||
mod_fabric/build/libs/!(*-@(dev|sources|javadoc|slim)).jar | ||
mod_fabric/build/libs/*-@(sources|javadoc).jar | ||
mod_norge/build/libs/!(*-@(dev|sources|javadoc|slim)).jar | ||
mod_norge/build/libs/*-@(sources|javadoc).jar | ||
- name: Publish (Fabric) | ||
id: publish_fabric | ||
uses: Kir-Antipov/mc-publish@995edadc13559a8b28d0b7e6571229f067ec7659 # (new) v3.3.0 | ||
with: | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
version: ${{ env.TAG }}+fabric | ||
files: | | ||
mod_fabric/build/libs/!(*-@(dev|sources|javadoc|slim)).jar | ||
mod_fabric/build/libs/*-@(sources|javadoc).jar | ||
- name: Publish (Neo) | ||
id: publish_neo | ||
uses: Kir-Antipov/mc-publish@995edadc13559a8b28d0b7e6571229f067ec7659 # (new) v3.3.0 | ||
with: | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
version: ${{ env.TAG }}+neo | ||
files: | | ||
mod_norge/build/libs/!(*-@(dev|sources|javadoc|slim)).jar | ||
mod_norge/build/libs/*-@(sources|javadoc).jar | ||
- name: Notify Discord | ||
uses: Up-Mods/action-discord-release@main | ||
with: | ||
version: ${{ github.ref_name }} | ||
webhook-url: ${{ secrets.ANNOUNCEMENT_WEBHOOK_URL }} | ||
curseforge-project-id: ${{ steps.publish_fabric.outputs.curseforge-id }} | ||
modrinth-project-id: ${{ steps.publish_fabric.outputs.modrinth-id }} | ||
thumbnail-url: https://mod-assets.upcraft.dev/promo/crooked-crooks/icon_128x.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Gradle | ||
.gradle/ | ||
build/ | ||
out/ | ||
classes/ | ||
|
||
# Loom | ||
remappedSrc/ | ||
run/ | ||
.cache | ||
|
||
# Eclipse | ||
*.launch | ||
|
||
# IntelliJ Idea | ||
.idea/ | ||
*.iml | ||
*.ipr | ||
*.iws | ||
|
||
# Fleet | ||
.fleet/ | ||
|
||
# Visual Studio Code | ||
.settings/ | ||
.vscode/ | ||
bin/ | ||
.classpath | ||
.project | ||
|
||
# Eclipse JDT LS | ||
workspace/ | ||
|
||
# macOS | ||
*.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Copyright © 2024 Ennui Langeweile, All rights reserved. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Crooked Crooks | ||
|
||
Crooked Crooks is a mod that adds crooks, a tool which can pull mobs, herd sheep, and multiply the drops from leaves and grasses. | ||
|
||
See more on the [Modrinth page](https://modrinth.com/mod/crooked-crooks)! | ||
|
||
## Download | ||
|
||
This mod is available for download on | ||
|
||
- [Modrinth (recommended)](https://modrinth.com/mod/crooked-crooks) | ||
- [CurseForge (alternative)](https://www.curseforge.com/minecraft/mc-mods/crooked-crooks) | ||
- [GitHub Releases (alternative)](https://github.com/EnnuiL/CrookedCrooks/releases) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} |
51 changes: 51 additions & 0 deletions
51
buildSrc/src/main/kotlin/mod_conventions_common.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
plugins { | ||
id("java-library") | ||
id("maven-publish") | ||
} | ||
|
||
repositories { | ||
maven("https://maven.parchmentmc.org") | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
// TODO - Resurrect the version getter method | ||
} | ||
|
||
project.version = System.getenv("TAG") ?: "0.0.0-development" | ||
project.group = "io.github.ennuil.crooked_crooks" | ||
|
||
tasks.withType<JavaCompile> { | ||
options.release = 21 | ||
} | ||
|
||
tasks.named<Jar>("jar").configure { | ||
val name = project.name | ||
inputs.files("LICENSE.md") | ||
inputs.property("name", name) | ||
|
||
from("LICENSE.md") { | ||
rename { "LICENSE_${name}.md" } | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
register<MavenPublication>("mavenJava_${project.name}") { | ||
from(components["java"]) | ||
} | ||
} | ||
|
||
repositories { | ||
val uploadUrl = System.getenv("MAVEN_UPLOAD_URL") | ||
if (uploadUrl != null) { | ||
maven { | ||
url = uri(uploadUrl) | ||
credentials { | ||
System.getenv("MAVEN_UPLOAD_USERNAME") | ||
System.getenv("MAVEN_UPLOAD_PASSWORD") | ||
} | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
buildSrc/src/main/kotlin/mod_conventions_loader.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
plugins { | ||
id("mod_conventions_common") | ||
} | ||
|
||
dependencies { | ||
compileOnly(project(":mod_common")) | ||
} | ||
|
||
sourceSets { | ||
main { | ||
java { | ||
srcDir(project(":mod_common").sourceSets.main.get().java) | ||
} | ||
|
||
resources { | ||
srcDir(project(":mod_common").sourceSets.main.get().resources) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Gradle Properties | ||
org.gradle.jvmargs = -Xmx1G | ||
org.gradle.parallel = true | ||
org.gradle.caching = true | ||
org.gradle.configuration-cache = true | ||
org.gradle.configuration-cache.parallel = true | ||
|
||
# Mod versioning is managed at build.gradle.kts | ||
# Dependencies are managed at gradle/libs.versions.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# The latest versions are available at https://quiltmc.org/en/usage/latest-versions/ | ||
[versions] | ||
minecraft = "1.21.4" | ||
parchment = "2024.12.07" | ||
|
||
fabric_loom = "1.9.2" | ||
fabric_loader = "0.16.9" | ||
moddevgradle = "2.0.59-beta" | ||
neoforge = "21.4.33-beta" | ||
|
||
fabric_api = "0.112.0+1.21.4" | ||
|
||
[libraries] | ||
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" } | ||
parchment = { module = "org.parchmentmc.data:parchment-1.21.3", version.ref = "parchment" } | ||
fabric_loader = { module = "net.fabricmc:fabric-loader", version.ref = "fabric_loader" } | ||
|
||
fabric_api = { module = "net.fabricmc.fabric-api:fabric-api", version.ref = "fabric_api" } | ||
|
||
# If you have multiple similar dependencies, you can declare a dependency bundle and reference it on the build script with "libs.bundles.example". | ||
[bundles] | ||
|
||
[plugins] | ||
fabric_loom = { id = "fabric-loom", version.ref = "fabric_loom" } | ||
moddevgradle = { id = "net.neoforged.moddev", version.ref = "moddevgradle" } |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-rc-2-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.