Compare commits
27 Commits
a678f3dd02
...
szar-26.4.
| Author | SHA1 | Date | |
|---|---|---|---|
| 994d2b961b | |||
| 77f71be086 | |||
| 169e9eff08 | |||
| 5dcf4fc221 | |||
| 34b8fccf24 | |||
| 62ad19516b | |||
| c3eb514db7 | |||
| 4bc0779967 | |||
| ab32bc230e | |||
| 034fac759c | |||
| aa07b71ed1 | |||
| 20027a974a | |||
| 539e4ad637 | |||
| 1313fd97db | |||
| b9393d179e | |||
| 5a42ec1e9e | |||
| 245f5ea035 | |||
| ae5783aa1d | |||
| 99a04d5b43 | |||
| 6fc34318bf | |||
| 0a120a8ee6 | |||
| 0501d8ee09 | |||
| 7c779124dc | |||
| 9c48313990 | |||
| 8869dc4087 | |||
| 7e5700d723 | |||
| d44fb3ca9a |
148
.gitea/workflows/build.yml
Normal file
148
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,148 @@
|
||||
name: Build Minecraft Mod
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 21
|
||||
|
||||
- name: Ensure Gradle wrapper exists
|
||||
run: |
|
||||
if [ ! -f "./gradlew" ]; then
|
||||
echo "ERROR: gradlew not found in repository!"
|
||||
echo "Please run 'gradle wrapper' locally and push the files."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Make gradlew executable
|
||||
run: chmod +x ./gradlew
|
||||
|
||||
- name: Build mod
|
||||
run: ./gradlew build --no-daemon --max-workers=1 -Dorg.gradle.jvmargs="-Xmx1g -XX:MaxMetaspaceSize=256m"
|
||||
|
||||
- name: Read mod info
|
||||
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"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
JAR="build/libs/${NAME}-${VERSION}.jar"
|
||||
|
||||
if [ ! -f "$JAR" ]; then
|
||||
echo "Jar not found: $JAR"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "NAME=$NAME" >> $GITEA_ENV
|
||||
echo "VERSION=$VERSION" >> $GITEA_ENV
|
||||
echo "JAR=$JAR" >> $GITEA_ENV
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: minecraft-mod
|
||||
path: ${{ env.JAR }}
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: minecraft-mod
|
||||
path: ./release-artifacts/
|
||||
|
||||
- name: Install jq
|
||||
run: apt-get update && apt-get install -y jq
|
||||
|
||||
- name: Read mod info from gradle.properties
|
||||
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"
|
||||
exit 1
|
||||
fi
|
||||
JAR="${NAME}-${VERSION}.jar"
|
||||
echo "NAME=$NAME" >> $GITEA_ENV
|
||||
echo "VERSION=$VERSION" >> $GITEA_ENV
|
||||
echo "JAR=$JAR" >> $GITEA_ENV
|
||||
- name: Determine tag
|
||||
run: |
|
||||
BASE="${NAME}-${VERSION}"
|
||||
TAG="$BASE"
|
||||
i=1
|
||||
|
||||
while true; do
|
||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
|
||||
-H "Authorization: token ${{ secrets.GITEATOKEN }}" \
|
||||
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/tags/$TAG")
|
||||
|
||||
if [ "$STATUS" = "404" ]; then
|
||||
break
|
||||
fi
|
||||
|
||||
TAG="${BASE}($i)"
|
||||
i=$((i+1))
|
||||
done
|
||||
|
||||
echo "TAG=$TAG" >> $GITEA_ENV
|
||||
|
||||
- name: Create release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: build/libs/*.jar
|
||||
tag_name: ${{ env.TAG }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITEATOKEN }}
|
||||
|
||||
- name: Get release ID
|
||||
run: |
|
||||
RELEASE_ID=$(curl -s \
|
||||
-H "Authorization: token ${{ secrets.GITEATOKEN }}" \
|
||||
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/tags/${TAG}" \
|
||||
| jq -r '.id')
|
||||
|
||||
echo "RELEASE_ID=$RELEASE_ID" >> $GITEA_ENV
|
||||
|
||||
- name: Upload the mod JAR
|
||||
run: |
|
||||
# Find the largest JAR file (the main mod file is 120 MiB, others are KiB)
|
||||
JAR_FILE=$(ls -S ./release-artifacts/*.jar | head -n 1)
|
||||
|
||||
if [ ! -f "$JAR_FILE" ]; then
|
||||
echo "Error: Main JAR not found in ./release-artifacts/"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Uploading largest file: $(basename $JAR_FILE)"
|
||||
|
||||
curl -X POST \
|
||||
-H "Authorization: token ${{ secrets.GITEATOKEN }}" \
|
||||
-H "Content-Type: application/java-archive" \
|
||||
--data-binary @"$JAR_FILE" \
|
||||
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/${RELEASE_ID}/assets?name=$(basename $JAR_FILE)"
|
||||
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
build/
|
||||
run/
|
||||
.idea/
|
||||
55
README.md
55
README.md
@@ -1,34 +1,49 @@
|
||||

|
||||
|
||||
# Szar
|
||||
*Szar means <u>Shit</u> in Hungarian*
|
||||
|
||||
Ez egy privát, kísérleti fabric Minecraft 1.20.1 mod.
|
||||
Szar is a private, experimental Fabric Minecraft 1.20.1 mod created as a school programming project and as a joke between classmates and friends.
|
||||
|
||||
## 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
|
||||
The mod features a wide variety of over-the-top, humorous, and intentionally absurd ideas. Its content is entirely fictional and parody-style, designed for fun and creativity, and **not meant to be taken seriously**.
|
||||
|
||||
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.
|
||||
## Features
|
||||
|
||||
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**.
|
||||
This mod includes (but is not limited to):
|
||||
|
||||
- Crazy functional blocks
|
||||
- Custom music discs
|
||||
- Weapons such as guns
|
||||
- Casinos with multiple gambling machines
|
||||
- Police systems
|
||||
- Drugs, memes, and historical figures
|
||||
- Nukes and backrooms
|
||||
- Board games
|
||||
- And basically anything that would be “crazy in Minecraft”
|
||||
|
||||
If you can imagine it being absurd or over-the-top in Minecraft, chances are this mod has it, if not, please contact me and it will!
|
||||
|
||||
# Hungarian / Magyar
|
||||
# Szar
|
||||
*buzi ai forditas mer lusta vagyok*
|
||||
|
||||
|
||||
# Shit
|
||||
A Szar egy privát, kísérleti Fabric Minecraft 1.20.1 mod, amelyet iskolai programozási projektként és viccnek készítettek osztálytársak és barátok között.
|
||||
|
||||
This is a private, experimental 1.20.1 fabric Minecraft mod.
|
||||
A mod számos túlzó, humoros és szándékosan abszurd ötletet tartalmaz. A tartalom teljesen fiktív és paródiaszerű, szórakoztatásra és kreativitásra készült, **nem szabad komolyan venni**.
|
||||
|
||||
## WARNING (EN)
|
||||
### Funkciók
|
||||
|
||||
This mod contains **18+ content**, including the following:
|
||||
- offensive, provocative, or otherwise inappropriate themes
|
||||
- adult themed content
|
||||
- fictional representations of content that would be unacceptable or illegal in real life
|
||||
A mod tartalmaz (de nem kizárólagosan):
|
||||
|
||||
This mod is **not intended for public use**, does **not endorse** any of the themes depicted, and was created **for personal use only**.
|
||||
- Őrült, funkcionális blokkok
|
||||
- Egyedi zenélőlemezek
|
||||
- Fegyverek, például pisztolyok
|
||||
- Kaszinók többféle szerencsejáték géppel
|
||||
- Rendőrségi rendszerek
|
||||
- Drogok, mémek és történelmi személyek
|
||||
- Nukleáris fegyverek és backroomból inspirált helyszínek
|
||||
- Társasjátékok
|
||||
- És gyakorlatilag bármi, ami “őrült” lenne a Minecraftban
|
||||
|
||||
If you find such content disturbing or offensive, **do not use this mod**.
|
||||
Use at your **own responsibility**.
|
||||
Ha el tudod képzelni, hogy valami túlzó vagy őrült lehet a Minecraftban, nagy valószínűséggel ez a mod tartalmazza, ha meg nem, akkor írj rám, és fogja!
|
||||
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user