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.15.2 CI
name: Base Minerals 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: baseminerals-115-${{ github.workflow }}-${{ github.ref }}
group: baseminerals-116-${{ 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 verify115ReleaseArtifacts write115ReleaseChecksums genEclipseRuns eclipse \
bash ./gradlew clean check build javadoc verify116ReleaseArtifacts write116ReleaseChecksums 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.15.2-${{ github.sha }}
name: BaseMinerals-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: BaseMinerals-1.15.2-diagnostics-${{ github.sha }}
name: BaseMinerals-1.16.5-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.15.2
- feature/baseminerals-1.15.2
- master-1.16.5
- feature/baseminerals-1.16.5
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 Base Minerals 1.15.2
name: Release Base Minerals 1.16.5
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.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: baseminerals-release-115
group: baseminerals-release-116
cancel-in-progress: false

jobs:
qualify:
name: Verify merged CI candidate
if: github.repository == 'MinecraftModDevelopmentMods/BaseMinerals' && github.ref == 'refs/heads/master-1.15.2'
if: github.repository == 'MinecraftModDevelopmentMods/BaseMinerals' && 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: BaseMinerals-1.15.2-${{ inputs.release_commit }}
name: BaseMinerals-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: BaseMinerals-1.15.2-${{ inputs.release_commit }}
name: BaseMinerals-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: BaseMinerals-1.15.2-${{ inputs.release_commit }}
name: BaseMinerals-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: '270972'
name: Base Minerals ${{ inputs.release_version }} for Minecraft 1.15.2 (Forge)
name: Base Minerals ${{ 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 @@ -233,7 +233,7 @@ jobs:
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
with:
name: BaseMinerals-1.15.2-${{ inputs.release_commit }}
name: BaseMinerals-1.16.5-${{ 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 Minerals $RELEASE_VERSION for Minecraft 1.15.2 (Forge)" \
--title "Base Minerals $RELEASE_VERSION for Minecraft 1.16.5 (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.15.2 tag
name: Validate Base Minerals 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"
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.15.2
- feature/baseminerals-1.15.2
- master-1.16.5
- feature/baseminerals-1.16.5
pull_request:
branches:
- master-1.15.2
- master-1.16.5

permissions:
contents: read
Expand Down
12 changes: 10 additions & 2 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
2.5.2.116051 for Minecraft 1.16.5

This brings the local 1.15.2 port across to Forge 36, keeping the mineral IDs, overlays, drops, hammer tags, recipes and ore defaults. Base Metals 3.1.2.116051 remains optional. The build uses the published OreSpawn 4.1.7.116051. Modern Metals 3.0.0.116051 also supplies shared crushing when installed.

Loot registration, fluid APIs and tool requirements now use the 1.16 equivalents. Old-world conversion follows the new level reader and player storage while keeping each save's original numeric block mapping. Keep the full save and baseminerals-legacy-registry.dat together when upgrading a copy.

The older material settings screens and Tinkers integration remain unported. A matching Modern Metals 1.16 build is not available yet. This candidate has not been released.

2.5.2.115021 for Minecraft 1.15.2

This brings the released 1.14.4 build across to Forge 31, using OreSpawn 4.1.7.115021. The minerals, drops, hammer mining tags, recipes and ore defaults carry forward. Base Metals 3.0.3.115021 remains optional.
This brings the released 1.14.4 build across to Forge 31, using OreSpawn 4.1.7.115021. The minerals, drops, hammer mining tags, recipes and ore defaults carry forward. Base Metals 3.0.2.115021 remains optional.

Ore and molten-fluid rendering now uses the 1.15 render-layer API. The old-world conversion follows the new chunk loader while keeping each save's own numeric registry mapping. Keep the full save and baseminerals-legacy-registry.dat together when upgrading a copy.

Modern Metals 3.0.0.115021 also supplies shared crushing when installed.
The manual Base Metals launch pins the local ore-overlay spacing and UV correction. A matching Modern Metals 1.15 build is not available yet. The older material settings screens and Tinkers integration remain unavailable.

2.5.2.114041 for Minecraft 1.14.4

Expand Down
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ 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.15.2 and Forge 31.2.57. Install
[OreSpawn 4.1.7.115021](https://github.com/MinecraftModDevelopmentMods/OreSpawn/releases/tag/4.1.7.115021).
[Base Metals 3.0.3.115021](https://github.com/MinecraftModDevelopmentMods/BaseMetals/releases/tag/3.0.3.115021)
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.115021 or a later compatible 1.15.2 build when installing the two together.
This release is for Minecraft 1.16.5 and Forge 36.2.34. Install [OreSpawn 4.1.7.116051](https://github.com/MinecraftModDevelopmentMods/OreSpawn/releases/tag/4.1.7.116051)
on the client and server.
[Base Metals 3.1.2.116051](https://github.com/MinecraftModDevelopmentMods/BaseMetals/releases/tag/3.1.2.116051)
is optional in new worlds and supplies the Crack Hammer. Keep the matching
Base Metals installed when upgrading a world that contains its blocks or items.

Base Minerals shares its ore crushing recipes with Base Metals when installed.
[Modern Metals 3.0.0.115021](https://github.com/MinecraftModDevelopmentMods/ModernMetals/releases/tag/3.0.0.115021)
also supplies shared crushing when installed.
[Modern Metals 3.0.0.116051](https://github.com/MinecraftModDevelopmentMods/ModernMetals/releases/tag/3.0.0.116051) supplies the shared crushing recipes when Base Metals is absent.

Mining lithium returns one ore block. Niter, phosphorus, potash, salt,
saltpeter and sulfur drop 2–4 powders, with Fortune increasing the upper
Expand All @@ -26,9 +24,9 @@ are available from level-two armorers, toolsmiths and weaponsmiths.

## Upgrading a world

Copy the whole save folder before opening it on 1.15.2, including level.dat
Copy the whole save folder before opening it on 1.16.5, including level.dat
and serverconfig. Start the copy with Forge, Base Minerals, OreSpawn and the
1.15.2 versions of any other mods whose content it uses. Check existing blocks
1.16.5 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 @@ -38,5 +36,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), [port decisions](docs/PORTING_115.md)
[upgrade checks](docs/WORLD_UPGRADES.md), [port decisions](docs/PORTING_116.md)
and [known limits](docs/KNOWN_ISSUES.md).
47 changes: 30 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def stageRunClasses = tasks.register('stageRunClasses', Sync) {
}

minecraft {
mappings channel: 'snapshot', version: '20200514-1.15.1'
mappings channel: 'official', version: '1.16.5'
if (gradle.startParameter.offline) mavenizerArguments.add('--offline')
runs {
configureEach {
Expand All @@ -49,10 +49,10 @@ minecraft {
providers.gradleProperty('baseMineralsRunDirectory').getOrElse('run'))
mods { baseminerals { source sourceSets.main } }
environment 'target', name.toLowerCase().contains('client') ? 'fmluserdevclient' : 'fmluserdevserver'
environment 'MC_VERSION', '1.15.2'
environment 'MCP_VERSION', '20200515.085601'
environment 'MCP_MAPPINGS', 'snapshot_20200514-1.15.1'
environment 'FORGE_VERSION', '31.2.57'
environment 'MC_VERSION', '1.16.5'
environment 'MCP_VERSION', '20210116.111650'
environment 'MCP_MAPPINGS', 'official_1.16.5'
environment 'FORGE_VERSION', '36.2.34'
environment 'FORGE_GROUP', 'net.minecraftforge'
def path = modClasses.get().asFile.absolutePath
environment 'MOD_CLASSES', "baseminerals%%${path}${File.pathSeparator}baseminerals%%${path}"
Expand Down Expand Up @@ -91,11 +91,24 @@ repositories {
}

def specs = new JsonSlurper().parse(file('gradle/dependencies.json'))
def unpublishedDependencies = specs.findAll { it.provenance == 'unpublished-qualified-local' }
if (providers.gradleProperty('releaseBuild').map { it.toBoolean() }.orElse(false).get()
&& !unpublishedDependencies.isEmpty()) {
throw new GradleException('Publication is blocked: pin the published OreSpawn 1.16.5 release first.')
}
tasks.configureEach {
if (name.startsWith('publish') || name == 'verify116PreparedReleaseArtifacts') {
doFirst {
if (!unpublishedDependencies.isEmpty())
throw new GradleException('Publication is blocked: pin the published OreSpawn 1.16.5 release first.')
}
}
}
configurations {
pinnedMods { canBeConsumed = false; transitive = false }
}
dependencies {
implementation minecraft.dependency('net.minecraftforge:forge:1.15.2-31.2.57')
implementation minecraft.dependency('net.minecraftforge:forge:1.16.5-36.2.34')
specs.each { spec ->
pinnedMods spec.coordinate
if (spec.runtime) implementation renamer.dependency(spec.coordinate)
Expand Down Expand Up @@ -143,18 +156,18 @@ tasks.named('test') { useJUnitPlatform() }

sourceSets {
generationProbe {
java.srcDirs = ['tools/validation/port115/generation-probe/java']
resources.srcDirs = ['tools/validation/port115/generation-probe/resources']
java.srcDirs = ['tools/validation/port116/generation-probe/java']
resources.srcDirs = ['tools/validation/port116/generation-probe/resources']
compileClasspath += sourceSets.main.output + sourceSets.main.compileClasspath
}
clientProbe {
java.srcDirs = ['tools/validation/port115/client-probe/java']
resources.srcDirs = ['tools/validation/port115/client-probe/resources']
java.srcDirs = ['tools/validation/port116/client-probe/java']
resources.srcDirs = ['tools/validation/port116/client-probe/resources']
compileClasspath += sourceSets.main.output + sourceSets.main.compileClasspath
}
miningProbe {
java.srcDirs = ['tools/validation/port115/mining-probe/java']
resources.srcDirs = ['tools/validation/port115/mining-probe/resources']
java.srcDirs = ['tools/validation/port116/mining-probe/java']
resources.srcDirs = ['tools/validation/port116/mining-probe/resources']
compileClasspath += sourceSets.main.output + sourceSets.main.compileClasspath
}
}
Expand Down Expand Up @@ -198,11 +211,11 @@ tasks.register('verifyStartupRegistration', Exec) {
commandLine 'node', '--test', 'tools/test_fluid_registration.js'
}
tasks.named('check') { dependsOn 'verifyStartupRegistration' }
tasks.register('verify115Resources', Exec) {
tasks.register('verify116Resources', Exec) {
group = 'verification'
commandLine 'node', '--test', 'tools/test_115_resources.js'
commandLine 'node', '--test', 'tools/test_116_resources.js'
}
tasks.named('check') { dependsOn 'verify115Resources' }
tasks.named('check') { dependsOn 'verify116Resources' }
['client', 'server'].each { run ->
tasks.matching { it.name == 'run' + run.capitalize() }.configureEach {
dependsOn stageRunClasses
Expand Down Expand Up @@ -269,8 +282,8 @@ tasks.named('processResources', ProcessResources) {

apply from: 'gradle/ore-models.gradle'

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

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

apply from: 'gradle/compatibility-115.gradle'
apply from: 'gradle/compatibility-116.gradle'
Loading