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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Base Gems 1.15.2 CI
name: Base Gems 1.16.5 CI

on:
push:
branches: [master-1.15.2, 'feature/**']
branches: [master-1.16.5, 'feature/**']
pull_request:
branches: [master-1.15.2]
branches: [master-1.16.5]

permissions:
contents: read

concurrency:
group: basegems-115-${{ github.workflow }}-${{ github.ref }}
group: basegems-116-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
run: python3 gradle/stage-legacy-dependencies.py .gradle/legacy-dependencies
- name: Build, audit and generate Eclipse launches
run: |
bash ./gradlew clean check build javadoc verify115ReleaseArtifacts write115ReleaseChecksums prepareEclipse \
bash ./gradlew clean check build javadoc verify116ReleaseArtifacts write116ReleaseChecksums prepareEclipse \
-PreleaseBuild=true -PlegacyDependencyVerificationRepository="$PWD/.gradle/legacy-dependencies" \
--no-daemon --stacktrace --max-workers=2 \
"-Dorg.gradle.java.installations.paths=$JAVA_HOME,$JAVA_HOME_8_X64,$JAVA_HOME_25_X64" \
Expand All @@ -57,15 +57,15 @@ jobs:
- name: Upload audited release candidate
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: BaseGems-1.15.2-${{ github.sha }}
name: BaseGems-1.16.5-${{ github.sha }}
if-no-files-found: error
retention-days: 30
path: build/release-bundle/
- name: Retain failure diagnostics
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: BaseGems-1.15.2-diagnostics-${{ github.sha }}
name: BaseGems-1.16.5-diagnostics-${{ github.sha }}
if-no-files-found: ignore
retention-days: 14
path: |
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Release Base Gems 1.15.2
name: Release Base Gems 1.16.5
run-name: Base Gems ${{ inputs.release_version }} (${{ inputs.confirm_live_publication && 'publish' || 'verify' }})

on:
workflow_dispatch:
inputs:
release_version:
description: Four-part version for Minecraft 1.15.2
description: Four-part version for Minecraft 1.16.5
required: true
type: string
release_commit:
description: Full SHA of the checked MMD master-1.15.2 commit
description: Full SHA of the checked MMD master-1.16.5 commit
required: true
type: string
tested_jar_sha256:
Expand All @@ -33,13 +33,13 @@ permissions:
contents: read

concurrency:
group: basegems-release-115
group: basegems-release-116
cancel-in-progress: false

jobs:
qualify:
name: Verify merged CI candidate
if: github.repository == 'MinecraftModDevelopmentMods/BaseGems' && github.ref == 'refs/heads/master-1.15.2'
if: github.repository == 'MinecraftModDevelopmentMods/BaseGems' && github.ref == 'refs/heads/master-1.16.5'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
Expand All @@ -61,21 +61,21 @@ jobs:
TESTED_SHA: ${{ inputs.tested_jar_sha256 }}
run: |
set -euo pipefail
[[ "$RELEASE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.115021$ ]]
[[ "$RELEASE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.116051$ ]]
[[ "$RELEASE_SHA" =~ ^[[:xdigit:]]{40}$ ]]
[[ "$TESTED_SHA" =~ ^[[:xdigit:]]{64}$ ]]
test "$(git rev-parse HEAD)" = "$RELEASE_SHA"
test "$(gh api "repos/$GITHUB_REPOSITORY/branches/master-1.15.2" --jq .commit.sha)" = "$RELEASE_SHA"
test "$(gh api "repos/$GITHUB_REPOSITORY/branches/master-1.16.5" --jq .commit.sha)" = "$RELEASE_SHA"
grep -Fxq "mod_version=$RELEASE_VERSION" gradle.properties
grep -Fxq 'minecraft_version=1.15.2' gradle.properties
grep -Fxq 'minecraft_version=1.16.5' gradle.properties
ci_run="$(gh api --method GET "repos/$GITHUB_REPOSITORY/actions/workflows/ci.yml/runs" \
-f branch=master-1.15.2 -f head_sha="$RELEASE_SHA" -f event=push -f status=success \
-f branch=master-1.16.5 -f head_sha="$RELEASE_SHA" -f event=push -f status=success \
--jq '.workflow_runs[0].id // empty')"
test -n "$ci_run"
echo "ci_run=$ci_run" >> "$GITHUB_OUTPUT"
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: BaseGems-1.15.2-${{ inputs.release_commit }}
name: BaseGems-1.16.5-${{ inputs.release_commit }}
run-id: ${{ steps.candidate.outputs.ci_run }}
github-token: ${{ github.token }}
path: ${{ runner.temp }}/release-input
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
- uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: BaseGems-1.15.2-${{ inputs.release_commit }}
name: BaseGems-1.16.5-${{ inputs.release_commit }}
run-id: ${{ needs.qualify.outputs.ci_run }}
github-token: ${{ github.token }}
path: ${{ runner.temp }}/release-input
Expand All @@ -179,7 +179,7 @@ jobs:
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: BaseGems-1.15.2-${{ inputs.release_commit }}
name: BaseGems-1.16.5-${{ inputs.release_commit }}
run-id: ${{ needs.qualify.outputs.ci_run }}
github-token: ${{ github.token }}
path: ${{ runner.temp }}/release-input
Expand All @@ -192,12 +192,12 @@ jobs:
with:
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
curseforge-id: '1793939'
name: Base Gems ${{ inputs.release_version }} for Minecraft 1.15.2 (Forge)
name: Base Gems ${{ inputs.release_version }} for Minecraft 1.16.5 (Forge)
version: ${{ inputs.release_version }}
version-type: ${{ inputs.curseforge_release_level }}
changelog-file: ${{ runner.temp }}/release-input/CHANGELOG.txt
loaders: forge
game-versions: '1.15.2'
game-versions: '1.16.5'
game-version-filter: none
environment: client | server
java: Java 8
Expand Down Expand Up @@ -233,7 +233,7 @@ jobs:
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: BaseGems-1.15.2-${{ inputs.release_commit }}
name: BaseGems-1.16.5-${{ inputs.release_commit }}
run-id: ${{ needs.qualify.outputs.ci_run }}
github-token: ${{ github.token }}
path: ${{ runner.temp }}/release-input
Expand All @@ -246,5 +246,5 @@ jobs:
set -euo pipefail
sha256sum --check --strict SHA256SUMS
gh release create "$RELEASE_VERSION" --repo "$GITHUB_REPOSITORY" --verify-tag \
--title "Base Gems $RELEASE_VERSION for Minecraft 1.15.2 (Forge)" \
--title "Base Gems $RELEASE_VERSION for Minecraft 1.16.5 (Forge)" \
--notes-file CHANGELOG.txt "BaseGems-$RELEASE_VERSION"{,-sources,-javadoc}.jar SHA256SUMS
6 changes: 3 additions & 3 deletions .github/workflows/release-on-tag.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Validate Base Gems 1.15.2 tag
name: Validate Base Gems 1.16.5 tag
on:
push:
tags: ['*.*.*.115021']
tags: ['*.*.*.116051']
permissions:
contents: read
actions: read
Expand All @@ -16,5 +16,5 @@ jobs:
run: |
set -euo pipefail
test "$GITHUB_REF_NAME" = "$(sed -n 's/^mod_version=//p' gradle.properties)"
grep -Fxq 'minecraft_version=1.15.2' gradle.properties
grep -Fxq 'minecraft_version=1.16.5' gradle.properties
echo 'Tag validated. Publication uses deploy-release.yml with explicit confirmation.' >> "$GITHUB_STEP_SUMMARY"
17 changes: 15 additions & 2 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
2.5.0.116051 for Minecraft 1.16.5

All 33 gems move across from the current 1.15.2 work, including the bars and
see-through door/trapdoor fixes. Use Java 8 and OreSpawn 4.1.7.116051. Base Metals 3.1.2.116051 and Modern Metals 3.0.0.116051 are optional.

- Keeps the gem names, config keys, Fantasy modes and deposit distribution.
- Updates recipes, GUI rendering, fluids and save hooks for native 1.16 APIs.
- Converts older gem wall connections to the new wall states when upgrading saves.
- Keeps bow, crossbow, shield and fishing rod model animations on the new renderer.
- Retains mining requirements, Fortune, Silk Touch, XP, trades and recipe discovery.
- Ore overlays keep the wider gap and their explicit texture coordinates.

2.5.0.115021 for Minecraft 1.15.2

Doors, trapdoors and bars no longer hide the terrain behind their gaps. Their
placement and collision behaviour stay the same.

The local 1.15 candidate now uses vanilla bar post/cap connections for all 33 gems. Its optional local Base Metals and Modern Metals profiles use player/mapped hash pins. Run pinLocalCompanions after rebuilding the siblings, then regenerate Eclipse separately. No Modern Metals 1.15 Maven release is assumed.

All 33 gems move across from the 1.14.4 release, with the same names, config
keys, recipes and deposit distribution. Use OreSpawn 4.1.7.115021 and Java 8;
Base Metals 3.0.3.115021 and Modern Metals 3.0.0.115021 are optional.
Bars connect like vanilla iron bars.
Base Metals 3.0.2.115021 is optional.

- Ore overlays keep the wider spacing and explicit texture coordinates.
- Gem ores, decorative blocks, molten gems and projectiles use native 1.15 rendering.
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Base Gems for Minecraft 1.15.2
# Base Gems for Minecraft 1.16.5

Base Gems adds 33 gemstones to Minecraft. Mine agate and amethyst in upper
caves, look deeper for ruby and sapphire, or head down near bedrock for black
Expand All @@ -7,27 +7,27 @@ pieces, tools, weapons and shields.

## Installation

Use Java 8 and Forge **31.2.57 for Minecraft 1.15.2** on both client and
Use Java 8 and Forge **36.2.34 for Minecraft 1.16.5** on both client and
server. Base Gems needs MMD OreSpawn and runs without MMDLib.

Use [MMD OreSpawn 4.1.7.115021](https://github.com/MinecraftModDevelopmentMods/OreSpawn/releases/tag/4.1.7.115021)
or a later compatible 1.15.2 release. It includes the fix for checking cave air
at generation boundaries; no separate local engine is needed.
Use [OreSpawn 4.1.7.116051](https://github.com/MinecraftModDevelopmentMods/OreSpawn/releases/tag/4.1.7.116051)
or a later compatible 1.16.5 release. OreSpawn owns the deposits; Base Gems
does not add a separate generator.

Base Metals is optional for a new world. When installed together, use
[Base Metals 3.0.3.115021](https://github.com/MinecraftModDevelopmentMods/BaseMetals/releases/tag/3.0.3.115021)
or a later compatible 1.15.2 release. If your old
[Base Metals 3.1.2.116051](https://github.com/MinecraftModDevelopmentMods/BaseMetals/releases/tag/3.1.2.116051)
or a later compatible 1.16.5 release. If your old
world contains Base Metals blocks or items, keep it installed for the upgrade.

Gem crushing works with the Base Gems crackhammer on its own. With Base
Metals installed its tools and crushers can use the same recipes. [Modern Metals 3.0.0.115021](https://github.com/MinecraftModDevelopmentMods/ModernMetals/releases/tag/3.0.0.115021)
also supplies shared crushing when installed.
Metals installed its tools and crushers can use the same recipes. [Modern Metals 3.0.0.116051](https://github.com/MinecraftModDevelopmentMods/ModernMetals/releases/tag/3.0.0.116051)
can supply shared crushing when Base Metals is absent.

## Upgrading a world

Make a separate copy before opening a 1.14.4 world in 1.15.2. Keep the
Make a separate copy before opening a 1.15.2 world in 1.16.5. Keep the
whole save, including `basegems-legacy-registry.dat` if it is present. Worlds
from 1.10–1.12 should first go through the released Base Gems 1.13.2 upgrade.
from 1.10–1.12 should first go through the released Base Gems 1.13.2 upgrade.
[World upgrade details](docs/MIGRATION.md)

## Mining and trading
Expand Down Expand Up @@ -86,9 +86,9 @@ upgrade recipes are not part of this port.

## Development and credits

The 1.15.2 branch uses ForgeGradle 7 and builds a Java 8 mod.
The 1.16.5 branch uses ForgeGradle 7 and builds a Java 8 mod.
See [building and Eclipse setup](docs/BUILDING.md) and the
[manual testing](docs/MANUAL_TESTING.md), [porting notes](docs/PORTING_115.md)
[manual testing](docs/MANUAL_TESTING.md), [porting notes](docs/PORTING_116.md)
and the [changelog](CHANGELOG.txt).

The gem artwork comes from the 1.12.2 branch. Thanks to Aedda, Eejit,
Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ group = project.mod_group
version = project.mod_version
base.archivesName = 'BaseGems'

if (!(project.version ==~ /\d+\.\d+\.\d+\.115021/)) {
throw new GradleException('Use Major.Minor.Patch.115021 for Minecraft 1.15.2 on Forge.')
if (!(project.version ==~ /\d+\.\d+\.\d+\.116051/)) {
throw new GradleException('Use Major.Minor.Patch.116051 for Minecraft 1.16.5 on Forge.')
}

// Gradle and Mavenizer use modern JDKs; the mod and game still use Java 8.
Expand Down Expand Up @@ -190,9 +190,9 @@ tasks.register('verifyFluidRegistration', Exec) {
}
tasks.named('check') { dependsOn 'verifyFluidRegistration' }

apply from: 'gradle/release-115.gradle'
apply from: 'gradle/release-116.gradle'

apply from: 'gradle/normalize-javadoc-trees.gradle'

apply from: 'gradle/verification-115.gradle'
apply from: 'gradle/compatibility-115.gradle'
apply from: 'gradle/verification-116.gradle'
apply from: 'gradle/compatibility-116.gradle'
26 changes: 14 additions & 12 deletions docs/BUILDING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Building Base Gems for Minecraft 1.15.2
# Building Base Gems for Minecraft 1.16.5

Use Java 17 to run Gradle 9.6.1, Java 25 for ForgeGradle's Mavenizer, and
Java 8 for compilation and Minecraft. Put Java 17 on your command path and
Expand All @@ -20,37 +20,39 @@ From the inner Git checkout on Windows:

```powershell
python gradle/stage-legacy-dependencies.py .gradle/legacy-dependencies
.\gradlew.bat check build verify115ReleaseArtifacts write115ReleaseChecksums prepareEclipse
.\gradlew.bat check build verify116ReleaseArtifacts write116ReleaseChecksums prepareEclipse
```

On Linux or macOS, use `python3` and `./gradlew`. The game jar is
`build/libs/BaseGems-2.5.0.115021.jar`. The build uses Forge 31.2.57 and
MCP snapshot 20200514-1.15.1. Model, recipe, tag, language and advancement data
`build/libs/BaseGems-2.5.0.116051.jar`. The build uses Forge 36.2.34 and
official 1.16.5 mappings. Model, recipe, tag, language and advancement data
is generated during resource processing.

`prepareEclipse` generates the Eclipse project and Java 8 launches with
processed resources and the pinned runtime dependencies. Use the same
Gradle cache for Eclipse and command-line builds.
The optional metal integration uses published Base Metals 3.0.3.115021 and Modern Metals 3.0.0.115021.
The optional metal integration uses the published Base Metals 3.1.2.116051 and Modern Metals 3.0.0.116051.
Run `prepareEclipse` again after changing sources or resources.

Use a fresh test world when checking the OreSpawn defaults. In Low
Fantasy, try mining and trading a gem, then check that storage blocks are
still craftable and equipment recipes have gone. See [ore generation](ORE_GENERATION.md)
for the placement rules and config overrides.

`prepareEclipse` generates standalone, Base Metals, Modern Metals and combined client profiles. Each has its own run folder. Replaced
`prepareEclipse` generates standalone, Base Metals, Modern Metals and combined
clients. Each has its own run folder. Replaced
companion jars are retained under `.gradle/retired-compatibility-jars`; saves,
config and unrelated mods are preserved.

After building the sibling metal projects, run `pinLocalCompanions`, then
`prepareEclipse` in a separate invocation to test local builds of the companion mods.
Both local player and mapped jars are hash-checked; a stale pin stops refresh.
The selected local Base Metals includes the bars and ore-overlay corrections.
Release mode ignores automatic local pins and rejects an explicit local override.
The local companion hooks remain available for future target-native builds.
A local override must be pinned by player and mapped SHA-256 and is rejected
in release mode. The published dependencies supply both companion profiles.

Use `D:/GradleCaches/minecraft-mods-shared` for this checkout in both Eclipse
and the terminal, matching the existing Base Metals 1.16 setup. Older version
ports use a different cache and must not write into this one concurrently.

`runProbeServer` and `runProbeClient` are explicit automated checks. Use a
new `-PprobeDirectory=run/verification/<case>` for each scenario and keep
their receipts. Ordinary launches exclude these test mods.
See [manual testing](MANUAL_TESTING.md) and [porting notes](PORTING_115.md).
See [manual testing](MANUAL_TESTING.md) and [porting notes](PORTING_116.md).
23 changes: 16 additions & 7 deletions docs/MANUAL_TESTING.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# Testing Base Gems 1.15.2
# Testing Base Gems 1.16.5

Use Java 8, Forge 31.2.57 and OreSpawn 4.1.7.115021. The game jar is
`build/libs/BaseGems-2.5.0.115021.jar`. Base Metals 3.0.3.115021 is optional.
Use Java 8, Forge 36.2.34 and OreSpawn 4.1.7.116051. The game jar is
`build/libs/BaseGems-2.5.0.116051.jar`. Base Metals 3.1.2.116051 is optional.

Build the siblings, run `pinLocalCompanions`, then run `prepareEclipse` separately. Choose a normal launch:
Run `prepareEclipse` and choose a normal launch:

- `runClient.launch`: Base Gems and OreSpawn.
- `runClientWithBaseMetals.launch`: adds the selected Base Metals candidate.
- `runClientWithModernMetals.launch`: adds the pinned Modern Metals build.
- `runClientWithBaseAndModern.launch`: adds both pinned metal candidates.
- `runClientWithBaseMetals.launch`: adds published Base Metals 3.1.2.116051.
- `runClientWithModernMetals.launch`: adds published Modern Metals 3.0.0.116051.
- `runClientWithBaseAndModern.launch`: adds both metal mods.

Pin the player and mapped jars before regenerating Eclipse with a local
companion override.

Use the matching versions in a separate launcher instance if testing packaged
jars. Avoid duplicate copies of the same mod.
Expand Down Expand Up @@ -47,3 +50,9 @@ Restore it and restart before reconnecting.
Use a copy for world upgrades. Keep the legacy registry sidecar, then check
placed gems, door states, inventories, buckets and worn equipment. Save,
leave and reopen the copy. See [migration](MIGRATION.md).

Check the bow and crossbow at each draw stage, shield blocking and the fishing
rod's cast model. 1.16 uses per-item model predicates for these. For a floor
trapdoor or a door against a wall, nearby stone should stay visible through
the holes, including when open or waterlogged. Connected bars should have
vanilla joins without overlapping centre posts or caps.
Loading