Skip to content

Commit b00d96a

Browse files
authored
Fix the 1.14 bars and ore overlays (#549)
Bring the manually tested 1.14 changes into MMD. The local release checks and hosted checks pass.
2 parents 713802f + d2e1c7f commit b00d96a

215 files changed

Lines changed: 3403 additions & 4266 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@ jobs:
141141
./gradlew "${gradle_args[@]}"
142142
first="$RUNNER_TEMP/basemetals-first"
143143
mkdir -p "$first"
144-
cp build/libs/BaseMetals-3.0.1.114041.jar "$first/"
145-
cp build/libs/BaseMetals-3.0.1.114041-sources.jar "$first/"
146-
cp build/libs/BaseMetals-3.0.1.114041-javadoc.jar "$first/"
144+
cp build/libs/*.jar "$first/"
147145
cp build/release/SHA256SUMS "$first/"
148146
149147
- name: Rebuild and prove byte-identical archives
@@ -159,9 +157,9 @@ jobs:
159157
-Dorg.gradle.java.installations.auto-download=false
160158
)
161159
./gradlew "${gradle_args[@]}"
162-
cmp "$RUNNER_TEMP/basemetals-first/BaseMetals-3.0.1.114041.jar" build/libs/BaseMetals-3.0.1.114041.jar
163-
cmp "$RUNNER_TEMP/basemetals-first/BaseMetals-3.0.1.114041-sources.jar" build/libs/BaseMetals-3.0.1.114041-sources.jar
164-
cmp "$RUNNER_TEMP/basemetals-first/BaseMetals-3.0.1.114041-javadoc.jar" build/libs/BaseMetals-3.0.1.114041-javadoc.jar
160+
for jar in "$RUNNER_TEMP/basemetals-first/"*.jar; do
161+
cmp "$jar" "build/libs/$(basename "$jar")"
162+
done
165163
cmp "$RUNNER_TEMP/basemetals-first/SHA256SUMS" build/release/SHA256SUMS
166164
167165
- name: Run exact-OreSpawn dedicated-server probe
@@ -178,18 +176,18 @@ jobs:
178176
)
179177
timeout 15m ./gradlew "${gradle_args[@]}"
180178
179+
- name: Stage the flat release bundle
180+
run: |
181+
mkdir -p build/release-bundle
182+
cp build/libs/*.jar build/release/SHA256SUMS CHANGELOG.txt build/release-bundle/
183+
181184
- name: Upload audited release candidate
182185
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
183186
with:
184187
name: BaseMetals-1.14.4-${{ github.sha }}
185188
if-no-files-found: error
186189
retention-days: 30
187-
path: |
188-
build/libs/BaseMetals-3.0.1.114041.jar
189-
build/libs/BaseMetals-3.0.1.114041-sources.jar
190-
build/libs/BaseMetals-3.0.1.114041-javadoc.jar
191-
build/release/SHA256SUMS
192-
CHANGELOG.txt
190+
path: build/release-bundle/
193191

194192
- name: Upload bounded diagnostics on failure
195193
if: failure()

‎CHANGELOG.txt‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
Base Metals 3.0.1.114041
1+
Base Metals 3.0.2.114041 for Minecraft 1.14.4
22

3+
- Fix bars in every material so straight runs, corners and junctions use the
4+
vanilla connection model without overlapping posts or caps.
5+
- Increase the ore overlay gap to 0.05 pixels to avoid flicker at shallow angles,
6+
keeping the texture inside its sprite.
7+
8+
Base Metals 3.0.1.114041 for Minecraft 1.14.4
39
- Bring the finished 1.13.2 port to Minecraft 1.14.4 and Forge 28.2.26.
410
- Keep existing blocks, items, recipes, save identities, High/Low Fantasy
511
settings and material-based recipe discovery.

‎README.md‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ shields, bows, crossbows, arrows, and bolts. The mod also includes Crack
1212
Hammers, scythes, metal anvils, the human detector, villager trades,
1313
advancements, and extra loot to find in chests.
1414

15-
This is the Minecraft 1.14.4 version, `3.0.1.114041`, continued from the finished
15+
This is the Minecraft 1.14.4 version, `3.0.2.114041`, continued from the finished
1616
1.13.2 port. It keeps the historical `basemetals` block and item IDs, but no longer
1717
needs MMDLib or Additional Loot Tables. OreSpawn places the ores, and Base
1818
Metals supplies the metals and their recipes.
@@ -29,7 +29,7 @@ Armorer, Weaponsmith and Toolsmith professions introduced in Minecraft 1.14.
2929
- Java 8
3030
- OreSpawn `[4.1.0.114041,5.0.0)` on both client and server
3131

32-
Put `BaseMetals-3.0.1.114041.jar` and OreSpawn `4.1.0.114041` (or a later
32+
Put `BaseMetals-3.0.2.114041.jar` and OreSpawn `4.1.0.114041` (or a later
3333
compatible OreSpawn 4 build for 1.14.4) in the `mods` directory. MMDLib and
3434
Additional Loot Tables are not dependencies. Mineralogy is optional.
3535

@@ -195,10 +195,18 @@ from CurseMaven. The build checks its exact file ID and SHA-256 before release
195195
auditing and packaged tests; no local OreSpawn build is needed.
196196

197197
Release artifacts use Maven coordinate
198-
`zone.moddev.mc.basemetals:BaseMetals:3.0.1.114041`.
198+
`zone.moddev.mc.basemetals:BaseMetals:3.0.2.114041`.
199199

200200
Report defects through the
201201
[Base Metals issue tracker](https://github.com/MinecraftModDevelopmentMods/BaseMetals/issues).
202202

203203
Base Metals is licensed under [LGPL-2.1](LICENSE). Bundled or derived third-party
204204
art is covered by the accompanying attribution and licence files.
205+
206+
## Bars and ore overlays
207+
208+
This version fixes all 26 material bars and increases the ore
209+
overlay spacing to 0.05 pixels. The bars use Minecraft 1.14's own iron-bar
210+
parts for straight runs, corners, ends and junctions. Ore overlays keep their
211+
texture coordinates inside the sprite so the wider spacing does not pull in
212+
neighbouring textures.

‎build.gradle‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,3 +289,5 @@ apply from: 'gradle/verification/generated-data.gradle'
289289
apply from: 'gradle/ide/eclipse.gradle'
290290
apply from: 'gradle/ide/intellij.gradle'
291291
apply from: 'gradle/verification/packaged-forge.gradle'
292+
293+
apply from: 'gradle/normalize-javadoc-trees.gradle'

‎docs/MIGRATION.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ blocks cannot be reconstructed by Mojang's vanilla fixer alone, so Base Metals
66
installs a narrowly scoped migration hook before Forge reads an old world.
77

88
Always upgrade a copy and retain the original 1.10/1.12 world. Install Base
9-
Metals `3.0.1.114041`, OreSpawn `4.1.0.114041`, and any other 1.14.4 mods needed
9+
Metals `3.0.2.114041`, OreSpawn `4.1.0.114041`, and any other 1.14.4 mods needed
1010
by that world. Do not carry MMDLib, Additional Loot Tables, the OreSpawn 3
1111
plugin, or Base Metals' old fallback generator into the new instance.
1212

‎docs/RELEASING.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Releasing Base Metals for Minecraft 1.14.4
2+
3+
Use Java 17.0.1+12 for Gradle, Temurin 8u502-b07 for compilation and Java 25
4+
for Mavenizer. Run `check build javadoc verifyReleaseArtifacts
5+
writeReleaseChecksums`, then regenerate and verify the Eclipse launches.
6+
Keep packaged gameplay tests local and finish manual testing before delivery.
7+
8+
Push the fork branch and open a PR to MMD's `master-1.14.4`. Wait for its checks
9+
before merging. Compare all three jars from the merged CI bundle with the
10+
locally qualified files, including their SHA-256 hashes.
11+
12+
Start the default-branch `deploy-release.yml` dispatcher with the four-part
13+
release version and the CurseForge release level. It derives the target branch
14+
from the version, checks the metadata and prior CI, builds a sealed bundle,
15+
then publishes those same files to MMD Maven, CurseForge and GitHub. Live
16+
publication requires `confirm_live_publication=true`.
17+
18+
Verify public downloads from all three services against the qualified hashes.
19+
Check CurseForge's Minecraft version, loader and OreSpawn dependency as well.
20+
Keep failed receipts, and retry only failed publishing jobs so an accepted
21+
upload is not sent twice. Once Base Metals is available, update companion
22+
mods to its released version and exact jar hash before publishing them.

‎gradle.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ mcp_version=20190829.143755
3939
mod_id=basemetals
4040
mod_name=Base Metals
4141
mod_license=LGPL-2.1
42-
mod_version=3.0.1.114041
42+
mod_version=3.0.2.114041
4343

4444
# Maven coordinates and credits.
4545
mod_group=zone.moddev.mc.basemetals
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Java 8's doclet leaves enum siblings in platform-dependent order.
2+
// Keep the full hierarchy while giving leaf-only sibling lists a stable order.
3+
tasks.withType(Javadoc).configureEach {
4+
inputs.property('javadocTreeOrder', 'lexical leaf siblings 1')
5+
doLast {
6+
fileTree(destinationDir) { include '**/*-tree.html' }.files.each { page ->
7+
String original = page.getText('UTF-8')
8+
String ordered = original.replaceAll(
9+
/(<ul>\r?\n)((?:<li type="circle">[^\r\n]*<\/li>\r?\n){2,})(<\/ul>)/) {
10+
all, opening, siblings, closing ->
11+
opening + siblings.readLines().sort().join('\n') + '\n' + closing
12+
}
13+
if (ordered != original) page.setText(ordered, 'UTF-8')
14+
}
15+
}
16+
}

‎gradle/release/artifacts.gradle‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ tasks.register('verifyReleaseConfiguration') {
131131
loaderCode: project.loader_code.toString(), javaVersion: project.java_version.toString(),
132132
gradleJavaVersion: project.gradle_java_version.toString(),
133133
curseForgeProjectId: project.curseforge_project_id.toString()]
134-
def expected = [modVersion: '3.0.1.114041', modGroup: expectedMavenGroup,
134+
def expected = [modVersion: '3.0.2.114041', modGroup: expectedMavenGroup,
135135
minecraftVersion: '1.14.4', forgeVersion: '28.2.26',
136136
forgeInstallerSha256: 'E68A0E2D589B2954C5D109A04B80747AC8C061ACABE074DB1607F9C2FD7D2CE1',
137137
mappingChannel: 'snapshot', mappingVersion: '20190719-1.14.3',
@@ -255,7 +255,7 @@ tasks.register('verifyReleaseArtifacts') {
255255
throw new GradleException('Release manifest contains the wrong identity')
256256
}
257257
String modsToml = zip.getInputStream(zip.getEntry('META-INF/mods.toml')).getText('UTF-8')
258-
if (modsToml.contains('${') || !modsToml.contains('version="3.0.1.114041"')
258+
if (modsToml.contains('${') || !modsToml.contains('version="3.0.2.114041"')
259259
|| !modsToml.contains('versionRange="[4.1.0.114041,5.0.0)"')) {
260260
throw new GradleException('Release mods.toml contains unresolved or incompatible metadata')
261261
}

‎gradle/verification/generated-data.gradle‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,9 @@ tasks.named('check') {
9393
project.ext.baseMetalsBuild.putAll([
9494
generateOreModels: generateOreModels
9595
])
96+
97+
tasks.register('verifyBarModels', Exec) {
98+
dependsOn verifyGeneratedData
99+
commandLine 'node', '--test', 'tools/test_bar_models.js'
100+
}
101+
tasks.named('check') { dependsOn 'verifyBarModels' }

0 commit comments

Comments
 (0)