Merge branch 'main' of redstonemc.net:~/git/szarmod

This commit is contained in:
2026-02-05 15:37:43 +01:00
672 changed files with 9926 additions and 0 deletions

107
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,107 @@
name: Build Minecraft Mod
on:
push:
branches: [ main ]
release:
types: [ published ]
jobs:
build:
name: Build Mod
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 9.2.1 # or whatever version your mod uses
- name: Build mod
run: gradle build
- name: Read mod name and version
id: mod_info
run: |
NAME=$(grep "^archives_base_name" gradle.properties | cut -d'=' -f2)
VERSION=$(grep "^mod_version" gradle.properties | cut -d'=' -f2)
if [ -z "$NAME" ] || [ -z "$VERSION" ]; then
echo "Failed to read mod info from gradle.properties"
exit 1
fi
JAR="build/libs/${NAME}-${VERSION}.jar"
if [ ! -f "$JAR" ]; then
echo "Expected jar not found: $JAR"
exit 1
fi
echo "name=$NAME" >> $GITHUB_OUTPUT
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "jar=$JAR" >> $GITHUB_OUTPUT
- name: Upload mod artifact
uses: actions/upload-artifact@v4
with:
name: minecraft-mod
path: ${{ steps.mod_info.outputs.jar }}
create-release:
name: Create GitHub Release
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Download mod artifact
uses: actions/download-artifact@v4
with:
name: minecraft-mod
path: ./release-artifacts/
- name: Read mod info again (for tagging)
id: mod_info
run: |
NAME=$(grep "^archives_base_name" gradle.properties | cut -d'=' -f2)
VERSION=$(grep "^mod_version" gradle.properties | cut -d'=' -f2)
echo "name=$NAME" >> $GITHUB_OUTPUT
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Find next available release tag
id: tag
run: |
BASE="${{ steps.mod_info.outputs.name }}-${{ steps.mod_info.outputs.version }}"
TAG="$BASE"
i=1
while gh release view "$TAG" >/dev/null 2>&1; do
TAG="${BASE}($i)"
i=$((i+1))
done
echo "tag=$TAG" >> $GITHUB_OUTPUT
- name: Create release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.tag }}
name: ${{ steps.tag.outputs.tag }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Upload jar to release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.tag }}
files: ./release-artifacts/*.jar
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

27
README.md Normal file
View File

@@ -0,0 +1,27 @@
# Szar
Ez egy privát, kísérleti Minecraft 1.20.1 mod.
## FIGYELMEZTETÉS
Ez a mod 18+ tartalmat tartalmaz, beleértve:
- sértő, rasszista vagy provokatív elemeket
- felnőtteknek szóló témákat
- illegális vagy valós életben elfogadhatatlan dolgok fiktív megjelenítését
A mod **nem oktatási célú**, **nem támogatja**, és **nem népszerűsíti** ezeket a témákat.
Kizárólag saját használatra készült.
Ha ezek a tartalmak zavaróak számodra, **NE használd**.
A mod használata **kizárólag saját felelősségre történik**.
## WARNING (EN)
This is a private, experimental Minecraft mod.
This mod contains **18+ content**, including offensive, provocative, or otherwise inappropriate themes.
It may include fictional representations of content that would be unacceptable or illegal in real life.
This mod is **not intended for public use**, does **not endorse** any of the themes depicted, and was created **for personal use only**.
If you find such content disturbing or offensive, **do not use this mod**.
Use at your **own responsibility**.

106
build.gradle Normal file
View File

@@ -0,0 +1,106 @@
plugins {
id 'fabric-loom' version '1.14-SNAPSHOT'
id 'maven-publish'
}
version = project.mod_version
group = project.maven_group
base {
archivesName = project.archives_base_name
}
loom {
accessWidenerPath = file("src/main/resources/szar.accesswidener")
splitEnvironmentSourceSets()
mods {
"szar" {
sourceSet sourceSets.main
sourceSet sourceSets.client
}
}
}
fabricApi {
configureDataGeneration {
client = true
}
}
repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
}
dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
}
processResources {
inputs.property "version", project.version
inputs.property "minecraft_version", project.minecraft_version
inputs.property "loader_version", project.loader_version
filteringCharset "UTF-8"
filesMatching("fabric.mod.json") {
expand "version": project.version,
"minecraft_version": project.minecraft_version,
"loader_version": project.loader_version
}
}
def targetJavaVersion = 17
tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
it.options.release.set(targetJavaVersion)
}
}
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this line, sources will not be generated.
withSourcesJar()
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}
// configure the maven publication
publishing {
publications {
create("mavenJava", MavenPublication) {
artifactId = project.archives_base_name
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
build/libs/szar-1.0.3.jar Normal file

Binary file not shown.

Binary file not shown.

BIN
build/libs/szar-1.0.6.jar Normal file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More