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

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

permissions:
contents: read

concurrency:
group: basegems-114-${{ github.workflow }}-${{ github.ref }}
group: basegems-115-${{ 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 verify114ReleaseArtifacts write114ReleaseChecksums prepareEclipse \
bash ./gradlew clean check build javadoc verify115ReleaseArtifacts write115ReleaseChecksums 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.14.4-${{ github.sha }}
name: BaseGems-1.15.2-${{ 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.14.4-diagnostics-${{ github.sha }}
name: BaseGems-1.15.2-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.14.4
name: Release Base Gems 1.15.2
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.14.4
description: Four-part version for Minecraft 1.15.2
required: true
type: string
release_commit:
description: Full SHA of the checked MMD master-1.14.4 commit
description: Full SHA of the checked MMD master-1.15.2 commit
required: true
type: string
tested_jar_sha256:
Expand All @@ -33,13 +33,13 @@ permissions:
contents: read

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

jobs:
qualify:
name: Verify merged CI candidate
if: github.repository == 'MinecraftModDevelopmentMods/BaseGems' && github.ref == 'refs/heads/master-1.14.4'
if: github.repository == 'MinecraftModDevelopmentMods/BaseGems' && github.ref == 'refs/heads/master-1.15.2'
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]+\.114041$ ]]
[[ "$RELEASE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.115021$ ]]
[[ "$RELEASE_SHA" =~ ^[[:xdigit:]]{40}$ ]]
[[ "$TESTED_SHA" =~ ^[[:xdigit:]]{64}$ ]]
test "$(git rev-parse HEAD)" = "$RELEASE_SHA"
test "$(gh api "repos/$GITHUB_REPOSITORY/branches/master-1.14.4" --jq .commit.sha)" = "$RELEASE_SHA"
test "$(gh api "repos/$GITHUB_REPOSITORY/branches/master-1.15.2" --jq .commit.sha)" = "$RELEASE_SHA"
grep -Fxq "mod_version=$RELEASE_VERSION" gradle.properties
grep -Fxq 'minecraft_version=1.14.4' gradle.properties
grep -Fxq 'minecraft_version=1.15.2' gradle.properties
ci_run="$(gh api --method GET "repos/$GITHUB_REPOSITORY/actions/workflows/ci.yml/runs" \
-f branch=master-1.14.4 -f head_sha="$RELEASE_SHA" -f event=push -f status=success \
-f branch=master-1.15.2 -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.14.4-${{ inputs.release_commit }}
name: BaseGems-1.15.2-${{ 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.14.4-${{ inputs.release_commit }}
name: BaseGems-1.15.2-${{ 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.14.4-${{ inputs.release_commit }}
name: BaseGems-1.15.2-${{ 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.14.4 (Forge)
name: Base Gems ${{ inputs.release_version }} for Minecraft 1.15.2 (Forge)
version: ${{ inputs.release_version }}
version-type: ${{ inputs.curseforge_release_level }}
changelog-file: ${{ runner.temp }}/release-input/CHANGELOG.txt
loaders: forge
game-versions: '1.14.4'
game-versions: '1.15.2'
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.14.4-${{ inputs.release_commit }}
name: BaseGems-1.15.2-${{ 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.14.4 (Forge)" \
--title "Base Gems $RELEASE_VERSION for Minecraft 1.15.2 (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.14.4 tag
name: Validate Base Gems 1.15.2 tag
on:
push:
tags: ['*.*.*.114041']
tags: ['*.*.*.115021']
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.14.4' gradle.properties
grep -Fxq 'minecraft_version=1.15.2' gradle.properties
echo 'Tag validated. Publication uses deploy-release.yml with explicit confirmation.' >> "$GITHUB_STEP_SUMMARY"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ secret.json
/release-candidates/
__pycache__/
*.pyc
/local-basemetals.json
/local-modernmetals.json
16 changes: 16 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
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.

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.

- Ore overlays keep the wider spacing and explicit texture coordinates.
- Gem ores, decorative blocks, molten gems and projectiles use native 1.15 rendering.
- Mining XP, Fortune, Silk Touch, smith trades and recipe discovery carry over.
- Both config screens and the High/Low Fantasy settings remain available.
- Saved gem blocks and items keep their IDs when upgrading a copy of a 1.14 world.

2.5.0.114041 for Minecraft 1.14.4

All 33 gems move to Forge 1.14.4, using OreSpawn 4.1.7.114041. Base Metals
Expand Down
31 changes: 14 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Base Gems for Minecraft 1.14.4
# Base Gems for Minecraft 1.15.2

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,25 @@ pieces, tools, weapons and shields.

## Installation

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

Use [MMD OreSpawn 4.1.7.114041](https://github.com/MinecraftModDevelopmentMods/OreSpawn/releases/tag/4.1.7.114041)
or a later compatible 1.14.4 release. It includes the fix for checking cave air
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.

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

## Upgrading a world

Make a separate copy before opening a 1.13.2 world in 1.14.4. Keep the
Make a separate copy before opening a 1.14.4 world in 1.15.2. 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.
[World upgrade details](docs/MIGRATION.md)
Expand All @@ -36,9 +34,8 @@ from 1.10–1.12 should first go through the released Base Gems 1.13.2 upgrade.

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

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

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

## Development and credits

The 1.14.4 branch uses ForgeGradle 7 and builds a Java 8 mod.
The 1.15.2 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_114.md)
[manual testing](docs/MANUAL_TESTING.md), [porting notes](docs/PORTING_115.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+\.114041/)) {
throw new GradleException('Use Major.Minor.Patch.114041 for Minecraft 1.14.4 on Forge.')
if (!(project.version ==~ /\d+\.\d+\.\d+\.115021/)) {
throw new GradleException('Use Major.Minor.Patch.115021 for Minecraft 1.15.2 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-114.gradle'
apply from: 'gradle/release-115.gradle'

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

apply from: 'gradle/verification-114.gradle'
apply from: 'gradle/compatibility-114.gradle'
apply from: 'gradle/verification-115.gradle'
apply from: 'gradle/compatibility-115.gradle'
31 changes: 14 additions & 17 deletions docs/BUILDING.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Building Base Gems for Minecraft 1.14.4
# Building Base Gems for Minecraft 1.15.2

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
make the other JDKs available to Gradle's toolchain detection. Python 3
stages the pinned OreSpawn, Base Metals and Modern Metals jars, checks their SHA-256
stages the pinned OreSpawn and Base Metals jars, checks their SHA-256
and generates the resource pack and data pack.

Use Python 3.10 or later. If Eclipse cannot find it on its PATH, create an
Expand All @@ -20,40 +20,37 @@ From the inner Git checkout on Windows:

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

On Linux or macOS, use `python3` and `./gradlew`. The game jar is
`build/libs/BaseGems-2.5.0.114041.jar`. The build uses Forge 28.2.26 and
MCP snapshot 20190719-1.14.3. Model, recipe, tag, language and advancement data
`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
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 integrations use the published Base Metals 3.0.2.114041 and
Modern Metals 3.0.0.114041 releases. Run `prepareEclipse` again after changing
sources or resources.
The optional metal integration uses published Base Metals 3.0.3.115021 and Modern Metals 3.0.0.115021.
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 four isolated clients: `runClient.launch`,
`runClientWithBaseMetals.launch`, `runClientWithModernMetals.launch` and
`runClientWithBaseAndModern.launch`. Each has its own run folder. Replaced
`prepareEclipse` generates standalone, Base Metals, Modern Metals and combined client profiles. Each has its own run folder. Replaced
companion jars are retained under `.gradle/retired-compatibility-jars`; saves,
config and unrelated mods are preserved.

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

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

`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_114.md).
See [manual testing](MANUAL_TESTING.md) and [porting notes](PORTING_115.md).
Loading