Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Sky's Building Pieces 1.20.1 CI
on:
push:
branches:
- master-1.20.1
- master-1.20.1-neo
- 'feature/**'
pull_request:
branches:
- master-1.20.1
- master-1.20.1-neo

permissions:
contents: read
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
distribution: temurin
java-version: '17.0.1+12'

- name: Bootstrap Forge from an empty cache
- name: Bootstrap NeoForge from an empty cache
shell: bash
env:
GRADLE_USER_HOME: ${{ runner.temp }}/skysbuildingpieces-cold-gradle
Expand Down Expand Up @@ -113,6 +113,13 @@ jobs:
distribution: temurin
java-version: '25.0.3+9.0.LTS'

- name: Install Java 8 for ForgeGradle launchers
if: steps.target.outputs.java_version == '17'
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
with:
distribution: temurin
java-version: '8.0.502+7'

- name: Install target production toolchain
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
with:
Expand Down Expand Up @@ -162,8 +169,7 @@ jobs:
run: |
set -euo pipefail
dependency="$GITHUB_WORKSPACE/.gradle/qualification-sources/grass-slabs"
chmod +x "$dependency/gradlew"
"$dependency/gradlew" -p "$dependency" assemble --no-daemon --stacktrace
bash "$dependency/gradlew" -p "$dependency" assemble --no-daemon --stacktrace
version="$(sed -n 's/^version=//p' gradle/grass-slabs-release.properties)"
echo "ORG_GRADLE_PROJECT_grassSlabsMainJar=$dependency/build/libs/SkysGrassSlabs-$version.jar" >> "$GITHUB_ENV"
echo "ORG_GRADLE_PROJECT_grassSlabsDeobfJar=$dependency/build/libs-dev/SkysGrassSlabs-$version-deobf.jar" >> "$GITHUB_ENV"
Expand All @@ -186,9 +192,9 @@ jobs:
if-no-files-found: error
retention-days: 30
path: |
build/libs/SkysBuildingPieces-0.3.8.120011.jar
build/libs/SkysBuildingPieces-0.3.8.120011-sources.jar
build/libs/SkysBuildingPieces-0.3.8.120011-javadoc.jar
build/libs/SkysBuildingPieces-0.3.10.120012.jar
build/libs/SkysBuildingPieces-0.3.10.120012-sources.jar
build/libs/SkysBuildingPieces-0.3.10.120012-javadoc.jar
build/release/SHA256SUMS
CHANGELOG.md

Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: CodeQL
on:
push:
branches:
- master-1.20.1
- master-1.20.1-neo
- 'feature/**'
pull_request:
branches:
- master-1.20.1
- master-1.20.1-neo
schedule:
- cron: '47 7 * * 4'

Expand Down Expand Up @@ -46,6 +46,13 @@ jobs:
distribution: temurin
java-version: '25.0.3+9.0.LTS'

- name: Install Java 8 for ForgeGradle launchers
if: steps.target.outputs.java_version == '17'
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
with:
distribution: temurin
java-version: '8.0.502+7'

- name: Install target Java toolchain
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
with:
Expand Down
92 changes: 92 additions & 0 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,20 @@ jobs:
with:
ref: ${{ needs.preflight.outputs.release_sha }}

- name: Install ForgeGradle Mavenizer toolchain
if: (needs.preflight.outputs.loader_name == 'forge' || (needs.preflight.outputs.loader_name == 'neoforge' && needs.preflight.outputs.minecraft_version == '1.20.1')) && needs.preflight.outputs.java_version != '25'
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
with:
distribution: temurin
java-version: '25.0.3+9.0.LTS'

- name: Install ForgeGradle legacy renamer toolchain
if: (needs.preflight.outputs.loader_name == 'forge' || (needs.preflight.outputs.loader_name == 'neoforge' && needs.preflight.outputs.minecraft_version == '1.20.1')) && needs.preflight.outputs.java_version != '8' && needs.preflight.outputs.java_version != '25'
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
with:
distribution: temurin
java-version: '8.0.502+7'

- name: Install target Java toolchain
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
with:
Expand All @@ -293,10 +307,50 @@ jobs:
echo "SBP_JAVA8_HOME=$JAVA_HOME_8_X64" >> "$GITHUB_ENV"
echo "STS_JAVA8_HOME=$JAVA_HOME_8_X64" >> "$GITHUB_ENV"

- name: Configure ForgeGradle toolchains
if: (needs.preflight.outputs.loader_name == 'forge' || (needs.preflight.outputs.loader_name == 'neoforge' && needs.preflight.outputs.minecraft_version == '1.20.1'))
shell: bash
run: |
set -euo pipefail
paths=()
for version in 8 17 21 25; do
variable="JAVA_HOME_${version}_X64"
if [[ -n "${!variable:-}" ]]; then paths+=("${!variable}"); fi
done
[[ -n "${JAVA_HOME_25_X64:-}" ]]
joined="$(IFS=,; echo "${paths[*]}")"
printf 'GRADLE_OPTS=%s -Dorg.gradle.java.installations.paths=%s -Dorg.gradle.java.installations.auto-detect=false -Dorg.gradle.java.installations.auto-download=false\n' "${GRADLE_OPTS:-}" "$joined" >> "$GITHUB_ENV"

- name: Set up Gradle
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6


- name: Read coordinated Grass Slabs source pin
id: grass
shell: bash
run: |
set -euo pipefail
commit="$(sed -n 's/^source.commit=//p' gradle/grass-slabs-release.properties)"
[[ "$commit" =~ ^[0-9a-f]{40}$ ]]
echo "commit=$commit" >> "$GITHUB_OUTPUT"

- name: Check out pinned Grass Slabs source
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
repository: MinecraftModDevelopmentMods/SkysGrassSlabs
ref: ${{ steps.grass.outputs.commit }}
path: .gradle/qualification-sources/grass-slabs

- name: Build pinned optional Grass Slabs dependency
shell: bash
run: |
set -euo pipefail
dependency="$GITHUB_WORKSPACE/.gradle/qualification-sources/grass-slabs"
bash "$dependency/gradlew" -p "$dependency" assemble --no-daemon --stacktrace
version="$(sed -n 's/^version=//p' gradle/grass-slabs-release.properties)"
echo "ORG_GRADLE_PROJECT_grassSlabsMainJar=$dependency/build/libs/SkysGrassSlabs-$version.jar" >> "$GITHUB_ENV"
echo "ORG_GRADLE_PROJECT_grassSlabsDeobfJar=$dependency/build/libs-dev/SkysGrassSlabs-$version-deobf.jar" >> "$GITHUB_ENV"

- name: Build, test, and audit once
env:
LOADER_NAME: ${{ needs.preflight.outputs.loader_name }}
Expand Down Expand Up @@ -449,6 +503,20 @@ jobs:
with:
ref: ${{ needs.preflight.outputs.release_sha }}

- name: Install ForgeGradle Mavenizer toolchain
if: (needs.preflight.outputs.loader_name == 'forge' || (needs.preflight.outputs.loader_name == 'neoforge' && needs.preflight.outputs.minecraft_version == '1.20.1')) && needs.preflight.outputs.java_version != '25'
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
with:
distribution: temurin
java-version: '25.0.3+9.0.LTS'

- name: Install ForgeGradle legacy renamer toolchain
if: (needs.preflight.outputs.loader_name == 'forge' || (needs.preflight.outputs.loader_name == 'neoforge' && needs.preflight.outputs.minecraft_version == '1.20.1')) && needs.preflight.outputs.java_version != '8' && needs.preflight.outputs.java_version != '25'
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
with:
distribution: temurin
java-version: '8.0.502+7'

- name: Install target Java toolchain
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
with:
Expand All @@ -462,6 +530,20 @@ jobs:
distribution: temurin
java-version: ${{ needs.preflight.outputs.gradle_java_version }}

- name: Configure ForgeGradle toolchains
if: (needs.preflight.outputs.loader_name == 'forge' || (needs.preflight.outputs.loader_name == 'neoforge' && needs.preflight.outputs.minecraft_version == '1.20.1'))
shell: bash
run: |
set -euo pipefail
paths=()
for version in 8 17 21 25; do
variable="JAVA_HOME_${version}_X64"
if [[ -n "${!variable:-}" ]]; then paths+=("${!variable}"); fi
done
[[ -n "${JAVA_HOME_25_X64:-}" ]]
joined="$(IFS=,; echo "${paths[*]}")"
printf 'GRADLE_OPTS=%s -Dorg.gradle.java.installations.paths=%s -Dorg.gradle.java.installations.auto-detect=false -Dorg.gradle.java.installations.auto-download=false\n' "${GRADLE_OPTS:-}" "$joined" >> "$GITHUB_ENV"

- name: Set up Gradle
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6

Expand Down Expand Up @@ -528,6 +610,7 @@ jobs:
fi

- name: Publish Sky's Building Pieces
id: curseforge
uses: Kira-NT/mc-publish@52307b03863581dec6b652b83e597aec02ebb075 # v3.3.1
with:
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
Expand All @@ -549,6 +632,15 @@ jobs:
${{ runner.temp }}/release-input/${{ needs.preflight.outputs.sources_jar }}
${{ runner.temp }}/release-input/${{ needs.preflight.outputs.javadoc_jar }}

- name: Record CurseForge publication
env:
CURSEFORGE_FILE_ID: ${{ steps.curseforge.outputs.curseforge-version }}
CURSEFORGE_URL: ${{ steps.curseforge.outputs.curseforge-url }}
run: |
set -euo pipefail
[[ "$CURSEFORGE_FILE_ID" =~ ^[0-9]+$ ]]
printf 'CurseForge file: %s\nDownload: %s\n' "$CURSEFORGE_FILE_ID" "$CURSEFORGE_URL"

publish_github:
name: Publish GitHub Release
needs:
Expand Down
16 changes: 14 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
# Changelog

## 0.3.8.120011
## 0.3.10.120012

- Bring the building pieces, creative tab and continuous glass walls to Minecraft 1.20.1.
- Improve snow cover, exposed faces and survival drops.
- Use each material’s actual fuel value.
- Keep crafting results distinct and avoid duplicate recipes when Grass Slabs is installed.

## 0.3.9.120012

- Each material and shape now has its own block ID. Older saved pieces keep their shape and orientation when upgraded.
- The Building Pieces creative tab shows the mod's own pieces.
- You can turn off directional slab placement from the mod's settings. It stays on by default.

## 0.3.8.120012

- Bring the building pieces, creative tab and continuous glass walls to NeoForge 1.20.1.
- Preserve existing pieces, their recipes and supported world upgrades.
- Keep Grass Slabs and Mineralogy integration optional.

Expand Down
26 changes: 18 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@ with: slabs, steps, corners, stairs, walls and ice panes. Add narrow trims,
fill awkward corners or build a glass wall without using full blocks everywhere.

The mod uses vanilla materials and reuses existing Minecraft pieces where they
already fit. When Mineralogy is installed, its natural rocks also get matching
steps and corners automatically. No Mineralogy add-on is needed. Building
Pieces doesn't generate terrain.
already fit. Building Pieces doesn't generate terrain.
The matching Forge build also supports Mineralogy's natural rocks without
a separate add-on.

## Building with the pieces

- Use the same slab item for horizontal and vertical placement. Click the centre
of a face to place against it, or near an edge to place along that edge.
Breaking a vertical slab returns the regular slab.
Breaking a vertical slab returns the regular slab. To use ordinary slab
placement, open **Mods → Sky's Building Pieces → Config** and
turn off **Directional slab placement**.
- Sneak while placing a step to turn it vertically. Steps are quarter-block
pieces; corners are eighth-block pieces.
- Matching pieces can join into supported larger shapes or a full block.
Different materials don't combine.
- Find the pieces, including the vanilla items the mod reuses, in the
**Sky's Building Pieces** creative tab.
- Find the mod's pieces in the **Sky's Building Pieces** creative tab. Vanilla
pieces stay in their usual tabs.

Walls have lower panels with posts at ends, corners and junctions. A torch or
block above keeps a supporting post. Matching glass walls form a continuous
Expand All @@ -32,6 +34,10 @@ matching path piece. Its footprint stays the same, with a one-pixel lower top.
Flattening a grass piece also turns an ordinary grass block directly beneath
it into a path, using the same shovel action.

Snowy grass pieces and snow pieces give the grass beneath them a snowy
appearance too. Removing the piece restores the normal grass texture. Snow
pieces drop when broken by hand; using a shovel is quicker.

Pieces support native waterlogging. Wet grass and path pieces turn into their
matching dirt shapes, keeping the water and orientation. Drain them before
using a shovel.
Expand All @@ -54,14 +60,18 @@ when Grass Slabs isn't installed.

## Installation and other Sky mods

For **Minecraft 1.20.1**, use **Forge 47.4.10** and **Java 17**.
For **Minecraft 1.20.1**, use **NeoForge 47.1.106** and **Java 17**.
No other mod is required. Put the main jar in `mods` on both the client and
server.

This early NeoForge build has no matching Mineralogy release. If your world
uses Mineralogy, keep it on the supported Forge route rather than removing
the mod to change loaders.

You can also add:

- [Sky's Grass Slabs](https://github.com/MinecraftModDevelopmentMods/SkysGrassSlabs)
version 1.2.0.120011 or later for horizontal dirt and grass slabs, paths and turf.
version 1.2.1.120012 or later for horizontal dirt and grass slabs, paths and turf.
- [The Biomes O' Plenty add-on](https://github.com/MinecraftModDevelopmentMods/SkysBuildingPieces-BiomesOPlenty-Addon)
for pieces made from BOP woods, stones and gem blocks.
- [Sky's Terrain Smoother](https://github.com/MinecraftModDevelopmentMods/SkysTerrainSmoother)
Expand Down
Loading
Loading