Core stops reading the cave, floating and ore settings

Engine.getCaveBiome asks the pack's CaveBiomes service (ModuleServices.overriddenCaveBiome, caveMinDepthBelowSurface) instead of the
carving resolver and the biome's field; the State overload is gone and the Bukkit nms biome source stops threading one.
ModuleSettings.treeBiomes/usedBiomes feed IrisRegion.getAllBiomes and IrisDimension.getReachableBiomes from LinkedBiomes settings.
Tests: decoding of every moved key on the pre-port pack files (OreSettingsDecodingTest, CarveSettingsDecodingTest,
FloatingSettingsDecodingTest), CarvingResolverParityTest (was IrisDimensionCarvingResolverParityTest), EngineCaveBiomeTest,
CaveBiomeBandsTest, IrisRegionBiomeTreeTest, MovedModuleFieldsTest, the inferred variant keeps its module settings, and the
tests that built biomes with the removed fields use module settings
This commit is contained in:
piexel committed 2026-10-10 08:51:28 +02:00
1 parent fac06c3beb
commit 781ff0931d
26 files changed
+1982 -282

No files matched your search

@@ -0,0 +1,292 @@
{
"name": "Amethyst Cavern",
"derivative": "minecraft:dripstone_caves",
"vanillaDerivative": "minecraft:dripstone_caves",
"wall": {
"palette": [
{
"block": "minecraft:amethyst_block",
"weight": 6
},
{
"block": "minecraft:budding_amethyst"
}
]
},
"layers": [
{
"palette": [
{
"block": "minecraft:amethyst_block",
"weight": 6
},
{
"block": "minecraft:budding_amethyst"
}
],
"maxHeight": 2,
"minHeight": 2
},
{
"palette": [
{
"block": "minecraft:deepslate"
}
]
}
],
"decorators": [
{
"chance": 0.1,
"palette": [
{
"block": "minecraft:amethyst_cluster",
"weight": 4
},
{
"block": "minecraft:small_amethyst_bud",
"weight": 3
},
{
"block": "minecraft:medium_amethyst_bud",
"weight": 2
},
{
"block": "minecraft:large_amethyst_bud"
}
]
},
{
"partOf": "CEILING",
"chance": 0.1,
"palette": [
{
"block": "minecraft:amethyst_cluster",
"data": {
"facing": "down"
},
"weight": 4
},
{
"block": "minecraft:small_amethyst_bud",
"data": {
"facing": "down"
},
"weight": 3
},
{
"block": "minecraft:medium_amethyst_bud",
"data": {
"facing": "down"
},
"weight": 2
},
{
"block": "minecraft:large_amethyst_bud",
"data": {
"facing": "down"
}
}
]
}
],
"caveCeilingLayers": [
{
"palette": [
{
"block": "minecraft:amethyst_block",
"weight": 6
},
{
"block": "minecraft:budding_amethyst"
}
],
"maxHeight": 2,
"minHeight": 2
},
{
"palette": [
{
"block": "minecraft:deepslate"
}
]
}
],
"objects": [
{
"chance": 0.21,
"density": 4,
"carvingSupport": "CARVING_ONLY",
"caveAnchorMode": "PROFILE_DEFAULT",
"translate": {
"y": -1
},
"place": [
"clutter/amethyst-cluster1",
"clutter/amethyst-cluster2",
"clutter/amethyst-cluster3",
"clutter/amethyst-cluster4"
],
"bottom": true,
"force": true,
"scale": {
"size": 0.75
}
},
{
"chance": 0.165,
"density": 4,
"carvingSupport": "CARVING_ONLY",
"caveAnchorMode": "PROFILE_DEFAULT",
"translate": {
"y": -1
},
"place": [
"clutter/amethyst-cluster1",
"clutter/amethyst-cluster2",
"clutter/amethyst-cluster3",
"clutter/amethyst-cluster4",
"clutter/amethyst-cluster5"
],
"bottom": true,
"force": true,
"scale": {
"size": 0.75
}
},
{
"chance": 0.0972,
"density": 4,
"carvingSupport": "CARVING_ONLY",
"caveAnchorMode": "PROFILE_DEFAULT",
"translate": {
"y": -1
},
"place": [
"clutter/amethyst-cluster1",
"clutter/amethyst-cluster2",
"clutter/amethyst-cluster3"
],
"bottom": true,
"force": true,
"scale": {
"size": 0.75
}
},
{
"chance": 0.0972,
"density": 4,
"carvingSupport": "CARVING_ONLY",
"caveAnchorMode": "PROFILE_DEFAULT",
"translate": {
"y": -1
},
"place": [
"clutter/rock1",
"clutter/rock2",
"clutter/rock3",
"clutter/rock4",
"clutter/boulder1",
"clutter/boulder2",
"clutter/boulder3",
"clutter/boulder4"
],
"bottom": true,
"force": true,
"scale": {
"size": 0.75
}
}
],
"caveProfile": {
"enabled": true,
"verticalRange": {
"min": 6,
"max": 620
},
"baseDensityStyle": {
"style": "PERLIN_IRIS",
"zoom": 0.8
},
"detailDensityStyle": {
"style": "FRACTAL_BILLOW_SIMPLEX",
"zoom": 0.52
},
"warpStyle": {
"style": "SIMPLEX",
"zoom": 0.46
},
"baseWeight": 0.91,
"detailWeight": 0.1,
"warpStrength": 0.18,
"densityThreshold": {
"min": -0.12,
"max": -0.04,
"style": {
"style": "SIMPLEX",
"zoom": 0.7
}
},
"thresholdBias": 0.12,
"sampleStep": 2,
"surfaceClearance": 6,
"allowSurfaceBreak": true,
"surfaceBreakStyle": {
"style": "SIMPLEX",
"zoom": 0.9
},
"surfaceBreakNoiseThreshold": 0.68,
"surfaceBreakDepth": 12,
"surfaceBreakThresholdBoost": 0.1,
"objectMinDepthBelowSurface": 16,
"defaultObjectAnchor": "FLOOR",
"defaultObjectPlaceMode": "ORGANIC_STILT",
"anchorScanStep": 1,
"anchorSearchAttempts": 18,
"allowFluid": true,
"fluidMinDepthBelowSurface": 20,
"fluidRequiresFloor": true,
"allowLava": true,
"modules": [
{
"style": {
"style": "SIMPLEX_VASCULAR",
"zoom": 0.98
},
"weight": 0.08,
"threshold": 0.03,
"verticalRange": {
"min": 24,
"max": 680
},
"invert": false
},
{
"style": {
"style": "FRACTAL_BILLOW_SIMPLEX",
"zoom": 0.34
},
"weight": 0.04,
"threshold": 0.07,
"verticalRange": {
"min": 8,
"max": 260
},
"invert": true
}
],
"verticalEdgeFade": 26,
"verticalEdgeFadeStrength": 0.18,
"minCarveCells": 24,
"recoveryThresholdBoost": 0.07
},
"caveMinDepthBelowSurface": 10,
"children": [
"carving/amethyst-child"
],
"childStyle": {
"style": "CELLULAR_IRIS_DOUBLE",
"zoom": 0.74
},
"childShrinkFactor": 1.54
}
@@ -0,0 +1,551 @@
{
"name": "Magnetics Plains",
"color": "#89C46A",
"rarity": 1,
"derivative": "minecraft:plains",
"vanillaDerivative": "minecraft:plains",
"generators": [
{
"min": -3,
"max": 14,
"generator": "magnetics/plains"
}
],
"wall": {
"palette": [
{
"block": "minecraft:mossy_cobblestone"
},
{
"block": "minecraft:cobblestone"
},
{
"block": "minecraft:stone"
},
{
"block": "minecraft:moss_block"
}
]
},
"layers": [
{
"maxHeight": 1,
"palette": [
{
"block": "minecraft:grass_block"
},
{
"block": "minecraft:moss_block"
}
],
"slopeCondition": {
"maximumSlope": 4
}
},
{
"minHeight": 1,
"maxHeight": 3,
"palette": [
{
"block": "minecraft:dirt"
},
{
"block": "minecraft:rooted_dirt"
},
{
"block": "minecraft:coarse_dirt"
}
]
},
{
"minHeight": 3,
"maxHeight": 6,
"palette": [
{
"block": "minecraft:mossy_cobblestone"
},
{
"block": "minecraft:cobblestone"
},
{
"block": "minecraft:stone"
}
]
},
{
"minHeight": 6,
"maxHeight": 18,
"palette": [
{
"block": "minecraft:stone"
},
{
"block": "minecraft:andesite"
},
{
"block": "minecraft:deepslate"
},
{
"block": "minecraft:cobblestone"
}
]
}
],
"objects": [
{
"place": [
"trees/oak/antioch1",
"trees/oak/antioch2",
"trees/oak/antioch4",
"trees/oak/antioch5",
"trees/oak/antioch6",
"trees/oak/antioch7",
"trees/oak/antioch8",
"trees/oak/antioch9",
"trees/oak/antioch10",
"trees/oak/antioch11",
"trees/oak/antioch12",
"trees/oak/antioch13"
],
"carvingSupport": "SURFACE_ONLY",
"chance": 0.5,
"mode": "CENTER_STILT",
"stiltSettings": {
"yMax": 4,
"yRand": 1
},
"rotation": {
"yAxis": {
"min": 0,
"max": 270,
"interval": 90,
"enabled": true
},
"enabled": true
}
}
],
"decorators": [
{
"chance": 0.2,
"palette": [
{
"block": "minecraft:dandelion"
},
{
"block": "minecraft:poppy"
},
{
"block": "minecraft:blue_orchid"
},
{
"block": "minecraft:allium"
},
{
"block": "minecraft:azure_bluet"
},
{
"block": "minecraft:cornflower"
},
{
"block": "minecraft:lily_of_the_valley"
}
]
},
{
"chance": 0.75,
"palette": [
{
"block": "minecraft:short_grass"
}
]
}
],
"mergeFloatingChildBiomes": true,
"floatingChildBiomes": [
{
"biome": "mushroom/forest",
"rarity": 1,
"footprintStyle": {
"style": "GLOB_IRIS_THICK",
"zoom": 0.76,
"fracture": {
"style": "SIMPLEX",
"zoom": 0.16,
"multiplier": 5
}
},
"footprintThreshold": 0.47,
"pickerStyle": {
"style": "SIMPLEX",
"zoom": 4.0
},
"altitudeStyle": {
"style": "SIMPLEX",
"zoom": 2.7
},
"minHeightAboveSurface": 115,
"maxHeightAboveSurface": 155,
"topShapeMode": "NOISE",
"maxTopHeight": 17,
"topShapeStyle": {
"style": "PERLIN_IRIS_THICK",
"zoom": 0.55,
"fracture": {
"style": "SIMPLEX",
"zoom": 0.18,
"multiplier": 6
}
},
"topShapeAmp": 0.75,
"edgeTaperWidth": 14,
"edgeTaperExponent": 1.4,
"edgeTaperVariationStyle": {
"style": "SIMPLEX",
"zoom": 0.18
},
"edgeTaperVariationAmplitude": 4,
"bottomStyle": {
"style": "SIMPLEX_VASCULAR",
"zoom": 0.3,
"fracture": {
"style": "SIMPLEX",
"zoom": 0.13,
"multiplier": 5
}
},
"bottomDepthMin": 6,
"bottomDepthMax": 46,
"bottomExponent": 2.2,
"bottomPaletteMode": "CUSTOM",
"bottomPalette": [
{
"minHeight": 18,
"maxHeight": 18,
"palette": [
{
"block": "minecraft:andesite"
}
]
}
],
"maxThickness": 72,
"wallWarpStyle": {
"style": "SIMPLEX",
"zoom": 0.25,
"fracture": {
"style": "SIMPLEX",
"zoom": 0.12,
"multiplier": 3
}
},
"wallWarpAmplitude": 5,
"carving": "carving/mushroom",
"carveStyle": {
"style": "SIMPLEX",
"zoom": 0.22,
"fracture": {
"style": "SIMPLEX",
"zoom": 0.14,
"multiplier": 3
}
},
"carveThreshold": 0.84,
"inheritDecorators": true,
"inheritObjects": true,
"objectShrinkFactor": 0.5,
"topObjectMode": "MERGE",
"topObjectOverrides": [
{
"place": [
"trees/mushroom/mushclut1",
"trees/mushroom/mushclut2",
"trees/mushroom/mushclut3",
"trees/mushroom/mushclut4",
"trees/mushroom/mushclut5",
"trees/mushroom/mushclut6",
"trees/mushroom/mushclut7",
"trees/mushroom/mushclut8",
"trees/mushroom/mushclut9",
"trees/mushroom/mushclut10"
],
"chance": 0.82,
"mode": "CENTER_HEIGHT",
"density": 7,
"scale": {
"size": 0.85
},
"warp": {
"style": "SIMPLEX",
"zoom": 0.28,
"multiplier": 1.1
},
"rotation": {
"yAxis": {
"min": 0,
"max": 270,
"interval": 90,
"enabled": true
},
"enabled": true
}
},
{
"place": [
"trees/mushroom/browngeneric1",
"trees/mushroom/browngeneric2",
"trees/mushroom/redgeneric3",
"trees/mushroom/redgeneric4",
"trees/mushroom/redgeneric5",
"trees/mushroom/redgeneric6",
"trees/mushroom/redgeneric7",
"trees/mushroom/redgeneric8",
"trees/mushroom/redgeneric9",
"trees/mushroom/redgeneric10",
"trees/mushroom/redgeneric11",
"trees/mushroom/redlumotall1",
"trees/mushroom/redlumotall2",
"trees/mushroom/redlumotall3",
"trees/mushroom/redlumotall4",
"trees/mushroom/redlumotall5"
],
"chance": 0.62,
"mode": "CENTER_STILT",
"density": 5,
"scale": {
"size": 0.8
},
"warp": {
"style": "SIMPLEX_VASCULAR",
"zoom": 0.32,
"multiplier": 1.0
},
"rotation": {
"yAxis": {
"min": 0,
"max": 270,
"interval": 90,
"enabled": true
},
"enabled": true
}
},
{
"place": [
"trees/mushroom/smolshroom1",
"trees/mushroom/smolshroom2",
"trees/mushroom/smolshroom3",
"trees/mushroom/smolshroom4",
"trees/mushroom/smolshroom5"
],
"chance": 0.85,
"mode": "CENTER_HEIGHT",
"density": 8,
"scale": {
"size": 0.9
},
"warp": {
"style": "SIMPLEX",
"zoom": 0.2,
"multiplier": 0.7
},
"rotation": {
"yAxis": {
"min": 0,
"max": 270,
"interval": 90,
"enabled": true
},
"enabled": true
}
}
],
"bottomObjectMode": "REPLACE",
"bottomObjectOverrides": [
{
"place": [
"trees/mushroom/mushclut1",
"trees/mushroom/mushclut2",
"trees/mushroom/mushclut3",
"trees/mushroom/mushclut4",
"trees/mushroom/mushclut5",
"trees/mushroom/mushclut6",
"trees/mushroom/mushclut7",
"trees/mushroom/mushclut8",
"trees/mushroom/mushclut9",
"trees/mushroom/mushclut10",
"trees/mushroom/smolshroom1",
"trees/mushroom/smolshroom2",
"trees/mushroom/smolshroom3",
"trees/mushroom/smolshroom4",
"trees/mushroom/smolshroom5"
],
"chance": 0.5,
"mode": "FAST_MIN_HEIGHT",
"density": 5,
"scale": {
"size": 0.7
},
"warp": {
"style": "SIMPLEX",
"zoom": 0.25,
"multiplier": 0.8
},
"rotation": {
"yAxis": {
"min": 0,
"max": 270,
"interval": 90,
"enabled": true
},
"enabled": true
}
}
]
},
{
"biome": "tropical/wilds",
"rarity": 1,
"footprintStyle": {
"style": "GLOB_IRIS_DOUBLE",
"zoom": 0.72,
"fracture": {
"style": "SIMPLEX",
"zoom": 0.24,
"multiplier": 4
}
},
"footprintThreshold": 0.5,
"pickerStyle": {
"style": "SIMPLEX",
"zoom": 4.0
},
"altitudeStyle": {
"style": "SIMPLEX",
"zoom": 2.3
},
"minHeightAboveSurface": 75,
"maxHeightAboveSurface": 115,
"topShapeMode": "NOISE",
"maxTopHeight": 18,
"topShapeStyle": {
"style": "FRACTAL_WATER",
"zoom": 0.38,
"fracture": {
"style": "SIMPLEX",
"zoom": 0.18,
"multiplier": 4
}
},
"topShapeAmp": 0.7,
"edgeTaperWidth": 15,
"edgeTaperExponent": 1.35,
"edgeTaperVariationStyle": {
"style": "SIMPLEX",
"zoom": 0.2
},
"edgeTaperVariationAmplitude": 4,
"bottomStyle": {
"style": "SIMPLEX_VASCULAR",
"zoom": 0.32,
"fracture": {
"style": "SIMPLEX",
"zoom": 0.14,
"multiplier": 5
}
},
"bottomDepthMin": 6,
"bottomDepthMax": 44,
"bottomExponent": 2.15,
"maxThickness": 72,
"wallWarpStyle": {
"style": "SIMPLEX",
"zoom": 0.26,
"fracture": {
"style": "SIMPLEX",
"zoom": 0.13,
"multiplier": 3
}
},
"wallWarpAmplitude": 5,
"carving": "carving/lush-child",
"carveStyle": {
"style": "SIMPLEX",
"zoom": 0.22,
"fracture": {
"style": "SIMPLEX",
"zoom": 0.14,
"multiplier": 3
}
},
"carveThreshold": 0.86,
"inheritDecorators": true,
"inheritObjects": true,
"objectShrinkFactor": 0.5,
"topObjectMode": "MERGE",
"topObjectOverrides": [
{
"place": [
"clutter/shrub4",
"clutter/shrub5",
"clutter/shrub6",
"clutter/oakshrub1",
"clutter/oakshrub2",
"clutter/oakshrub3"
],
"chance": 0.75,
"mode": "CENTER_HEIGHT",
"density": 8
},
{
"place": [
"trees/oak/antioch7",
"trees/oak/antioch8",
"trees/oak/antioch9",
"trees/oak/antioch10",
"trees/oak/antioch11",
"trees/oak/antioch12"
],
"chance": 0.5,
"mode": "CENTER_STILT",
"density": 5,
"rotation": {
"yAxis": {
"min": 0,
"max": 270,
"interval": 90,
"enabled": true
},
"enabled": true
}
}
],
"bottomObjectMode": "INHERIT_ONLY",
"bottomObjectOverrides": [
{
"place": [
"trees/oak/antioch7",
"trees/oak/antioch8",
"trees/oak/antioch9",
"trees/oak/antioch10",
"clutter/boulder1",
"clutter/boulder2",
"clutter/boulder3"
],
"chance": 0.5,
"mode": "FAST_MIN_HEIGHT",
"density": 6,
"rotation": {
"yAxis": {
"min": 0,
"max": 270,
"interval": 90,
"enabled": true
},
"enabled": true
}
}
]
}
]
}
@@ -0,0 +1,107 @@
{
"name": "Forests",
"color": "#9BEE61",
"rarity": 1,
"landBiomes": [
"tundra/forest",
"tundra/autumn",
"mountain/plains",
"temperate/reaching-forest-violet",
"temperate/flower-forest",
"temperate/birch-tall",
"temperate/osaka-red-forest",
"mountain/mountain",
"temperate/combo-forest",
"tundra/redwood-forest",
"vanilla/old_growth_birch_forest",
"vanilla/old_growth_pine_taiga",
"vanilla/windswept_forest"
],
"caveBiomes": [
"carving/rocky-cavebiome",
"carving/lush",
"carving/mountain-caves",
"carving/moss-pillars"
],
"shoreBiomes": [
"temperate/shore/beach",
"temperate/shore/oak-beach"
],
"seaBiomeZoom": 6,
"seaBiomes": [
"ocean/deep",
"ocean/dark-depth-ocean",
"ocean/rich-oceans"
],
"shoreBiomeZoom": 0.15,
"landBiomeZoom": 3.5,
"shoreHeightMin": 1,
"shoreHeightMax": 5.2,
"shoreHeightZoom": 1.14,
"loot": {
"mode": "FALLBACK",
"multiplier": 0.5,
"tables": [
"temperate/clutter",
"temperate/food"
]
},
"caveProfile": {
"enabled": true,
"verticalRange": {
"min": 6,
"max": 120
},
"baseDensityStyle": {
"style": "PERLIN",
"zoom": 0.55
},
"detailDensityStyle": {
"style": "SIMPLEX",
"zoom": 0.5
},
"warpStyle": {
"style": "SIMPLEX",
"zoom": 0.5
},
"baseWeight": 1,
"detailWeight": 0,
"warpStrength": 0,
"densityThreshold": {
"min": -0.14,
"max": -0.06,
"style": {
"style": "SIMPLEX",
"zoom": 0.5
}
},
"thresholdBias": 0.06,
"sampleStep": 3,
"surfaceClearance": 12,
"allowSurfaceBreak": false,
"surfaceBreakStyle": {
"style": "SIMPLEX",
"zoom": 0.88
},
"surfaceBreakNoiseThreshold": 0.99,
"surfaceBreakDepth": 4,
"surfaceBreakThresholdBoost": 0.02,
"objectMinDepthBelowSurface": 14,
"defaultObjectAnchor": "FLOOR",
"defaultObjectPlaceMode": "ORGANIC_STILT",
"anchorScanStep": 1,
"anchorSearchAttempts": 12,
"allowFluid": true,
"fluidMinDepthBelowSurface": 20,
"fluidRequiresFloor": true,
"allowLava": true,
"modules": []
},
"caveBiomeZoom": 3.3,
"entitySpawners": [
"temperate/cave",
"temperate/hostile",
"temperate/passive",
"temperate/water"
]
}
@@ -0,0 +1,5 @@
{
"enabled": true,
"verticalRange": {"min": 10, "max": 100},
"sampleStep": 2
}