commit 99489ac7f3e51bb1c18cb5d9d1b066c17cc0b5be Author: AXOLOTsh <96595812+AXOLOTsh@users.noreply.github.com> Date: Mon Jun 8 02:12:39 2026 +0300 initial commit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d47baa0 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9d1315b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.code-workspace +*.zip \ No newline at end of file diff --git a/data/dev/dimension/dimension.json b/data/dev/dimension/dimension.json new file mode 100644 index 0000000..5ef92f5 --- /dev/null +++ b/data/dev/dimension/dimension.json @@ -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": [] + } + } +} \ No newline at end of file diff --git a/data/dev/dimension_type/dimension.json b/data/dev/dimension_type/dimension.json new file mode 100644 index 0000000..3666023 --- /dev/null +++ b/data/dev/dimension_type/dimension.json @@ -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 +} \ No newline at end of file diff --git a/data/dev/function/teleport.mcfunction b/data/dev/function/teleport.mcfunction new file mode 100644 index 0000000..1f62dc3 --- /dev/null +++ b/data/dev/function/teleport.mcfunction @@ -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 \ No newline at end of file diff --git a/pack.mcmeta b/pack.mcmeta new file mode 100644 index 0000000..31e9e1a --- /dev/null +++ b/pack.mcmeta @@ -0,0 +1,13 @@ +{ + "pack": { + "description": "dev-dimension", + "min_format": [ + 101, + 1 + ], + "max_format": [ + 101, + 1 + ] + } +} \ No newline at end of file