Skip to content

Commit c2f42ef

Browse files
authored
Bring Base Gems to Minecraft 1.15.2 (#29)
This brings all 33 gems across to Forge 31.2.57. The bars now use vanilla connections and doors and trapdoors show the terrain through their gaps. The ore overlays keep their spacing and texture fixes.
2 parents 87de48f + 1c050eb commit c2f42ef

36 files changed

Lines changed: 726 additions & 885 deletions

‎.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.14.4 CI
1+
name: Base Gems 1.15.2 CI
22

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

99
permissions:
1010
contents: read
1111

1212
concurrency:
13-
group: basegems-114-${{ github.workflow }}-${{ github.ref }}
13+
group: basegems-115-${{ 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 verify114ReleaseArtifacts write114ReleaseChecksums prepareEclipse \
47+
bash ./gradlew clean check build javadoc verify115ReleaseArtifacts write115ReleaseChecksums 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.14.4-${{ github.sha }}
60+
name: BaseGems-1.15.2-${{ 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.14.4-diagnostics-${{ github.sha }}
68+
name: BaseGems-1.15.2-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.14.4
1+
name: Release Base Gems 1.15.2
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.14.4
8+
description: Four-part version for Minecraft 1.15.2
99
required: true
1010
type: string
1111
release_commit:
12-
description: Full SHA of the checked MMD master-1.14.4 commit
12+
description: Full SHA of the checked MMD master-1.15.2 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-114
36+
group: basegems-release-115
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.14.4'
42+
if: github.repository == 'MinecraftModDevelopmentMods/BaseGems' && github.ref == 'refs/heads/master-1.15.2'
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]+\.114041$ ]]
64+
[[ "$RELEASE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.115021$ ]]
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.14.4" --jq .commit.sha)" = "$RELEASE_SHA"
68+
test "$(gh api "repos/$GITHUB_REPOSITORY/branches/master-1.15.2" --jq .commit.sha)" = "$RELEASE_SHA"
6969
grep -Fxq "mod_version=$RELEASE_VERSION" gradle.properties
70-
grep -Fxq 'minecraft_version=1.14.4' gradle.properties
70+
grep -Fxq 'minecraft_version=1.15.2' gradle.properties
7171
ci_run="$(gh api --method GET "repos/$GITHUB_REPOSITORY/actions/workflows/ci.yml/runs" \
72-
-f branch=master-1.14.4 -f head_sha="$RELEASE_SHA" -f event=push -f status=success \
72+
-f branch=master-1.15.2 -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.14.4-${{ inputs.release_commit }}
78+
name: BaseGems-1.15.2-${{ 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.14.4-${{ inputs.release_commit }}
155+
name: BaseGems-1.15.2-${{ 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.14.4-${{ inputs.release_commit }}
182+
name: BaseGems-1.15.2-${{ 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.14.4 (Forge)
195+
name: Base Gems ${{ inputs.release_version }} for Minecraft 1.15.2 (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.14.4'
200+
game-versions: '1.15.2'
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.14.4-${{ inputs.release_commit }}
236+
name: BaseGems-1.15.2-${{ 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.14.4 (Forge)" \
249+
--title "Base Gems $RELEASE_VERSION for Minecraft 1.15.2 (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.14.4 tag
1+
name: Validate Base Gems 1.15.2 tag
22
on:
33
push:
4-
tags: ['*.*.*.114041']
4+
tags: ['*.*.*.115021']
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.14.4' gradle.properties
19+
grep -Fxq 'minecraft_version=1.15.2' gradle.properties
2020
echo 'Tag validated. Publication uses deploy-release.yml with explicit confirmation.' >> "$GITHUB_STEP_SUMMARY"

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ secret.json
3535
/release-candidates/
3636
__pycache__/
3737
*.pyc
38+
/local-basemetals.json
39+
/local-modernmetals.json

‎CHANGELOG.txt‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
2.5.0.115021 for Minecraft 1.15.2
2+
3+
Doors, trapdoors and bars no longer hide the terrain behind their gaps. Their
4+
placement and collision behaviour stay the same.
5+
6+
All 33 gems move across from the 1.14.4 release, with the same names, config
7+
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.
10+
11+
- Ore overlays keep the wider spacing and explicit texture coordinates.
12+
- Gem ores, decorative blocks, molten gems and projectiles use native 1.15 rendering.
13+
- Mining XP, Fortune, Silk Touch, smith trades and recipe discovery carry over.
14+
- Both config screens and the High/Low Fantasy settings remain available.
15+
- Saved gem blocks and items keep their IDs when upgrading a copy of a 1.14 world.
16+
117
2.5.0.114041 for Minecraft 1.14.4
218

319
All 33 gems move to Forge 1.14.4, using OreSpawn 4.1.7.114041. Base Metals

‎README.md‎

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Base Gems for Minecraft 1.14.4
1+
# Base Gems for Minecraft 1.15.2
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,25 @@ pieces, tools, weapons and shields.
77

88
## Installation
99

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

13-
Use [MMD OreSpawn 4.1.7.114041](https://github.com/MinecraftModDevelopmentMods/OreSpawn/releases/tag/4.1.7.114041)
14-
or a later compatible 1.14.4 release. It includes the fix for checking cave air
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
1515
at generation boundaries; no separate local engine is needed.
1616

1717
Base Metals is optional for a new world. When installed together, use
18-
[Base Metals 3.0.2.114041](https://github.com/MinecraftModDevelopmentMods/BaseMetals/releases/tag/3.0.2.114041)
19-
or a later compatible 1.14.4 release. If your old
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
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. With
24-
[Modern Metals 3.0.0.114041](https://github.com/MinecraftModDevelopmentMods/ModernMetals/releases/tag/3.0.0.114041)
25-
alone, its crackhammers can use them too. Both metal mods remain optional;
26-
Base Metals owns shared crushing when both are installed.
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.
2725

2826
## Upgrading a world
2927

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

3735
Use a tool strong enough for the gem. Agate and jade need stone level;
3836
jasper, ruby and sapphire need iron level; black diamond needs diamond level.
39-
Modern Metals' galvanized steel, stainless steel and titanium hammers are
40-
iron level. A weaker tool breaks the ore
41-
without a drop. These are the same mining requirements as in 1.12.
37+
A weaker tool breaks the ore without a drop. These are the same mining
38+
requirements as in 1.12.
4239

4340
Gem ores give XP when mined. Fortune can increase the gem yield, and Silk
4441
Touch lets you take the ore block home. Armourers, toolsmiths and weaponsmiths buy and sell gems for emeralds,
@@ -66,7 +63,7 @@ Repair a damaged gem shield by putting it and one matching plate in a
6663
crafting grid. Its name and enchantments stay. Repair is a manual recipe
6764
and does not appear in the recipe book.
6865

69-
Open **Mods → Base Gems → Config** or choose **Base Gems** from OreSpawn's
66+
Open **Mods > Base Gems > Config** or choose **Base Gems** from OreSpawn's
7067
**Mods** list. Both screens save to `config/basegems-common.toml`. Restart the
7168
game or server after changing Fantasy Level or switching a gem on or off.
7269
Gem switches keep existing blocks and items available in old worlds.
@@ -89,9 +86,9 @@ upgrade recipes are not part of this port.
8986

9087
## Development and credits
9188

92-
The 1.14.4 branch uses ForgeGradle 7 and builds a Java 8 mod.
89+
The 1.15.2 branch uses ForgeGradle 7 and builds a Java 8 mod.
9390
See [building and Eclipse setup](docs/BUILDING.md) and the
94-
[manual testing](docs/MANUAL_TESTING.md), [porting notes](docs/PORTING_114.md)
91+
[manual testing](docs/MANUAL_TESTING.md), [porting notes](docs/PORTING_115.md)
9592
and the [changelog](CHANGELOG.txt).
9693

9794
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+\.114041/)) {
17-
throw new GradleException('Use Major.Minor.Patch.114041 for Minecraft 1.14.4 on Forge.')
16+
if (!(project.version ==~ /\d+\.\d+\.\d+\.115021/)) {
17+
throw new GradleException('Use Major.Minor.Patch.115021 for Minecraft 1.15.2 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-114.gradle'
193+
apply from: 'gradle/release-115.gradle'
194194

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

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

‎docs/BUILDING.md‎

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Building Base Gems for Minecraft 1.14.4
1+
# Building Base Gems for Minecraft 1.15.2
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
55
make the other JDKs available to Gradle's toolchain detection. Python 3
6-
stages the pinned OreSpawn, Base Metals and Modern Metals jars, checks their SHA-256
6+
stages the pinned OreSpawn and Base Metals jars, checks their SHA-256
77
and generates the resource pack and data pack.
88

99
Use Python 3.10 or later. If Eclipse cannot find it on its PATH, create an
@@ -20,40 +20,37 @@ 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 verify114ReleaseArtifacts write114ReleaseChecksums prepareEclipse
23+
.\gradlew.bat check build verify115ReleaseArtifacts write115ReleaseChecksums prepareEclipse
2424
```
2525

2626
On Linux or macOS, use `python3` and `./gradlew`. The game jar is
27-
`build/libs/BaseGems-2.5.0.114041.jar`. The build uses Forge 28.2.26 and
28-
MCP snapshot 20190719-1.14.3. Model, recipe, tag, language and advancement data
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
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 integrations use the published Base Metals 3.0.2.114041 and
35-
Modern Metals 3.0.0.114041 releases. Run `prepareEclipse` again after changing
36-
sources or resources.
34+
The optional metal integration uses published Base Metals 3.0.3.115021 and Modern Metals 3.0.0.115021.
35+
Run `prepareEclipse` again after changing sources or resources.
3736

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

43-
`prepareEclipse` generates four isolated clients: `runClient.launch`,
44-
`runClientWithBaseMetals.launch`, `runClientWithModernMetals.launch` and
45-
`runClientWithBaseAndModern.launch`. Each has its own run folder. Replaced
42+
`prepareEclipse` generates standalone, Base Metals, Modern Metals and combined client profiles. Each has its own run folder. Replaced
4643
companion jars are retained under `.gradle/retired-compatibility-jars`; saves,
4744
config and unrelated mods are preserved.
4845

49-
To test a different local Modern Metals build, supply its mapped development
50-
jar explicitly. Release builds always use the published dependency:
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.
5151

52-
```powershell
53-
.\gradlew.bat prepareEclipse "-PmodernMetalsDevelopmentJar=C:/path/ModernMetals-3.0.0.114041-deobf.jar"
54-
```
5552

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

0 commit comments

Comments
 (0)