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

jobs:
qualify:
name: Verify merged CI candidate
if: github.repository == 'MinecraftModDevelopmentMods/BaseMinerals' && github.ref == 'refs/heads/master-1.14.4'
if: github.repository == 'MinecraftModDevelopmentMods/BaseMinerals' && 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: BaseMinerals-1.14.4-${{ inputs.release_commit }}
name: BaseMinerals-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: BaseMinerals-1.14.4-${{ inputs.release_commit }}
name: BaseMinerals-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: BaseMinerals-1.14.4-${{ inputs.release_commit }}
name: BaseMinerals-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: '270972'
name: Base Minerals ${{ inputs.release_version }} for Minecraft 1.14.4 (Forge)
name: Base Minerals ${{ 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: BaseMinerals-1.14.4-${{ inputs.release_commit }}
name: BaseMinerals-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 Minerals $RELEASE_VERSION for Minecraft 1.14.4 (Forge)" \
--title "Base Minerals $RELEASE_VERSION for Minecraft 1.15.2 (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.14.4 tag
name: Validate Base Minerals 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"
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.14.4
- feature/baseminerals-1.14.4
- master-1.15.2
- feature/baseminerals-1.15.2
pull_request:
branches:
- master-1.14.4
- master-1.15.2

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

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.

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.
Expand Down
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ 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.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)
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.2.114041 or a later compatible 1.14.4 build when installing the two together.
Use 3.0.3.115021 or a later compatible 1.15.2 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 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.
[Modern Metals 3.0.0.115021](https://github.com/MinecraftModDevelopmentMods/ModernMetals/releases/tag/3.0.0.115021)
also supplies shared crushing when installed.

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

## Upgrading a world

Copy the whole save folder before opening it on 1.14.4, including level.dat
Copy the whole save folder before opening it on 1.15.2, including level.dat
and serverconfig. Start the copy with Forge, Base Minerals, OreSpawn and the
1.14.4 versions of any other mods whose content it uses. Check existing blocks
1.15.2 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 @@ -39,5 +38,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_114.md)
[upgrade checks](docs/WORLD_UPGRADES.md), [port decisions](docs/PORTING_115.md)
and [known limits](docs/KNOWN_ISSUES.md).
34 changes: 17 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: '20190719-1.14.3'
mappings channel: 'snapshot', version: '20200514-1.15.1'
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.14.4'
environment 'MCP_VERSION', '20190829.143755'
environment 'MCP_MAPPINGS', 'snapshot_20190719-1.14.3'
environment 'FORGE_VERSION', '28.2.26'
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 'FORGE_GROUP', 'net.minecraftforge'
def path = modClasses.get().asFile.absolutePath
environment 'MOD_CLASSES', "baseminerals%%${path}${File.pathSeparator}baseminerals%%${path}"
Expand Down Expand Up @@ -95,7 +95,7 @@ configurations {
pinnedMods { canBeConsumed = false; transitive = false }
}
dependencies {
implementation minecraft.dependency('net.minecraftforge:forge:1.14.4-28.2.26')
implementation minecraft.dependency('net.minecraftforge:forge:1.15.2-31.2.57')
specs.each { spec ->
pinnedMods spec.coordinate
if (spec.runtime) implementation renamer.dependency(spec.coordinate)
Expand Down Expand Up @@ -143,18 +143,18 @@ tasks.named('test') { useJUnitPlatform() }

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

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

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

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

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