initial commit

This commit is contained in:
AXOLOTsh
2026-06-08 02:12:39 +03:00
commit 99489ac7f3
6 changed files with 172 additions and 0 deletions

100
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,100 @@
name: Publish Release
on:
release:
types: [published]
env:
# --- GLOBAL OVERRIDES ---
# Modify these variables to override default GitHub context values
PROJECT_NAME: ${{ github.event.repository.name }}
RELEASE_TAG: ${{ github.ref_name }}
RELEASE_BODY: ${{ github.event.release.body }}
COMMIT_URL: gitea.cheppyjam.ru/${{ github.repository }}/commit # overrode: ${{ github.server_url }}
CHANGELOG_FILE: "changelog.md"
# ------------------------
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Outputs
id: config
run: |
VERSION=${RELEASE_TAG#v}
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "ARCHIVE_NAME=${PROJECT_NAME}-v${VERSION}.zip" >> $GITHUB_ENV
- name: Generate Changelog
id: changelog
run: |
git fetch --prune --unshallow --tags || git fetch --tags
echo "# Release Notes" > $CHANGELOG_FILE
echo "" >> $CHANGELOG_FILE
if [ ! -z "$RELEASE_BODY" ]; then
echo "$RELEASE_BODY" >> $CHANGELOG_FILE
echo "" >> $CHANGELOG_FILE
fi
echo "## Changelog" >> $CHANGELOG_FILE
echo "" >> $CHANGELOG_FILE
PREVIOUS_TAG=$(git describe --tags --abbrev=0 HEAD~1 2>/dev/null || echo "")
if [ -z "$PREVIOUS_TAG" ]; then
LOG_RANGE="${RELEASE_TAG}"
echo "This is the first release." >> $CHANGELOG_FILE
else
LOG_RANGE="${PREVIOUS_TAG}..${RELEASE_TAG}"
fi
FORMAT_STR="* %s ([\`%h\`]($COMMIT_URL/%H))"
FEATS=$(git log $LOG_RANGE --grep="^feat" --pretty=format:"$FORMAT_STR" || true)
if [ ! -z "$FEATS" ]; then
echo "### New Features" >> $CHANGELOG_FILE
echo "$FEATS" >> $CHANGELOG_FILE
echo "" >> $CHANGELOG_FILE
fi
FIXES=$(git log $LOG_RANGE --grep="^fix" --pretty=format:"$FORMAT_STR" || true)
if [ ! -z "$FIXES" ]; then
echo "### Bug Fixes" >> $CHANGELOG_FILE
echo "$FIXES" >> $CHANGELOG_FILE
echo "" >> $CHANGELOG_FILE
fi
MAINTENANCE=$(git log $LOG_RANGE --grep="^chore\|^refactor\|^perf\|^style" --pretty=format:"$FORMAT_STR" || true)
if [ ! -z "$MAINTENANCE" ]; then
echo "### Maintenance" >> $CHANGELOG_FILE
echo "$MAINTENANCE" >> $CHANGELOG_FILE
echo "" >> $CHANGELOG_FILE
fi
- name: Create Archive
run: |
git archive --format zip --output ${{ env.ARCHIVE_NAME }} HEAD \
':(exclude).github/' \
':(exclude).git/' \
':(exclude).gitignore'
- name: Update Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.RELEASE_TAG }}
name: "${{ env.PROJECT_NAME }} ${{ env.RELEASE_TAG }}"
body_path: ${{ env.CHANGELOG_FILE }}
files: ${{ env.ARCHIVE_NAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*.code-workspace
*.zip

View File

@@ -0,0 +1,30 @@
{
"type": "minecraft:overworld",
"generator": {
"type": "minecraft:flat",
"settings": {
"biome": "minecraft:plains",
"lakes": false,
"features": false,
"layers": [
{
"height": 120,
"block": "minecraft:air"
},
{
"height": 1,
"block": "minecraft:bedrock"
},
{
"height": 3,
"block": "minecraft:dirt"
},
{
"height": 1,
"block": "minecraft:grass_block"
}
],
"structure_overrides": []
}
}
}

View File

@@ -0,0 +1,14 @@
{
"has_skylight": true,
"has_ceiling": false,
"has_ender_dragon_fight": false,
"coordinate_scale": 1,
"ambient_light": 0,
"has_fixed_time": true,
"logical_height": 0,
"infiniburn": "#minecraft:infiniburn_overworld",
"min_y": -64,
"height": 320,
"monster_spawn_light_level": 0,
"monster_spawn_block_light_limit": 0
}

View File

@@ -0,0 +1,13 @@
execute if dimension minecraft:overworld in dev:dimension run tp 0 61 0
execute if dimension minecraft:overworld in dev:dimension run return run title @s title "Pocket Dimension"
execute if dimension minecraft:the_nether in dev:dimension run tp 0 61 0
execute if dimension minecraft:the_nether in dev:dimension run return run title @s title "Pocket Dimension"
execute if dimension minecraft:the_end in dev:dimension run tp 0 61 0
execute if dimension minecraft:the_end in dev:dimension run return run title @s title "Pocket Dimension"
execute if dimension dev:dimension in minecraft:overworld run tp 0 100 0
execute if dimension dev:dimension in minecraft:overworld run return run title @s title "Overworld"
return fail

13
pack.mcmeta Normal file
View File

@@ -0,0 +1,13 @@
{
"pack": {
"description": "dev-dimension",
"min_format": [
101,
1
],
"max_format": [
101,
1
]
}
}