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.14.4 CI
name: Modern Metals 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: modernmetals-114-${{ github.workflow }}-${{ github.ref }}
group: modernmetals-115-${{ 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 verify114ReleaseArtifacts write114ReleaseChecksums genEclipseRuns eclipse \
bash ./gradlew clean check build javadoc verify115ReleaseArtifacts write115ReleaseChecksums 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.14.4-${{ github.sha }}
name: ModernMetals-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: ModernMetals-1.14.4-diagnostics-${{ github.sha }}
name: ModernMetals-1.15.2-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.14.4
- master-1.15.2
- 'feature/**'
pull_request:
branches:
- master-1.14.4
- master-1.15.2
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.14.4
name: Release Modern Metals 1.15.2
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.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: modernmetals-release-114
group: modernmetals-release-115
cancel-in-progress: false

jobs:
qualify:
name: Verify merged CI candidate
if: github.repository == 'MinecraftModDevelopmentMods/ModernMetals' && github.ref == 'refs/heads/master-1.14.4'
if: github.repository == 'MinecraftModDevelopmentMods/ModernMetals' && 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: ModernMetals-1.14.4-${{ inputs.release_commit }}
name: ModernMetals-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: ModernMetals-1.14.4-${{ inputs.release_commit }}
name: ModernMetals-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: ModernMetals-1.14.4-${{ inputs.release_commit }}
name: ModernMetals-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: '244357'
name: Modern Metals ${{ inputs.release_version }} for Minecraft 1.14.4 (Forge)
name: Modern Metals ${{ 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 @@ -232,7 +232,7 @@ jobs:
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: ModernMetals-1.14.4-${{ inputs.release_commit }}
name: ModernMetals-1.15.2-${{ 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.14.4 (Forge)" \
--title "Modern Metals $RELEASE_VERSION for Minecraft 1.15.2 (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.14.4 tag
name: Validate Modern Metals 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"
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.14.4
- master-1.15.2
- 'feature/**'
pull_request:
branches:
- master-1.14.4
- master-1.15.2

permissions:
contents: read
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
3.0.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.

This brings the released 1.14 build across to Forge 31.2.57, using OreSpawn
4.1.7.115021. The 21 materials, saved IDs, alloy yields, recipe discovery and
shared crushing behaviour stay the same. Rendering uses the native 1.15 layers
and projectile registrations; molten metal keeps its contact damage.

The bars retain vanilla connection geometry and ore overlays keep their 0.05
spacing and bounded UVs. Eight isolated Eclipse combinations cover Base Metals,
Base Gems and Base Minerals. Local sibling pins select the corrected candidates;
the optional Base Metals dependency uses the published 3.0.3.115021 build.

3.0.0.114041 for Minecraft 1.14.4

- Fixed overlapping bars for every material, including titanium.
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Modern Metals for Minecraft 1.14.4
# Modern Metals for Minecraft 1.15.2

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 **28.2.26** for Minecraft **1.14.4**. Install Modern
Metals and [OreSpawn 4.1.7.114041](https://github.com/MinecraftModDevelopmentMods/OreSpawn/releases/tag/4.1.7.114041)
on both the client and server. [Base Metals 3.0.2.114041](https://github.com/MinecraftModDevelopmentMods/BaseMetals/releases/tag/3.0.2.114041)
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)
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.14
still make titanium. Retrogen is off. This version follows vanilla 1.15
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,14 +64,14 @@ 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.14 port notes](docs/PORTING_114.md) for the port's checks.
and the [1.15 port notes](docs/PORTING_115.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 verify114ReleaseArtifacts genEclipseRuns eclipse`.
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.

Expand Down Expand Up @@ -114,7 +114,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.14 checkouts first, then
For Base Gems and Base Minerals, build their sibling 1.15 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
21 changes: 12 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ tasks.named('genEclipseRuns') { dependsOn 'configureEclipseBuildship' }

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

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

def baseMetalsModule = 'BaseMetals'
def baseMetalsCoordinate = "zone.moddev.mc.basemetals:${baseMetalsModule}:${basemetals_version}"
Expand Down Expand Up @@ -266,7 +266,10 @@ repositories {
metadataSources { artifact() }
}
}
filter { includeModule('zone.moddev.mc.basemetals', baseMetalsModule) }
filter {
includeModule('zone.moddev.mc.basemetals', baseMetalsModule)
includeModule('zone.moddev.mc.orespawn', 'OreSpawn')
}
}
}

Expand Down Expand Up @@ -300,7 +303,7 @@ tasks.register('verifyReleaseDependencies') {
}
}
if (digest.digest().encodeHex().toString() != orespawn_sha256) {
throw new GradleException('OreSpawn 1.14.4 release checksum mismatch')
throw new GradleException('OreSpawn 1.15.2 release checksum mismatch')
}
}
}
Expand All @@ -310,7 +313,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 114/BaseMetals').get()).canonicalFile
File checkout = file(providers.gradleProperty('baseMetalsCheckout').orElse('../../BaseMetals 115/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 @@ -372,7 +375,7 @@ eclipse.synchronizationTasks 'generateCompatibilityRuns'

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

tasks.register('verifyEclipseProductionClasspath') {
group = 'verification'
Expand Down Expand Up @@ -417,11 +420,11 @@ tasks.named('check') { dependsOn 'verifyBarModels' }

def portData = layout.buildDirectory.dir('generated/port-data')
def generatePortData = tasks.register('generatePortData', Exec) {
inputs.file 'tools/generate_114_data.js'
inputs.file 'tools/generate_115_data.js'
inputs.file 'src/main/java/zone/moddev/mc/modernmetals/material/MaterialCatalogue.java'
inputs.files(fileTree('src/main/resources/data'), fileTree('src/generated/resources/data'))
outputs.dir portData
commandLine 'node', 'tools/generate_114_data.js'
commandLine 'node', 'tools/generate_115_data.js'
}
sourceSets.main.resources.srcDir(portData)

Expand Down Expand Up @@ -456,7 +459,7 @@ tasks.named('check') { dependsOn verifyRecipeData }

tasks.register('verifyPortData', Exec) {
dependsOn generatePortData
commandLine 'node', '--test', 'tools/test_114_port.js'
commandLine 'node', '--test', 'tools/test_115_port.js'
}
tasks.named('check') { dependsOn 'verifyPortData' }
tasks.named('check') { dependsOn 'integrationTestClasses', 'clientIntegrationTestClasses' }
Expand Down Expand Up @@ -536,6 +539,6 @@ tasks.register('runPackagedProbeServer', Exec) {

// Uses the published OreSpawn release directly.

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

apply from: 'gradle/normalize-javadoc-trees.gradle'
28 changes: 28 additions & 0 deletions docs/MANUAL_TESTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Manual testing on Minecraft 1.15.2

Open the outer ModernMetals 115 folder as the Eclipse workspace and import or
refresh the inner ModernMetals Gradle project. Gradle uses Java 17; the client
uses Java 8. The shared Gradle cache is D:/BaseMetals/.gradle-verify-cache.

Choose a Modern Metals launch: Standalone; Base Metals; Base Gems; Base Minerals;
each pair; or All Add-ons. These eight profiles use separate game directories.
Do not mix 1.14 jars into their mods folders. Local pins must be refreshed after
rebuilding a sibling, followed by a separate Eclipse generation.

- Compare isolated, straight, corner, T and crossing bars, including waterlogging.
- Place open and closed trapdoors directly on a floor and doors against walls.
The terrain must remain visible through their holes from either side.
- Inspect ore faces and inventory blocks at shallow angles: no flicker, atlas bleed
or opaque overlay backgrounds. Include Base Metals, gems and minerals.
- Crush coal and ores with both metal mods, then without Base Metals. Confirm one
coal result and the expected powders, repair costs, tool speed and durability.
- Use beryllium powder to reveal crafting, furnace and blast-furnace recipes.
Test all five alloys, including direct steel-blend ingredients with Base Metals.
- Open the mod-list and OreSpawn child config screens. Test both Fantasy modes
with matching client/server settings; Modern Metals inherits Base Metals' mode.
- Check buckets, molten-fluid rendering and contact damage, arrows and bolts,
villagers and creative tabs. Titanium should work with its ore rule disabled.
- Save, close and reopen the test world. Test upgrades on complete copies only.
Keep every required mod and the old registry snapshot with an upgraded save.

Use the released game jars when checking the public stack.
Loading
Loading