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
7 changes: 7 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Base Metals 3.1.2.116051

- Fixed flickering ore overlays and brought the vanilla bar connections across to 1.16.5.
- Fixed floors and walls disappearing through the gaps in doors and trapdoors.
- Bows, crossbows, shields and fishing rods now switch to their in-use models.
- Builds and stack tests now use the published OreSpawn 4.1.7.116051.

Base Metals 3.1.1.116051

- Register the old-world hook through Forge's queued common setup, before any
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ shields, bows, crossbows, arrows, and bolts. The mod also includes Crack
Hammers, scythes, metal anvils, the human detector, villager trades,
advancements, and extra loot to find in chests.

This is Base Metals `3.1.1.116051` for Minecraft 1.16.5. It brings the 1.15.2
This is Base Metals `3.1.2.116051` for Minecraft 1.16.5. It brings the 1.15.2
release forward while keeping the same blocks, items and recipes. MMDLib and
Additional Loot Tables are no longer needed. OreSpawn places the ores, and
Base Metals supplies the metals and their recipes.
Expand All @@ -37,7 +37,7 @@ are not yet included in the 3.0.1 builds for Minecraft 1.13–1.15.
- Java 8
- OreSpawn `[4.1.0.116051,5.0.0)` on both client and server

Put `BaseMetals-3.1.1.116051.jar` and OreSpawn `4.1.0.116051` (or a later
Put `BaseMetals-3.1.2.116051.jar` and OreSpawn `4.1.7.116051` (or a later
compatible OreSpawn 4 build for 1.16.5) in the `mods` directory. MMDLib and
Additional Loot Tables are not dependencies. Mineralogy is optional.

Expand Down Expand Up @@ -205,16 +205,16 @@ builds, CodeQL, wrapper validation, and Eclipse classpath isolation. Test probes
and historical fixtures are excluded from the published JAR.

Development and packaged tests use the published
[OreSpawn `4.1.0.116051` release](https://www.curseforge.com/minecraft/mc-mods/mmd-orespawn/files/9080646)
through Curse Maven: `curse.maven:mmd-orespawn-245586:9080646`. The build checks
[OreSpawn `4.1.7.116051` release](https://www.curseforge.com/minecraft/mc-mods/mmd-orespawn/files/9929985)
through Curse Maven: `curse.maven:mmd-orespawn-245586:9929985`. The build checks
its checksum, Minecraft version and configuration-screen API.

CI stages the same verified download with `gradle/stage-orespawn-release.sh`
and passes its temporary repository through `orespawnVerificationRepository`.
Normal development does not need a local OreSpawn checkout or repository.

Release artifacts use Maven coordinate
`zone.moddev.mc.basemetals:BaseMetals:3.1.1.116051`.
`zone.moddev.mc.basemetals:BaseMetals:3.1.2.116051`.

Report defects through the
[Base Metals issue tracker](https://github.com/MinecraftModDevelopmentMods/BaseMetals/issues).
Expand Down
2 changes: 1 addition & 1 deletion docs/MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The hook is registered through queued common setup, after parallel mod loading.
Only registration timing has changed; saved IDs and migration rules are unchanged.

Always upgrade a copy and retain the original 1.10/1.12 world. Install Base
Metals `3.1.1.116051`, OreSpawn `4.1.0.116051`, and any other 1.16.5 mods needed
Metals `3.1.2.116051`, OreSpawn `4.1.7.116051`, and any other 1.16.5 mods needed
by that world. Do not carry MMDLib, Additional Loot Tables, the OreSpawn 3
plugin, or Base Metals' old fallback generator into the new instance.

Expand Down
12 changes: 6 additions & 6 deletions docs/VERSIONS.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Supported versions

Base Metals `3.1.1.116051` targets Minecraft `1.16.5`, Forge `36.2.34`, and
Base Metals `3.1.2.116051` targets Minecraft `1.16.5`, Forge `36.2.34`, and
Java 8. The Gradle build itself runs on Java `17.0.1+12` and uses ForgeGradle
`7.0.34` with Gradle `9.6.1`; those build-time runtimes do not change the Java
8 requirement of the released mod.

Builds and tests use the published
[OreSpawn `4.1.0.116051` release](https://www.curseforge.com/minecraft/mc-mods/mmd-orespawn/files/9080646) with
SHA-256 `CDF59D83F191C5FBCD8921228DB577066A63A8FEB25CA79DB4EAEEA32D32DB04`.
[OreSpawn `4.1.7.116051` release](https://www.curseforge.com/minecraft/mc-mods/mmd-orespawn/files/9929985) with
SHA-256 `310022CCDA2C6A4D118F94C72838ACC8020C2F594F2E93754DC19D2644B8E9FC`.
At runtime, Base Metals requires OreSpawn `[4.1.0.116051,5.0.0)` for Minecraft 1.16.5.
The configuration cog uses OreSpawn's public 4.1 client API.

The development coordinate is `curse.maven:mmd-orespawn-245586:9080646`:
CurseForge project `245586`, file `9080646`. CI downloads and checks the same
The development coordinate is `curse.maven:mmd-orespawn-245586:9929985`:
CurseForge project `245586`, file `9929985`. CI downloads and checks the same
file before staging it in a temporary Maven repository.
The schema-3 provider supports the OreSpawn versions in the runtime range above.

Release artifacts use Maven coordinate
`zone.moddev.mc.basemetals:BaseMetals:3.1.1.116051`.
`zone.moddev.mc.basemetals:BaseMetals:3.1.2.116051`.
2 changes: 1 addition & 1 deletion docs/WORLDGEN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Base Metals requires OreSpawn `[4.1.0.116051,5.0.0)` and packages provider
schema 3, revision 1 at `data/basemetals/orespawn/provider.json`. Builds and
tests use the published OreSpawn `4.1.0.116051` release, CurseForge file `9080646`.
tests use the published OreSpawn `4.1.7.116051` release, CurseForge file `9929985`.

The provider declares ores only: it has no rocks, geomes, biome rules, terrain
dimensions, formations, fluid deposits, vanilla suppression, or strata
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ curseforge_project_id=240967

# Exact OreSpawn release used for development, CI and packaged tests.
orespawn_dependency_mode=release
orespawn_version=4.1.0.116051
orespawn_version=4.1.7.116051
orespawn_curse_project_id=245586
orespawn_curse_file_id=9080646
orespawn_sha256=CDF59D83F191C5FBCD8921228DB577066A63A8FEB25CA79DB4EAEEA32D32DB04
orespawn_curse_file_id=9929985
orespawn_sha256=310022CCDA2C6A4D118F94C72838ACC8020C2F594F2E93754DC19D2644B8E9FC

# Versions accepted when players load the mod.
forge_version_range=[36,)
Expand All @@ -40,7 +40,7 @@ mcp_version=20210115.111550
mod_id=basemetals
mod_name=Base Metals
mod_license=LGPL-2.1
mod_version=3.1.1.116051
mod_version=3.1.2.116051

# Maven coordinates and credits.
mod_group=zone.moddev.mc.basemetals
Expand Down
4 changes: 2 additions & 2 deletions gradle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Use Java 17 to run Gradle. ForgeGradle uses Java 25 for its Mavenizer; Minecraft
and the mod run on Java 8. Development accepts newer Java 8 updates, while
release auditing requires the pinned compiler in `gradle.properties`.

The build resolves the published OreSpawn `4.1.0.116051` release through
`curse.maven:mmd-orespawn-245586:9080646`. `verifyReleaseDependencies` checks
The build resolves the published OreSpawn `4.1.7.116051` release through
`curse.maven:mmd-orespawn-245586:9929985`. `verifyReleaseDependencies` checks
its checksum, mod metadata and configuration-screen API. No local OreSpawn
checkout is needed.

Expand Down
12 changes: 6 additions & 6 deletions gradle/release/artifacts.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ tasks.register('verifyReleaseConfiguration') {
loaderCode: project.loader_code.toString(), javaVersion: project.java_version.toString(),
gradleJavaVersion: project.gradle_java_version.toString(),
curseForgeProjectId: project.curseforge_project_id.toString()]
def expected = [modVersion: '3.1.1.116051', modGroup: expectedMavenGroup,
def expected = [modVersion: '3.1.2.116051', modGroup: expectedMavenGroup,
minecraftVersion: '1.16.5', forgeVersion: '36.2.34',
forgeInstallerSha256: '53B73DBBCC486F38726E76CE923B13381044984C83C762847C7193340F97130F',
mappingChannel: 'official', mappingVersion: '1.16.5',
Expand All @@ -144,8 +144,8 @@ tasks.register('verifyReleaseConfiguration') {
tasks.register('verifyReleaseDependencies') {
group = 'verification'
doLast {
def expected = [version: '4.1.0.116051', curseProjectId: '245586', curseFileId: '9080646',
sha256: 'CDF59D83F191C5FBCD8921228DB577066A63A8FEB25CA79DB4EAEEA32D32DB04']
def expected = [version: '4.1.7.116051', curseProjectId: '245586', curseFileId: '9929985',
sha256: '310022CCDA2C6A4D118F94C72838ACC8020C2F594F2E93754DC19D2644B8E9FC']
if (configuredOreSpawnIdentity != expected) {
throw new GradleException("Unexpected OreSpawn identity: ${configuredOreSpawnIdentity}")
}
Expand All @@ -160,8 +160,8 @@ tasks.register('verifyReleaseDependencies') {
if (metadataEntry == null) throw new GradleException('OreSpawn mod metadata is missing')
String metadata = zip.getInputStream(metadataEntry).getText('UTF-8')
if (!metadata.contains('modId="orespawn"')
|| !metadata.contains('version="4.1.0.116051"')
|| !metadata.contains('versionRange="[1.16.5,1.17)"')
|| !metadata.contains('version="4.1.7.116051"')
|| !metadata.contains('versionRange="[1.16.5]"')
|| zip.getEntry('zone/moddev/mc/orespawn/api/OreSpawnApi.class') == null
|| zip.getEntry('zone/moddev/mc/orespawn/api/client/WorldSettingsExtensionRegistry.class') == null) {
throw new GradleException('Expected Minecraft 1.16.5 OreSpawn 4.1 and its configuration-screen API')
Expand Down Expand Up @@ -256,7 +256,7 @@ tasks.register('verifyReleaseArtifacts') {
throw new GradleException('Release manifest contains the wrong identity')
}
String modsToml = zip.getInputStream(zip.getEntry('META-INF/mods.toml')).getText('UTF-8')
if (modsToml.contains('${') || !modsToml.contains('version="3.1.1.116051"')
if (modsToml.contains('${') || !modsToml.contains('version="3.1.2.116051"')
|| !modsToml.contains('versionRange="[4.1.0.116051,5.0.0)"')
|| !modsToml.contains('loaderVersion="[36,)"')
|| !modsToml.contains('versionRange="[36,)"')
Expand Down
6 changes: 3 additions & 3 deletions gradle/stage-orespawn-candidate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ param(
)

$ErrorActionPreference = 'Stop'
$candidateVersion = '4.1.0.116051'
$candidateSha256 = 'CDF59D83F191C5FBCD8921228DB577066A63A8FEB25CA79DB4EAEEA32D32DB04'
$candidateVersion = '4.1.7.116051'
$candidateSha256 = '310022CCDA2C6A4D118F94C72838ACC8020C2F594F2E93754DC19D2644B8E9FC'

if ((Get-FileHash -LiteralPath $CandidateJar -Algorithm SHA256).Hash -ne $candidateSha256) {
throw 'The OreSpawn candidate differs from the qualified build.'
Expand All @@ -18,7 +18,7 @@ try {
if ($null -eq $metadata) { throw 'OreSpawn mod metadata is missing.' }
$reader = [IO.StreamReader]::new($metadata.Open())
try { $text = $reader.ReadToEnd() } finally { $reader.Dispose() }
if (!$text.Contains('version="4.1.0.116051"') -or !$text.Contains('versionRange="[1.16.5,1.17)"') -or
if (!$text.Contains('version="4.1.7.116051"') -or !$text.Contains('versionRange="[1.16.5]"') -or
$null -eq $archive.GetEntry('zone/moddev/mc/orespawn/api/client/WorldSettingsExtensionRegistry.class')) {
throw 'Expected the OreSpawn 1.16.5 candidate with its configuration-screen API.'
}
Expand Down
7 changes: 7 additions & 0 deletions gradle/verification/generated-data.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,10 @@ tasks.named('check') {
project.ext.baseMetalsBuild.putAll([
generateOreModels: generateOreModels
])

tasks.register('verifyBarModels', Exec) {
dependsOn verifyGeneratedData
commandLine 'node', '--test', 'tools/test_bar_models.js'
}

tasks.named('check') { dependsOn 'verifyBarModels' }
2 changes: 1 addition & 1 deletion src/clientIntegrationTest/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description='''Build-only packaged-client checks for Base Metals 1.16.5.'''
[[dependencies.basemetalsclientprobe]]
modId="basemetals"
mandatory=true
versionRange="[3.1.1.116051]"
versionRange="[3.1.2.116051]"
ordering="AFTER"
side="CLIENT"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,76 +2,99 @@
"multipart": [
{
"apply": {
"model": "basemetals:block/adamantine_bars_post"
"model": "basemetals:block/adamantine_bars_post_ends"
}
},
{
"when": {
"north": "true"
"north": "false",
"east": "false",
"south": "false",
"west": "false"
},
"apply": {
"model": "basemetals:block/adamantine_bars_side"
"model": "basemetals:block/adamantine_bars_post"
}
},
{
"when": {
"north": "false"
"north": "true",
"east": "false",
"south": "false",
"west": "false"
},
"apply": {
"model": "basemetals:block/adamantine_bars_cap"
}
},
{
"when": {
"south": "true"
"north": "true"
},
"apply": {
"model": "basemetals:block/adamantine_bars_side_alt"
"model": "basemetals:block/adamantine_bars_side"
}
},
{
"when": {
"south": "false"
"north": "false",
"east": "true",
"south": "false",
"west": "false"
},
"apply": {
"model": "basemetals:block/adamantine_bars_cap_alt",
"model": "basemetals:block/adamantine_bars_cap",
"y": 90
}
},
{
"when": {
"west": "true"
"east": "true"
},
"apply": {
"model": "basemetals:block/adamantine_bars_side_alt",
"model": "basemetals:block/adamantine_bars_side",
"y": 90
}
},
{
"when": {
"north": "false",
"east": "false",
"south": "true",
"west": "false"
},
"apply": {
"model": "basemetals:block/adamantine_bars_cap",
"y": 270
"model": "basemetals:block/adamantine_bars_cap_alt"
}
},
{
"when": {
"east": "true"
"south": "true"
},
"apply": {
"model": "basemetals:block/adamantine_bars_side",
"model": "basemetals:block/adamantine_bars_side_alt"
}
},
{
"when": {
"north": "false",
"east": "false",
"south": "false",
"west": "true"
},
"apply": {
"model": "basemetals:block/adamantine_bars_cap_alt",
"y": 90
}
},
{
"when": {
"east": "false"
"west": "true"
},
"apply": {
"model": "basemetals:block/adamantine_bars_cap_alt"
"model": "basemetals:block/adamantine_bars_side_alt",
"y": 90
}
}
]
}
}
Loading