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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ jobs:
if-no-files-found: error
retention-days: 30
path: |
build/libs/Mineralogy-6.1.4.121012.jar
build/libs/Mineralogy-6.1.4.121012-sources.jar
build/libs/Mineralogy-6.1.4.121012-javadoc.jar
build/libs/Mineralogy-6.1.5.121012.jar
build/libs/Mineralogy-6.1.5.121012-sources.jar
build/libs/Mineralogy-6.1.5.121012-javadoc.jar
build/release/SHA256SUMS
CHANGELOG.txt
- name: Upload diagnostics on failure
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Mineralogy 6.1.5.121012 for Minecraft 1.21.1 NeoForge

- Make rock salt and gypsum less widespread, while keeping substantial beds in dry basins.
- Give sedimentary and volcanic provinces better representation in the default geology.
- Tune sulfur, phosphorus and nitrate depths, quantities and host-rock preferences.
- Use the released OreSpawn 4.1.1. Existing saved geology and pack overrides stay authoritative; no retrogen is enabled.

Mineralogy 6.1.4.121012 for Minecraft 1.21.1 NeoForge

- Added matching 37-member terrain-rock block/item tags and additive vanilla
Expand Down
15 changes: 8 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ tasks.register('verifyReleaseConfiguration') {
group = 'verification'
description = 'Verifies the exact Mineralogy 1.21.1 NeoForge release identity.'
doLast {
if (project.mod_version != '6.1.4.121012'
if (project.mod_version != '6.1.5.121012'
|| project.mod_group != expectedMavenGroup
|| project.minecraft_version != '1.21.1'
|| project.neo_version != '21.1.247') {
Expand All @@ -475,7 +475,7 @@ tasks.register('verifyReleaseDependencies') {
group = 'verification'
description = 'Resolves and verifies the exact released OreSpawn dependency.'
doLast {
if (project.mod_version != '6.1.4.121012'
if (project.mod_version != '6.1.5.121012'
|| project.minecraft_version != project.mc_version
|| project.mc_version != '1.21.1'
|| project.loader_name != 'neoforge'
Expand All @@ -486,9 +486,9 @@ tasks.register('verifyReleaseDependencies') {
|| project.curseforge_project_id != '240974') {
throw new GradleException('Unexpected generic release dispatcher metadata')
}
if (project.orespawn_version != '4.0.16.121012' ||
if (project.orespawn_version != '4.1.1.121012' ||
project.orespawn_curse_project_id != '245586' ||
project.orespawn_curse_file_id != '8807135') {
project.orespawn_curse_file_id != '9400780') {
throw new GradleException('Unexpected OreSpawn release coordinates')
}
File artifact = configurations.orespawnRelease.resolvedConfiguration.resolvedArtifacts
Expand Down Expand Up @@ -621,7 +621,7 @@ tasks.register('verifyReleaseArtifacts') {
}
}
def provider = new JsonSlurper().parse(zip.getInputStream(zip.getEntry('data/mineralogy/orespawn/provider.json')))
if (provider.schema_version != 4 || provider.provider_revision != 3 ||
if (provider.schema_version != 4 || provider.provider_revision != 4 ||
provider.rocks.size() != 32 || provider.ores.size() != 3 || provider.fluid_deposits.size() != 1) {
throw new GradleException('Packaged provider contract is invalid')
}
Expand All @@ -642,8 +642,9 @@ tasks.register('verifyReleaseArtifacts') {
] || provider.profile_defaults?.terrain_dimensions?.get('minecraft:overworld')?.host_blocks !=
['minecraft:stone', 'minecraft:deepslate'] ||
!provider.ores.values().every { ore ->
ore.dimensions?.get('minecraft:overworld')?.host_tags ==
['minecraft:stone_ore_replaceables', 'minecraft:deepslate_ore_replaceables']
ore.dimensions?.get('minecraft:overworld')?.host_tags == [] &&
ore.dimensions?.get('minecraft:overworld')?.host_blocks ==
['minecraft:stone', 'minecraft:deepslate']
}) {
throw new GradleException('Packaged provider does not use the Minecraft 1.21.1 native-rock and deepslate contract')
}
Expand Down
20 changes: 20 additions & 0 deletions docs/GEOLOGY_BALANCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Fresh-world geology balance

6.1.5 makes rock salt and gypsum less widespread while retaining substantial
dry-basin beds. Plains and sunflower plains have a stronger sedimentary-basin
preference; birch forests and mushroom fields can represent volcanic provinces.
These are game-scale proxies, not a literal geological model of forests.

Sulfur favours sedimentary and volcanic settings at Y -32..64; phosphorus uses
sedimentary/intrusive hosts at -16..64; nitrate favours shallow dry settings at
40..96. Their requested budgets are 12 blocks per attempt. OreSpawn remains the
only generation engine; vanilla management is not enabled by Mineralogy.

The six-seed combined-stack survey sampled 49,152 prediction columns and 96
random generated chunks per configuration, plus separate targeted samples.
In the sampled Y -60..63 natural rock, salt fell from 5.81% to 0.35% and gypsum
from 3.15% to 1.00%. These figures are not a guarantee for every seed or mine.

External overrides and global/world profiles remain authoritative. No retrogen
is enabled. Back up and deliberately edit an existing profile to change later
chunks; old/new chunk boundaries may then be visible.
7 changes: 4 additions & 3 deletions docs/PROVIDER.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ The exact bytes from the installed build are exported as

## Current Contents

- Provider schema 4, mod ID `mineralogy`, and provider revision 3.
- Provider schema 4, mod ID `mineralogy`, and provider revision 4.
- 32 enabled rock rules across the four geological families.
- Sulfur, phosphorous, and nitrate ore rules.
- Minecraft 1.21.1 heights `-64` through `319` and Overworld-only terrain defaults.
- Minecraft blocks for granite, diorite, andesite, basalt, and tuff. Worldgen
aliases map the five matching historical Mineralogy rock IDs to their native
outputs, while all historical Mineralogy blocks remain registered for old
worlds. Native smooth basalt is also accepted by the matching smooth family.
- Both `minecraft:stone` and `minecraft:deepslate` are terrain hosts. The three
ore rules use Minecraft's stone- and deepslate-ore-replaceable tags.
- Both `minecraft:stone` and `minecraft:deepslate` are terrain hosts. Ore rules use
exact natural stone/deepslate fallback blocks and selective rock families,
not broad replacement tags that would bypass geological host preferences.
- Sky/geome Stable Layers defaults for fresh worlds plus Cyano defaults used
when OreSpawn migrates an established Mineralogy 3 world.
- The covered `mineralogy:fluid_deposit/crude_oil` rule at Y `-48` through `48`,
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ org.gradle.configuration-cache=false
org.gradle.caching=true
org.gradle.parallel=false

mod_version=6.1.4.121012
mod_version=6.1.5.121012
mod_group=zone.moddev.mc.mineralogy
mod_group_id=zone.moddev.mc.mineralogy
mod_id=mineralogy
Expand All @@ -30,7 +30,7 @@ java_setup_version=21.0.7+6.0.LTS
gradle_java_version=21
curseforge_project_id=240974

orespawn_version=4.0.16.121012
orespawn_version=4.1.1.121012
orespawn_curse_project_id=245586
orespawn_curse_file_id=8807135
orespawn_sha256=B0659E071633D9EC42A96D9759895DE2F5126C205A4BDBFEE0EB8E3F226D158B
orespawn_curse_file_id=9400780
orespawn_sha256=BF02244E25B5FBF89CCAD45F41B2624B850D4BBCB70CF66822249BA233A00976
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ side="BOTH"
[[dependencies.${mod_id}]]
modId="orespawn"
type="required"
versionRange="[4.0.6,5.0.0)"
versionRange="[4.1.1,5.0.0)"
ordering="AFTER"
side="BOTH"

Expand Down
135 changes: 98 additions & 37 deletions src/main/resources/data/mineralogy/orespawn/provider.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schema_version": 4,
"provider_modid": "mineralogy",
"provider_revision": 3,
"provider_revision": 4,
"profile_defaults": {
"geology_mode": "geome",
"place_fluid_deposits": true,
Expand Down Expand Up @@ -50,6 +50,29 @@
],
"host_tags": []
}
},
"biomes": {
"minecraft:plains": {
"stable_craton": 2,
"sedimentary_basin": 3.65
},
"minecraft:sunflower_plains": {
"stable_craton": 2,
"sedimentary_basin": 3.65
},
"minecraft:birch_forest": {
"stable_craton": 2,
"volcanic_arc": 4.3
},
"minecraft:old_growth_birch_forest": {
"stable_craton": 2.3,
"volcanic_arc": 4.3
},
"minecraft:mushroom_fields": {
"coastal_shelf": 2,
"volcanic_arc": 3.05,
"stable_craton": 1
}
}
},
"fluid_deposits": {
Expand Down Expand Up @@ -367,10 +390,16 @@
"family": "sedimentary",
"depth_peak": 54,
"depth_spread": 28,
"weight": 0.6,
"weight": 0.18,
"geomes": {
"arid_basin": 4,
"coastal_shelf": 1.2
"stable_craton": 0.08,
"mountain_belt": 0.1,
"volcanic_arc": 0.05,
"sedimentary_basin": 0.25,
"coastal_shelf": 0.04,
"arid_basin": 2.1,
"wetland_basin": 0.03,
"glacial_highland": 0.08
},
"enabled": true,
"min_y": -64,
Expand All @@ -397,10 +426,16 @@
"family": "sedimentary",
"depth_peak": 52,
"depth_spread": 26,
"weight": 0.65,
"weight": 0.42,
"geomes": {
"arid_basin": 3.5,
"coastal_shelf": 1
"stable_craton": 0.15,
"mountain_belt": 0.15,
"volcanic_arc": 0.1,
"sedimentary_basin": 0.4,
"coastal_shelf": 0.18,
"arid_basin": 3,
"wetland_basin": 0.08,
"glacial_highland": 0.12
},
"enabled": true,
"min_y": -64,
Expand Down Expand Up @@ -577,20 +612,29 @@
"dimensions": {
"minecraft:overworld": {
"enabled": true,
"min_y": 16,
"min_y": -32,
"max_y": 64,
"frequency": 1,
"quantity": 16,
"frequency": 0.85,
"quantity": 12,
"host_families": [
"sedimentary",
"metamorphic",
"igneous_intrusive",
"igneous_volcanic"
],
"host_tags": [
"minecraft:stone_ore_replaceables",
"minecraft:deepslate_ore_replaceables"
]
"host_tags": [],
"host_blocks": [
"minecraft:stone",
"minecraft:deepslate"
],
"geomes": {
"stable_craton": 0.15,
"mountain_belt": 0.3,
"volcanic_arc": 2.5,
"sedimentary_basin": 0.7,
"coastal_shelf": 0.65,
"arid_basin": 1.5,
"wetland_basin": 0.15,
"glacial_highland": 0.2
}
}
},
"block": "mineralogy:sulfur_ore"
Expand All @@ -601,20 +645,29 @@
"dimensions": {
"minecraft:overworld": {
"enabled": true,
"min_y": 16,
"min_y": -16,
"max_y": 64,
"frequency": 1,
"quantity": 16,
"quantity": 12,
"host_families": [
"sedimentary",
"metamorphic",
"igneous_intrusive",
"igneous_volcanic"
"igneous_intrusive"
],
"host_tags": [
"minecraft:stone_ore_replaceables",
"minecraft:deepslate_ore_replaceables"
]
"host_tags": [],
"host_blocks": [
"minecraft:stone",
"minecraft:deepslate"
],
"geomes": {
"stable_craton": 0.6,
"mountain_belt": 0.35,
"volcanic_arc": 0.5,
"sedimentary_basin": 1.25,
"coastal_shelf": 1.5,
"arid_basin": 0.7,
"wetland_basin": 0.85,
"glacial_highland": 0.45
}
}
},
"block": "mineralogy:phosphorous_ore"
Expand All @@ -625,20 +678,28 @@
"dimensions": {
"minecraft:overworld": {
"enabled": true,
"min_y": 16,
"max_y": 64,
"frequency": 1,
"quantity": 16,
"min_y": 40,
"max_y": 96,
"frequency": 1.5,
"quantity": 12,
"host_families": [
"sedimentary",
"metamorphic",
"igneous_intrusive",
"igneous_volcanic"
"sedimentary"
],
"host_tags": [],
"host_blocks": [
"minecraft:stone",
"minecraft:deepslate"
],
"host_tags": [
"minecraft:stone_ore_replaceables",
"minecraft:deepslate_ore_replaceables"
]
"geomes": {
"stable_craton": 0.4,
"mountain_belt": 0.15,
"volcanic_arc": 0.2,
"sedimentary_basin": 0.7,
"coastal_shelf": 0.25,
"arid_basin": 2,
"wetland_basin": 0.02,
"glacial_highland": 0.05
}
}
},
"block": "mineralogy:nitrate_ore"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package zone.moddev.mc.mineralogy;

import static org.junit.Assert.*;
import com.google.gson.*;
import java.nio.file.*;
import org.junit.Test;

/** Small resource contracts; world-generation censuses run locally, not in CI. */
public class GeologyBalanceDefaultsTest {
private JsonObject provider() throws Exception {
return JsonParser.parseString(Files.readString(Path.of("src/main/resources/data/mineralogy/orespawn/provider.json"))).getAsJsonObject();
}
@Test public void evaporitesHaveExplicitProvinceWeights() throws Exception {
JsonObject p=provider();
assertEquals(32,p.getAsJsonObject("rocks").size());
for(String name:new String[]{"rock_salt","gypsum"}) {
JsonObject rock=p.getAsJsonObject("rocks").getAsJsonObject("mineralogy:rock/mineralogy/"+name);
assertEquals(8,rock.getAsJsonObject("geomes").size());
assertTrue(rock.getAsJsonObject("geomes").get("arid_basin").getAsDouble()>rock.getAsJsonObject("geomes").get("wetland_basin").getAsDouble());
}
assertEquals(.18,p.getAsJsonObject("rocks").getAsJsonObject("mineralogy:rock/mineralogy/rock_salt").get("weight").getAsDouble(),1e-9);
assertEquals(.42,p.getAsJsonObject("rocks").getAsJsonObject("mineralogy:rock/mineralogy/gypsum").get("weight").getAsDouble(),1e-9);
}
@Test public void newWorldOresUseNaturalHostsWithoutTakingOverVanilla() throws Exception {
JsonObject p=provider();
assertFalse(p.getAsJsonObject("profile_defaults").get("manage_vanilla_ores").getAsBoolean());
assertEquals(3,p.getAsJsonObject("ores").size());
for(var entry:p.getAsJsonObject("ores").entrySet()) {
JsonObject rule=entry.getValue().getAsJsonObject().getAsJsonObject("dimensions").getAsJsonObject("minecraft:overworld");
assertEquals(12,rule.get("quantity").getAsInt());
assertEquals(0,rule.getAsJsonArray("host_tags").size());
assertEquals(2,rule.getAsJsonArray("host_blocks").size());
assertEquals(8,rule.getAsJsonObject("geomes").size());
}
JsonObject biomes=p.getAsJsonObject("profile_defaults").getAsJsonObject("biomes");
assertEquals(5,biomes.size());
assertEquals(3.65,biomes.getAsJsonObject("minecraft:plains").get("sedimentary_basin").getAsDouble(),1e-9);
assertEquals(4.3,biomes.getAsJsonObject("minecraft:birch_forest").get("volcanic_arc").getAsDouble(),1e-9);
}
}
Loading
Loading