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 Minerals 1.13.2 CI
name: Base Minerals 1.14.4 CI

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

permissions:
contents: read

concurrency:
group: baseminerals-113-${{ github.workflow }}-${{ github.ref }}
group: baseminerals-114-${{ 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 verify113ReleaseArtifacts write113ReleaseChecksums genEclipseRuns eclipse \
bash ./gradlew clean check build javadoc verify114ReleaseArtifacts write114ReleaseChecksums genEclipseRuns eclipse \
-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: BaseMinerals-1.13.2-${{ github.sha }}
name: BaseMinerals-1.14.4-${{ 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: BaseMinerals-1.13.2-diagnostics-${{ github.sha }}
name: BaseMinerals-1.14.4-diagnostics-${{ github.sha }}
if-no-files-found: ignore
retention-days: 14
path: |
Expand Down
6 changes: 3 additions & 3 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.13.2
- feature/baseminerals-1.13.2
- master-1.14.4
- feature/baseminerals-1.14.4
pull_request:
branches:
- master-1.13.2
- master-1.14.4
schedule:
- cron: '47 7 * * 4'

Expand Down
43 changes: 27 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 Minerals 1.13.2
name: Release Base Minerals 1.14.4
run-name: Base Minerals ${{ inputs.release_version }} (${{ inputs.confirm_live_publication && 'publish' || 'verify' }})

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

concurrency:
group: baseminerals-release-113
group: baseminerals-release-114
cancel-in-progress: false

jobs:
qualify:
name: Verify merged CI candidate
if: github.repository == 'MinecraftModDevelopmentMods/BaseMinerals' && github.ref == 'refs/heads/master-1.13.2'
if: github.repository == 'MinecraftModDevelopmentMods/BaseMinerals' && github.ref == 'refs/heads/master-1.14.4'
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]+\.113021$ ]]
[[ "$RELEASE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.114041$ ]]
[[ "$RELEASE_SHA" =~ ^[[:xdigit:]]{40}$ ]]
[[ "$TESTED_SHA" =~ ^[[:xdigit:]]{64}$ ]]
test "$(git rev-parse HEAD)" = "$RELEASE_SHA"
test "$(gh api "repos/$GITHUB_REPOSITORY/branches/master-1.13.2" --jq .commit.sha)" = "$RELEASE_SHA"
test "$(gh api "repos/$GITHUB_REPOSITORY/branches/master-1.14.4" --jq .commit.sha)" = "$RELEASE_SHA"
grep -Fxq "mod_version=$RELEASE_VERSION" gradle.properties
grep -Fxq 'minecraft_version=1.13.2' gradle.properties
grep -Fxq 'minecraft_version=1.14.4' gradle.properties
ci_run="$(gh api --method GET "repos/$GITHUB_REPOSITORY/actions/workflows/ci.yml/runs" \
-f branch=master-1.13.2 -f head_sha="$RELEASE_SHA" -f event=push -f status=success \
-f branch=master-1.14.4 -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: BaseMinerals-1.13.2-${{ inputs.release_commit }}
name: BaseMinerals-1.14.4-${{ 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: BaseMinerals-1.13.2-${{ inputs.release_commit }}
name: BaseMinerals-1.14.4-${{ inputs.release_commit }}
run-id: ${{ needs.qualify.outputs.ci_run }}
github-token: ${{ github.token }}
path: ${{ runner.temp }}/release-input
Expand All @@ -179,24 +179,25 @@ jobs:
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: BaseMinerals-1.13.2-${{ inputs.release_commit }}
name: BaseMinerals-1.14.4-${{ inputs.release_commit }}
run-id: ${{ needs.qualify.outputs.ci_run }}
github-token: ${{ github.token }}
path: ${{ runner.temp }}/release-input
- name: Verify the sealed jars
working-directory: ${{ runner.temp }}/release-input
run: sha256sum --check --strict SHA256SUMS
- name: Publish Base Minerals
id: curseforge
uses: Kira-NT/mc-publish@52307b03863581dec6b652b83e597aec02ebb075 # v3.3.1
with:
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
curseforge-id: '270972'
name: Base Minerals ${{ inputs.release_version }} for Minecraft 1.13.2 (Forge)
name: Base Minerals ${{ inputs.release_version }} for Minecraft 1.14.4 (Forge)
version: ${{ inputs.release_version }}
version-type: ${{ inputs.curseforge_release_level }}
changelog-file: ${{ runner.temp }}/release-input/CHANGELOG.txt
loaders: forge
game-versions: '1.13.2'
game-versions: '1.14.4'
game-version-filter: none
environment: client | server
java: Java 8
Expand All @@ -210,6 +211,16 @@ jobs:
${{ runner.temp }}/release-input/BaseMinerals-${{ inputs.release_version }}-sources.jar
${{ runner.temp }}/release-input/BaseMinerals-${{ inputs.release_version }}-javadoc.jar

- name: Record the accepted CurseForge files
env:
CURSEFORGE_URL: ${{ steps.curseforge.outputs.curseforge-url }}
CURSEFORGE_FILES: ${{ steps.curseforge.outputs.curseforge-files }}
run: |
python3 - <<'PY'
import json, os
print(json.dumps({'url': os.environ['CURSEFORGE_URL'], 'files': os.environ['CURSEFORGE_FILES']}))
PY

publish_github:
name: Publish GitHub Release
needs: [qualify, publish_curseforge]
Expand All @@ -222,7 +233,7 @@ jobs:
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: BaseMinerals-1.13.2-${{ inputs.release_commit }}
name: BaseMinerals-1.14.4-${{ inputs.release_commit }}
run-id: ${{ needs.qualify.outputs.ci_run }}
github-token: ${{ github.token }}
path: ${{ runner.temp }}/release-input
Expand All @@ -235,5 +246,5 @@ jobs:
set -euo pipefail
sha256sum --check --strict SHA256SUMS
gh release create "$RELEASE_VERSION" --repo "$GITHUB_REPOSITORY" --verify-tag \
--title "Base Minerals $RELEASE_VERSION for Minecraft 1.13.2 (Forge)" \
--title "Base Minerals $RELEASE_VERSION for Minecraft 1.14.4 (Forge)" \
--notes-file CHANGELOG.txt "BaseMinerals-$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 Minerals 1.13.2 tag
name: Validate Base Minerals 1.14.4 tag
on:
push:
tags: ['*.*.*.113021']
tags: ['*.*.*.114041']
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.13.2' gradle.properties
grep -Fxq 'minecraft_version=1.14.4' gradle.properties
echo 'Tag validated. Publication uses deploy-release.yml with explicit confirmation.' >> "$GITHUB_STEP_SUMMARY"
6 changes: 3 additions & 3 deletions .github/workflows/validate-gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Validate Gradle Wrapper
on:
push:
branches:
- master-1.13.2
- feature/baseminerals-1.13.2
- master-1.14.4
- feature/baseminerals-1.14.4
pull_request:
branches:
- master-1.13.2
- master-1.14.4

permissions:
contents: read
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ run
/forge-*-changelog.txt

secret.json
/local-basemetals.json
/local-modernmetals.json
# Local context and generated verification
/AGENTS.md
/agent-notes/
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
2.5.2.114041 for Minecraft 1.14.4

This brings the released 1.13.2 build across to Forge 28, using OreSpawn 4.1.7.114041. The mineral IDs, ore depths and deposit shapes stay the same, and saved ore settings carry forward.

The ores keep their earlier drops, Fortune and Silk Touch behaviour, and work with Base Metals or Modern Metals crackhammers. Lithium and silicon can also be smelted in a blast furnace. Molten fluids use Forge's native renderer, and the ingot trades use the new villager professions.

The minerals now join both hammer mining tags, so breaking an ore uses the hammer's proper speed. Local test launches pin the fixed Base Metals and Modern Metals jars by hash, including the ore overlay fix.

The old numeric-world conversion is adapted for 1.14.4. Keep the full save and its baseminerals-legacy-registry.dat file together, and test an upgrade on a copy. The older material settings screens and Tinkers integration are still unavailable.

2.5.2.113021 for Minecraft 1.13.2

This fixes the ore drops to match 1.10 to 1.12. Lithium drops one ore block; the other six ores drop 2–4 powders. Fortune increases the maximum, and Silk Touch returns the ore block.
Expand Down
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,32 @@ Base Minerals adds lithium, niter, phosphorus, potash, salt, saltpeter, sulfur
and silicon. The seven ores use KiriCattus's overlays. OreSpawn handles
placement, including the saved rules and shared ore sources.

This branch targets Minecraft 1.13.2 and Forge 25.0.223. Install
[OreSpawn 4.1.7.113021](https://www.curseforge.com/minecraft/mc-mods/mmd-orespawn/files/9611746).
[Base Metals 3.0.3.113021](https://github.com/MinecraftModDevelopmentMods/BaseMetals/releases/tag/3.0.3.113021)
This branch targets Minecraft 1.14.4 and Forge 28.2.26. Install
[OreSpawn 4.1.7.114041](https://github.com/MinecraftModDevelopmentMods/OreSpawn/releases/tag/4.1.7.114041).
[Base Metals 3.0.2.114041](https://github.com/MinecraftModDevelopmentMods/BaseMetals/releases/tag/3.0.2.114041)
is optional in new worlds and supplies the Crack Hammer. Keep Base Metals
installed when upgrading a world that already contains its blocks or items.
Use 3.0.3.113021 or a later compatible 1.13.2 build when installing the two together.
Use 3.0.2.114041 or a later compatible 1.14.4 build when installing the two together.

Base Minerals shares its ore crushing recipes with Base Metals when installed.
If Base Metals is absent, Modern Metals crackhammers can crush the ores instead.
If Base Metals is absent,
[Modern Metals 3.0.0.114041](https://github.com/MinecraftModDevelopmentMods/ModernMetals/releases/tag/3.0.0.114041)
crackhammers can crush the ores instead. Both metal mods remain optional.

Mining lithium returns one ore block. Niter, phosphorus, potash, salt,
saltpeter and sulfur drop 2–4 powders, with Fortune increasing the upper
limit by its level. Silk Touch returns one ore block. A Crack Hammer gives
two powders per ore, as on the earlier branches.

Lithium and silicon smelting also works in the blast furnace, with the same
outputs and experience at half the cooking time. The old smith ingot trades
are available from level-two armorers, toolsmiths and weaponsmiths.

## Upgrading a world

Copy the whole save folder before opening it on 1.13.2, including level.dat
Copy the whole save folder before opening it on 1.14.4, including level.dat
and serverconfig. Start the copy with Forge, Base Minerals, OreSpawn and the
1.13.2 versions of any other mods whose content it uses. Check existing blocks
1.14.4 versions of any other mods whose content it uses. Check existing blocks
and inventories, save, then reopen the copy.

Base Minerals reads the old Forge registry from the world and saves the
Expand All @@ -33,4 +39,5 @@ Placed molten lithium and silicon keep their fluid level. The old Forge filled
buckets become the matching named buckets.

See [building](docs/BUILDING.md), [ore generation](docs/ORE_GENERATION.md),
[upgrade checks](docs/WORLD_UPGRADES.md) and [known limits](docs/KNOWN_ISSUES.md).
[upgrade checks](docs/WORLD_UPGRADES.md), [port decisions](docs/PORTING_114.md)
and [known limits](docs/KNOWN_ISSUES.md).
Loading
Loading