Skip to content

Commit d4deafd

Browse files
authored
Bring Base Gems to Minecraft 1.16.5 (#30)
This brings all 33 gems to Forge 36.2.34. Bars use vanilla connections, doors and trapdoors show the terrain through their gaps, and the ore overlays keep their spacing. I've pinned the published OreSpawn, Base Metals and Modern Metals builds. Base Metals and Modern Metals are optional and can supply shared crushing.
2 parents c2f42ef + 8284924 commit d4deafd

58 files changed

Lines changed: 981 additions & 554 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: Base Gems 1.15.2 CI
1+
name: Base Gems 1.16.5 CI
22

33
on:
44
push:
5-
branches: [master-1.15.2, 'feature/**']
5+
branches: [master-1.16.5, 'feature/**']
66
pull_request:
7-
branches: [master-1.15.2]
7+
branches: [master-1.16.5]
88

99
permissions:
1010
contents: read
1111

1212
concurrency:
13-
group: basegems-115-${{ github.workflow }}-${{ github.ref }}
13+
group: basegems-116-${{ github.workflow }}-${{ github.ref }}
1414
cancel-in-progress: true
1515

1616
jobs:
@@ -44,7 +44,7 @@ jobs:
4444
run: python3 gradle/stage-legacy-dependencies.py .gradle/legacy-dependencies
4545
- name: Build, audit and generate Eclipse launches
4646
run: |
47-
bash ./gradlew clean check build javadoc verify115ReleaseArtifacts write115ReleaseChecksums prepareEclipse \
47+
bash ./gradlew clean check build javadoc verify116ReleaseArtifacts write116ReleaseChecksums prepareEclipse \
4848
-PreleaseBuild=true -PlegacyDependencyVerificationRepository="$PWD/.gradle/legacy-dependencies" \
4949
--no-daemon --stacktrace --max-workers=2 \
5050
"-Dorg.gradle.java.installations.paths=$JAVA_HOME,$JAVA_HOME_8_X64,$JAVA_HOME_25_X64" \
@@ -57,15 +57,15 @@ jobs:
5757
- name: Upload audited release candidate
5858
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
5959
with:
60-
name: BaseGems-1.15.2-${{ github.sha }}
60+
name: BaseGems-1.16.5-${{ github.sha }}
6161
if-no-files-found: error
6262
retention-days: 30
6363
path: build/release-bundle/
6464
- name: Retain failure diagnostics
6565
if: failure()
6666
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
6767
with:
68-
name: BaseGems-1.15.2-diagnostics-${{ github.sha }}
68+
name: BaseGems-1.16.5-diagnostics-${{ github.sha }}
6969
if-no-files-found: ignore
7070
retention-days: 14
7171
path: |

‎.github/workflows/deploy-release.yml‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: Release Base Gems 1.15.2
1+
name: Release Base Gems 1.16.5
22
run-name: Base Gems ${{ inputs.release_version }} (${{ inputs.confirm_live_publication && 'publish' || 'verify' }})
33

44
on:
55
workflow_dispatch:
66
inputs:
77
release_version:
8-
description: Four-part version for Minecraft 1.15.2
8+
description: Four-part version for Minecraft 1.16.5
99
required: true
1010
type: string
1111
release_commit:
12-
description: Full SHA of the checked MMD master-1.15.2 commit
12+
description: Full SHA of the checked MMD master-1.16.5 commit
1313
required: true
1414
type: string
1515
tested_jar_sha256:
@@ -33,13 +33,13 @@ permissions:
3333
contents: read
3434

3535
concurrency:
36-
group: basegems-release-115
36+
group: basegems-release-116
3737
cancel-in-progress: false
3838

3939
jobs:
4040
qualify:
4141
name: Verify merged CI candidate
42-
if: github.repository == 'MinecraftModDevelopmentMods/BaseGems' && github.ref == 'refs/heads/master-1.15.2'
42+
if: github.repository == 'MinecraftModDevelopmentMods/BaseGems' && github.ref == 'refs/heads/master-1.16.5'
4343
runs-on: ubuntu-latest
4444
timeout-minutes: 10
4545
permissions:
@@ -61,21 +61,21 @@ jobs:
6161
TESTED_SHA: ${{ inputs.tested_jar_sha256 }}
6262
run: |
6363
set -euo pipefail
64-
[[ "$RELEASE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.115021$ ]]
64+
[[ "$RELEASE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.116051$ ]]
6565
[[ "$RELEASE_SHA" =~ ^[[:xdigit:]]{40}$ ]]
6666
[[ "$TESTED_SHA" =~ ^[[:xdigit:]]{64}$ ]]
6767
test "$(git rev-parse HEAD)" = "$RELEASE_SHA"
68-
test "$(gh api "repos/$GITHUB_REPOSITORY/branches/master-1.15.2" --jq .commit.sha)" = "$RELEASE_SHA"
68+
test "$(gh api "repos/$GITHUB_REPOSITORY/branches/master-1.16.5" --jq .commit.sha)" = "$RELEASE_SHA"
6969
grep -Fxq "mod_version=$RELEASE_VERSION" gradle.properties
70-
grep -Fxq 'minecraft_version=1.15.2' gradle.properties
70+
grep -Fxq 'minecraft_version=1.16.5' gradle.properties
7171
ci_run="$(gh api --method GET "repos/$GITHUB_REPOSITORY/actions/workflows/ci.yml/runs" \
72-
-f branch=master-1.15.2 -f head_sha="$RELEASE_SHA" -f event=push -f status=success \
72+
-f branch=master-1.16.5 -f head_sha="$RELEASE_SHA" -f event=push -f status=success \
7373
--jq '.workflow_runs[0].id // empty')"
7474
test -n "$ci_run"
7575
echo "ci_run=$ci_run" >> "$GITHUB_OUTPUT"
7676
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
7777
with:
78-
name: BaseGems-1.15.2-${{ inputs.release_commit }}
78+
name: BaseGems-1.16.5-${{ inputs.release_commit }}
7979
run-id: ${{ steps.candidate.outputs.ci_run }}
8080
github-token: ${{ github.token }}
8181
path: ${{ runner.temp }}/release-input
@@ -152,7 +152,7 @@ jobs:
152152
- uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6
153153
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
154154
with:
155-
name: BaseGems-1.15.2-${{ inputs.release_commit }}
155+
name: BaseGems-1.16.5-${{ inputs.release_commit }}
156156
run-id: ${{ needs.qualify.outputs.ci_run }}
157157
github-token: ${{ github.token }}
158158
path: ${{ runner.temp }}/release-input
@@ -179,7 +179,7 @@ jobs:
179179
steps:
180180
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
181181
with:
182-
name: BaseGems-1.15.2-${{ inputs.release_commit }}
182+
name: BaseGems-1.16.5-${{ inputs.release_commit }}
183183
run-id: ${{ needs.qualify.outputs.ci_run }}
184184
github-token: ${{ github.token }}
185185
path: ${{ runner.temp }}/release-input
@@ -192,12 +192,12 @@ jobs:
192192
with:
193193
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
194194
curseforge-id: '1793939'
195-
name: Base Gems ${{ inputs.release_version }} for Minecraft 1.15.2 (Forge)
195+
name: Base Gems ${{ inputs.release_version }} for Minecraft 1.16.5 (Forge)
196196
version: ${{ inputs.release_version }}
197197
version-type: ${{ inputs.curseforge_release_level }}
198198
changelog-file: ${{ runner.temp }}/release-input/CHANGELOG.txt
199199
loaders: forge
200-
game-versions: '1.15.2'
200+
game-versions: '1.16.5'
201201
game-version-filter: none
202202
environment: client | server
203203
java: Java 8
@@ -233,7 +233,7 @@ jobs:
233233
steps:
234234
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
235235
with:
236-
name: BaseGems-1.15.2-${{ inputs.release_commit }}
236+
name: BaseGems-1.16.5-${{ inputs.release_commit }}
237237
run-id: ${{ needs.qualify.outputs.ci_run }}
238238
github-token: ${{ github.token }}
239239
path: ${{ runner.temp }}/release-input
@@ -246,5 +246,5 @@ jobs:
246246
set -euo pipefail
247247
sha256sum --check --strict SHA256SUMS
248248
gh release create "$RELEASE_VERSION" --repo "$GITHUB_REPOSITORY" --verify-tag \
249-
--title "Base Gems $RELEASE_VERSION for Minecraft 1.15.2 (Forge)" \
249+
--title "Base Gems $RELEASE_VERSION for Minecraft 1.16.5 (Forge)" \
250250
--notes-file CHANGELOG.txt "BaseGems-$RELEASE_VERSION"{,-sources,-javadoc}.jar SHA256SUMS

‎.github/workflows/release-on-tag.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: Validate Base Gems 1.15.2 tag
1+
name: Validate Base Gems 1.16.5 tag
22
on:
33
push:
4-
tags: ['*.*.*.115021']
4+
tags: ['*.*.*.116051']
55
permissions:
66
contents: read
77
actions: read
@@ -16,5 +16,5 @@ jobs:
1616
run: |
1717
set -euo pipefail
1818
test "$GITHUB_REF_NAME" = "$(sed -n 's/^mod_version=//p' gradle.properties)"
19-
grep -Fxq 'minecraft_version=1.15.2' gradle.properties
19+
grep -Fxq 'minecraft_version=1.16.5' gradle.properties
2020
echo 'Tag validated. Publication uses deploy-release.yml with explicit confirmation.' >> "$GITHUB_STEP_SUMMARY"

‎CHANGELOG.txt‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1+
2.5.0.116051 for Minecraft 1.16.5
2+
3+
All 33 gems move across from the current 1.15.2 work, including the bars and
4+
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.
5+
6+
- Keeps the gem names, config keys, Fantasy modes and deposit distribution.
7+
- Updates recipes, GUI rendering, fluids and save hooks for native 1.16 APIs.
8+
- Converts older gem wall connections to the new wall states when upgrading saves.
9+
- Keeps bow, crossbow, shield and fishing rod model animations on the new renderer.
10+
- Retains mining requirements, Fortune, Silk Touch, XP, trades and recipe discovery.
11+
- Ore overlays keep the wider gap and their explicit texture coordinates.
12+
113
2.5.0.115021 for Minecraft 1.15.2
214

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

18+
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.
19+
620
All 33 gems move across from the 1.14.4 release, with the same names, config
721
keys, recipes and deposit distribution. Use OreSpawn 4.1.7.115021 and Java 8;
8-
Base Metals 3.0.3.115021 and Modern Metals 3.0.0.115021 are optional.
9-
Bars connect like vanilla iron bars.
22+
Base Metals 3.0.2.115021 is optional.
1023

1124
- Ore overlays keep the wider spacing and explicit texture coordinates.
1225
- Gem ores, decorative blocks, molten gems and projectiles use native 1.15 rendering.

‎README.md‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Base Gems for Minecraft 1.15.2
1+
# Base Gems for Minecraft 1.16.5
22

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

88
## Installation
99

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

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

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

2222
Gem crushing works with the Base Gems crackhammer on its own. With Base
23-
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)
24-
also supplies shared crushing when installed.
23+
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)
24+
can supply shared crushing when Base Metals is absent.
2525

2626
## Upgrading a world
2727

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

3333
## Mining and trading
@@ -86,9 +86,9 @@ upgrade recipes are not part of this port.
8686

8787
## Development and credits
8888

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

9494
The gem artwork comes from the 1.12.2 branch. Thanks to Aedda, Eejit,

‎build.gradle‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ group = project.mod_group
1313
version = project.mod_version
1414
base.archivesName = 'BaseGems'
1515

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

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

193-
apply from: 'gradle/release-115.gradle'
193+
apply from: 'gradle/release-116.gradle'
194194

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

197-
apply from: 'gradle/verification-115.gradle'
198-
apply from: 'gradle/compatibility-115.gradle'
197+
apply from: 'gradle/verification-116.gradle'
198+
apply from: 'gradle/compatibility-116.gradle'

‎docs/BUILDING.md‎

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Building Base Gems for Minecraft 1.15.2
1+
# Building Base Gems for Minecraft 1.16.5
22

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

2121
```powershell
2222
python gradle/stage-legacy-dependencies.py .gradle/legacy-dependencies
23-
.\gradlew.bat check build verify115ReleaseArtifacts write115ReleaseChecksums prepareEclipse
23+
.\gradlew.bat check build verify116ReleaseArtifacts write116ReleaseChecksums prepareEclipse
2424
```
2525

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

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

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

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

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

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

5355
`runProbeServer` and `runProbeClient` are explicit automated checks. Use a
5456
new `-PprobeDirectory=run/verification/<case>` for each scenario and keep
5557
their receipts. Ordinary launches exclude these test mods.
56-
See [manual testing](MANUAL_TESTING.md) and [porting notes](PORTING_115.md).
58+
See [manual testing](MANUAL_TESTING.md) and [porting notes](PORTING_116.md).

‎docs/MANUAL_TESTING.md‎

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
# Testing Base Gems 1.15.2
1+
# Testing Base Gems 1.16.5
22

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

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

88
- `runClient.launch`: Base Gems and OreSpawn.
9-
- `runClientWithBaseMetals.launch`: adds the selected Base Metals candidate.
10-
- `runClientWithModernMetals.launch`: adds the pinned Modern Metals build.
11-
- `runClientWithBaseAndModern.launch`: adds both pinned metal candidates.
9+
- `runClientWithBaseMetals.launch`: adds published Base Metals 3.1.2.116051.
10+
- `runClientWithModernMetals.launch`: adds published Modern Metals 3.0.0.116051.
11+
- `runClientWithBaseAndModern.launch`: adds both metal mods.
12+
13+
Pin the player and mapped jars before regenerating Eclipse with a local
14+
companion override.
1215

1316
Use the matching versions in a separate launcher instance if testing packaged
1417
jars. Avoid duplicate copies of the same mod.
@@ -47,3 +50,9 @@ Restore it and restart before reconnecting.
4750
Use a copy for world upgrades. Keep the legacy registry sidecar, then check
4851
placed gems, door states, inventories, buckets and worn equipment. Save,
4952
leave and reopen the copy. See [migration](MIGRATION.md).
53+
54+
Check the bow and crossbow at each draw stage, shield blocking and the fishing
55+
rod's cast model. 1.16 uses per-item model predicates for these. For a floor
56+
trapdoor or a door against a wall, nearby stone should stay visible through
57+
the holes, including when open or waterlogged. Connected bars should have
58+
vanilla joins without overlapping centre posts or caps.

0 commit comments

Comments
 (0)