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: Modern Metals 1.15.2 CI
name: Modern Metals 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: modernmetals-115-${{ github.workflow }}-${{ github.ref }}
group: modernmetals-116-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
run: bash gradle/stage-release-dependencies.sh .gradle/release-dependencies
- name: Build, audit and generate Eclipse launches
run: |
bash ./gradlew clean check build javadoc verify115ReleaseArtifacts write115ReleaseChecksums genEclipseRuns eclipse \
bash ./gradlew clean check build javadoc verify116ReleaseArtifacts write116ReleaseChecksums genEclipseRuns eclipse \
-PreleaseBuild=true -PdependencyMirror="$PWD/.gradle/release-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: ModernMetals-1.15.2-${{ github.sha }}
name: ModernMetals-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: ModernMetals-1.15.2-diagnostics-${{ github.sha }}
name: ModernMetals-1.16.5-diagnostics-${{ github.sha }}
if-no-files-found: ignore
retention-days: 14
path: |
Expand Down
4 changes: 2 additions & 2 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.15.2
- master-1.16.5
- 'feature/**'
pull_request:
branches:
- master-1.15.2
- master-1.16.5
schedule:
- cron: '47 7 * * 4'

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 Modern Metals 1.15.2
name: Release Modern Metals 1.16.5
run-name: Modern Metals ${{ 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: modernmetals-release-115
group: modernmetals-release-116
cancel-in-progress: false

jobs:
qualify:
name: Verify merged CI candidate
if: github.repository == 'MinecraftModDevelopmentMods/ModernMetals' && github.ref == 'refs/heads/master-1.15.2'
if: github.repository == 'MinecraftModDevelopmentMods/ModernMetals' && 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: ModernMetals-1.15.2-${{ inputs.release_commit }}
name: ModernMetals-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: ModernMetals-1.15.2-${{ inputs.release_commit }}
name: ModernMetals-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: ModernMetals-1.15.2-${{ inputs.release_commit }}
name: ModernMetals-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: '244357'
name: Modern Metals ${{ inputs.release_version }} for Minecraft 1.15.2 (Forge)
name: Modern Metals ${{ 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 @@ -232,7 +232,7 @@ jobs:
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: ModernMetals-1.15.2-${{ inputs.release_commit }}
name: ModernMetals-1.16.5-${{ inputs.release_commit }}
run-id: ${{ needs.qualify.outputs.ci_run }}
github-token: ${{ github.token }}
path: ${{ runner.temp }}/release-input
Expand All @@ -245,5 +245,5 @@ jobs:
set -euo pipefail
sha256sum --check --strict SHA256SUMS
gh release create "$RELEASE_VERSION" --repo "$GITHUB_REPOSITORY" --verify-tag \
--title "Modern Metals $RELEASE_VERSION for Minecraft 1.15.2 (Forge)" \
--title "Modern Metals $RELEASE_VERSION for Minecraft 1.16.5 (Forge)" \
--notes-file CHANGELOG.txt "ModernMetals-$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 Modern Metals 1.15.2 tag
name: Validate Modern Metals 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"
4 changes: 2 additions & 2 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.15.2
- master-1.16.5
- 'feature/**'
pull_request:
branches:
- master-1.15.2
- master-1.16.5

permissions:
contents: read
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
3.0.0.116051 for Minecraft 1.16.5

Modern Metals now runs on Forge 36.2.34. The 21 materials, alloy yields,
Fantasy Level and Base Metals crushing integration carry across from 1.15.2.
Ore overlays keep their spacing and transparent edges. Walls use the new short
and tall connections, with earlier saves converted when loaded.

The Eclipse profiles cover all eight combinations of Base Metals, Base Gems
and Base Minerals. The build uses the published OreSpawn 4.1.7.116051 and optional Base Metals 3.1.2.116051.

3.0.0.115021 for Minecraft 1.15.2

Doors, trapdoors and bars no longer hide the terrain behind their gaps. Their
Expand Down
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Modern Metals for Minecraft 1.15.2
# Modern Metals for Minecraft 1.16.5

Modern Metals adds 21 metals and alloys, including boron, beryllium, thorium
and titanium. Crush and smelt ores, blend alloys, or make tools, armour and
building blocks.

## Installation

Use Java 8 and Forge **31.2.57** for Minecraft **1.15.2**. Install Modern
Metals and [OreSpawn 4.1.7.115021](https://github.com/MinecraftModDevelopmentMods/OreSpawn/releases/tag/4.1.7.115021)
on both the client and server. [Base Metals 3.0.3.115021](https://github.com/MinecraftModDevelopmentMods/BaseMetals/releases/tag/3.0.3.115021)
Use Java 8 and Forge **36.2.34** for Minecraft **1.16.5**. Install Modern
Metals and [OreSpawn 4.1.7.116051](https://github.com/MinecraftModDevelopmentMods/OreSpawn/releases/tag/4.1.7.116051) on both the client and server.
[Base Metals 3.1.2.116051](https://github.com/MinecraftModDevelopmentMods/BaseMetals/releases/tag/3.1.2.116051)
is optional. Its copper, steel, zinc and nickel powders supply ingredients
for several alloys. Modern Metals contributes its crushing recipes to Base
Metals when both are installed.

OreSpawn places the ores. Titanium ore is off by default; rutile and magnesium
still make titanium. Retrogen is off. This version follows vanilla 1.15
still make titanium. Retrogen is off. This version follows vanilla 1.16.5
mining: pickaxes drop ore blocks, and crackhammers produce powders.

Open **Mods → Modern Metals → Config**, or choose Modern Metals from the
Expand Down Expand Up @@ -64,16 +64,17 @@ Open a complete copy of the world and keep the original outside the test
instance. Install compatible versions of every mod that supplied saved
blocks or items. Do not remove an old world's Forge registry snapshot.
See [world migration](docs/MIGRATION.md) for the legacy numeric conversion
and the [1.15 port notes](docs/PORTING_115.md) for the port's checks.
and the [1.16.5 port notes](docs/PORTING_116.md) for the port's checks.

## Building and Eclipse

Gradle uses Java 17, Mavenizer uses Java 25, and compilation and Minecraft use
Java 8. Node.js runs the data generators and resource checks.

Run `gradlew build verify115ReleaseArtifacts genEclipseRuns eclipse`.
The build verifies the published OreSpawn jar's SHA-256. Eclipse's compatibility
profiles also verify the sibling jars before staging their mapped versions.
Stage the published dependencies with
`bash gradle/stage-release-dependencies.sh .gradle/release-dependencies`.
Then run `gradlew build verify116ReleaseArtifacts genEclipseRuns eclipse`.
The build checks the published OreSpawn jar's SHA-256. Eclipse checks the sibling jars before staging their mapped versions.

Import this inner project into its own Eclipse workspace, then use
**Gradle → Refresh Gradle Project**. With the local sibling pins set up below,
Expand All @@ -88,7 +89,7 @@ Run Configurations lists eight clients under **Modern Metals - …**:
- Base Gems + Base Minerals
- All Add-ons

Each includes Modern Metals and the published OreSpawn dependency. The label
Each includes Modern Metals and OreSpawn. The label
lists the additional mods. Each combination has its own saves and config.
Standalone keeps the existing `run` folder; Base Metals keeps
`run/with-basemetals`. The other six use separate folders under
Expand All @@ -104,7 +105,7 @@ See the

## Testing a local Base Metals candidate

Build the sibling Base Metals 1.14 checkout, then run
Build the sibling Base Metals 1.16.5 checkout, then run
`gradlew pinLocalBaseMetals` here, followed by `gradlew eclipse`. The ignored
`local-basemetals.json` records the exact player and mapped jar hashes.
`runClientWithBaseMetals.launch` then uses that candidate; the standalone
Expand All @@ -114,7 +115,7 @@ After rebuilding Base Metals, run the pin task again. A stale hash stops the
profile refresh. Use `-PuseLocalBaseMetals=false` to test the published jar.
Release builds use published dependencies.

For Base Gems and Base Minerals, build their sibling 1.15 checkouts first, then
For Base Gems and Base Minerals, build their sibling 1.16.5 checkouts first, then
run `gradlew pinLocalSiblingMods` here. Run `gradlew eclipse` as a separate
command afterwards. The ignored `local-sibling-mods.json` records both jars'
paths and hashes for each mod. Regenerate these pins after rebuilding either
Expand Down
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def prepareProbeClasses = tasks.register('prepareProbeClasses', Sync) {
into probeClasses
}

tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' }
tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8'; options.compilerArgs.addAll(['-Xmaxerrs', '1000']) }

def compileMiningLevelChecks = tasks.register('compileMiningLevelChecks', JavaCompile) {
dependsOn 'classes'
Expand Down Expand Up @@ -88,6 +88,7 @@ def prepareRunClasses = tasks.register('prepareForgeRunModClasses', Sync) {

minecraft {
mappings channel: mapping_channel, version: mapping_version
if (gradle.startParameter.offline) mavenizerArguments.add('--offline')
runs {
configureEach {
mainClass = 'net.minecraftforge.userdev.LaunchTesting'
Expand Down Expand Up @@ -233,7 +234,7 @@ tasks.named('genEclipseRuns') { dependsOn 'configureEclipseBuildship' }

tasks.named('eclipse') { dependsOn 'genEclipseRuns' }

// Compatibility profiles are generated for available 1.15 add-ons only.
// Compatibility profiles are generated for available 1.16.5 add-ons only.

def baseMetalsModule = 'BaseMetals'
def baseMetalsCoordinate = "zone.moddev.mc.basemetals:${baseMetalsModule}:${basemetals_version}"
Expand All @@ -247,7 +248,8 @@ def localBasePin = useLocalBaseMetals && localBasePinFile.isFile()
? new groovy.json.JsonSlurper().parse(localBasePinFile) : [:]
if (useLocalBaseMetals && localBasePin.isEmpty()) throw new GradleException('Run pinLocalBaseMetals first')
def oreSpawnCoordinate = "zone.moddev.mc.orespawn:OreSpawn:${orespawn_version}"
def dependencyMirror = providers.gradleProperty('dependencyMirror').orElse('https://maven.moddev.zone/releases')
def dependencyMirror = providers.gradleProperty('dependencyMirror').orElse(file('.gradle/release-dependencies').isDirectory()
? '.gradle/release-dependencies' : 'https://maven.moddev.zone/releases')
repositories {
minecraft.mavenizer(it)
maven fg.forgeMaven
Expand Down Expand Up @@ -303,7 +305,7 @@ tasks.register('verifyReleaseDependencies') {
}
}
if (digest.digest().encodeHex().toString() != orespawn_sha256) {
throw new GradleException('OreSpawn 1.15.2 release checksum mismatch')
throw new GradleException('OreSpawn 1.16.5 release checksum mismatch')
}
}
}
Expand All @@ -313,7 +315,7 @@ tasks.register('pinLocalBaseMetals') {
group = 'development'
description = 'Pins already-built sibling Base Metals jars for local testing.'
doLast {
File checkout = file(providers.gradleProperty('baseMetalsCheckout').orElse('../../BaseMetals 115/BaseMetals').get()).canonicalFile
File checkout = file(providers.gradleProperty('baseMetalsCheckout').orElse('../../BaseMetals 116/BaseMetals').get()).canonicalFile
def pins = [version: basemetals_version.toString()]
['publishedJar': "build/libs/BaseMetals-${basemetals_version}.jar",
'mappedJar': "build/libs-dev/BaseMetals-${basemetals_version}-deobf.jar"].each { key, path ->
Expand Down Expand Up @@ -375,7 +377,7 @@ eclipse.synchronizationTasks 'generateCompatibilityRuns'

ext.compatibilityBaseFiles = { [mapped: configurations.baseMetalsDevelopment.singleFile,
version: basemetals_version.toString()] }
apply from: 'gradle/eclipse-compatibility-115.gradle'
apply from: 'gradle/eclipse-compatibility-116.gradle'

tasks.register('verifyEclipseProductionClasspath') {
group = 'verification'
Expand Down Expand Up @@ -537,8 +539,6 @@ tasks.register('runPackagedProbeServer', Exec) {
}
}

// Uses the published OreSpawn release directly.

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

apply from: 'gradle/normalize-javadoc-trees.gradle'
17 changes: 17 additions & 0 deletions docs/PORTING_116.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Minecraft 1.16.5 port

The port starts from the released 1.15.2 build and targets Forge 36.2.34 on
Java 8. The ForgeGradle 7 build uses the official 1.16.5 mappings.

- Material IDs, recipe IDs, alloy yields and OreSpawn rules carry over. Both
configuration entry points use the 1.16 client API. The Minecraft recipe
manager still shares crushing recipes with Base Metals when it is present.
- The ore overlays use the 1.16 vanilla stone sprite. Their geometry keeps the
0.05 pixel offset and explicit UVs. Bars retain the vanilla iron-bar layout.
- Walls use the short and tall vanilla parts. The legacy chunk and item readers
convert saved wall connections from `true` and `false` to `low` and `none`.
The saved numeric registry and door migration hooks target the 1.16 engine.
- The build uses the published OreSpawn 4.1.7.116051 and Base Metals 3.1.2.116051.

Use a copy of any existing world for an upgrade test. The Eclipse profiles
keep their saves and configurations in separate run directories.
Loading