Golden test: the overworld pack's procedural objects bake the same variants and placement options

This commit is contained in:
piexel committed 2026-10-15 11:38:55 +02:00
1 parent 4209468b4c
commit 14b50729e7
10 files changed
+4481

No files matched your search

@@ -0,0 +1,221 @@
/*
* Iris is a World Generator for Minecraft Servers
* Copyright (c) 2026 Arcane Arts (Volmit Software)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package art.arcane.iris.engine.object.procedural;
import art.arcane.iris.builtin.objects.ProceduralObjectSettings;
import art.arcane.iris.core.loader.IrisData;
import art.arcane.iris.core.modules.IrisPackResources;
import art.arcane.iris.core.modules.PlatformBlockStates;
import art.arcane.iris.engine.UsableBlockPlatform;
import art.arcane.iris.engine.object.prefab.IrisObject;
import art.arcane.iris.util.common.data.B;
import com.volmit.block.BlockFace;
import com.volmit.block.BlockRegistry;
import com.volmit.block.BlockSpec;
import com.volmit.block.BlockState;
import com.volmit.block.BlockTrait;
import com.volmit.block.PaletteSampler;
import com.volmit.block.PaletteSpec;
import com.volmit.object.BlockEntityData;
import com.volmit.resource.ResourceId;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardCopyOption;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.HexFormat;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.TreeMap;
import java.util.stream.Stream;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.CALLS_REAL_METHODS;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.withSettings;
import static org.mockito.Mockito.when;
/**
* Every procedural object of the overworld pack (its biomes' and regions' {@code proceduralObjects}, with the pack's
* snippets) bakes the same variants it did before the generators moved onto IrisApi block states: same load keys,
* sizes, blocks in the same order, and the same placement options.
*/
public class ProceduralObjectsGoldenTest {
private static final String FIXTURE = "/procedural-golden";
private static final Map<String, String> EXPECTED = Map.ofEntries(
Map.entry("biomes-carving-frost-shards", "954613b558bd0e8b"),
Map.entry("biomes-estranged-baobab-grove", "3232037f828a9107"),
Map.entry("biomes-estranged-birchglass-heath", "a55859aa6a343b2a"),
Map.entry("biomes-estranged-bloomspire-orchard", "4f293781cb8a3096"),
Map.entry("biomes-estranged-bonsai", "a5f3bfca48d9765e"),
Map.entry("biomes-estranged-candlewood-grove", "54edc65fd907b0f0"),
Map.entry("biomes-estranged-emberbark-woods", "aef11a05b3736872"),
Map.entry("biomes-estranged-mistveil-swamp", "13465ade8e5ffb63"),
Map.entry("biomes-estranged-pallid-necropolis", "d084420689990166"),
Map.entry("biomes-estranged-skyreach-pines", "0ae4e50672f7b69c"),
Map.entry("biomes-estranged-slinky-spires", "5e206ec07f334985"),
Map.entry("biomes-estranged-snarlwood-thicket", "08121289e05d4828"),
Map.entry("biomes-estranged-spindlewood", "e5e8b64cfb12fd28"),
Map.entry("biomes-estranged-stiltroot-shallows", "eb83972fb116f254"),
Map.entry("biomes-estranged-taxodium", "48a648d2f4f2715e"),
Map.entry("biomes-estranged-weeping-mire", "d6ac39f8c2ffde66"),
Map.entry("biomes-frozen-fields-hilly-plains", "170d6ed6174f8e40"),
Map.entry("biomes-frozen-ice-spikes", "7ac324754cb82ff1"),
Map.entry("biomes-frozen-sea-frozen-parent-river", "1d9f74d9713e1a4d"),
Map.entry("biomes-magnetics-glass", "3f30c7fa5aa07410"),
Map.entry("biomes-magnetics-glass-shard", "5e9834cd11338a4a"),
Map.entry("biomes-ocean-warm", "606e256ae6242124"),
Map.entry("biomes-temperate-sea-ocean", "ebd0960ae22f4fc6"),
Map.entry("regions-estranged", "a806532a68e8c232"),
Map.entry("regions-mushroom", "f08c6663543ac201"));
@Rule
public TemporaryFolder folder = new TemporaryFolder();
@Before
public void bindPlatform() {
UsableBlockPlatform.bind();
}
@After
public void unbindPlatform() {
UsableBlockPlatform.unbind();
}
@Test
public void everyProceduralObjectOfTheOverworldPackBakesAsBefore() throws Exception {
copyFixtureInto(folder.getRoot().toPath());
IrisData data = mock(IrisData.class, withSettings().stubOnly().defaultAnswer(CALLS_REAL_METHODS));
IrisPackResources resources = mock(IrisPackResources.class, withSettings().stubOnly());
doReturn(folder.getRoot()).when(data).getDataFolder();
doReturn(resources).when(data).getPackResources();
when(resources.blocks()).thenReturn(new HashedPalettes());
Gson gson = new GsonBuilder().registerTypeAdapterFactory(data).create();
JsonObject sets = JsonParser.parseString(Files.readString(folder.getRoot().toPath().resolve("sets.json"))).getAsJsonObject();
Map<String, String> actual = new TreeMap<>();
for (String name : sets.keySet()) {
ProceduralObjectSettings settings = gson.fromJson(sets.get(name), ProceduralObjectSettings.class);
actual.put(name, bake(settings, data));
}
assertEquals(new TreeMap<>(EXPECTED), actual);
}
private static String bake(ProceduralObjectSettings settings, IrisData data) throws NoSuchAlgorithmException {
Gson plain = new Gson();
MessageDigest digest = MessageDigest.getInstance("SHA-256");
for (IrisProceduralPlacement placement : new ResolvedProceduralObjects(settings).getAllPlacements()) {
update(digest, placement.getName() + '|' + placement.getChance() + '|' + placement.getDensity() + '|'
+ placement.isPlausible() + '|' + plain.toJson(placement.asPlacement()) + '\n');
for (IrisObject object : ((ResolvedProceduralPlacement) placement).bake(data)) {
update(digest, object.getLoadKey() + ' ' + object.getW() + 'x' + object.getH() + 'x' + object.getD() + ':');
object.getBlocks().forEach((position, state) -> update(digest, position.getBlockX() + "," + position.getBlockY()
+ "," + position.getBlockZ() + "=" + state.key() + ";"));
update(digest, "\n");
}
}
return HexFormat.of().formatHex(digest.digest(), 0, 8);
}
private static void update(MessageDigest digest, String text) {
digest.update(text.getBytes(StandardCharsets.UTF_8));
}
/**
* Blocks as the host resolves them, and palettes that pick a block from a hash of their seed and the position, so a
* generator asking with another seed or position gives another digest. Iris's real palette noise needs a platform the
* test does not have; it is the host's, unchanged by the port.
*/
private static final class HashedPalettes implements BlockRegistry {
@Override
public BlockState resolve(String key) {
return BlockState.parse(PlatformBlockStates.namespaced(B.getState(key).key()));
}
@Override
public BlockState resolve(BlockSpec spec) {
return resolve(spec.block());
}
@Override
public PaletteSampler palette(PaletteSpec spec, long seed) {
List<BlockSpec> blocks = spec.palette();
return (x, y, z) -> {
long hash = seed * 31 + Double.hashCode(x) * 961L + Double.hashCode(y) * 29791L + Double.hashCode(z);
return resolve(blocks.get(Math.floorMod(Long.hashCode(hash), blocks.size())));
};
}
@Override
public Optional<BlockEntityData> blockEntity(BlockSpec spec) {
throw new UnsupportedOperationException();
}
@Override
public boolean hasTrait(BlockState state, BlockTrait trait) {
throw new UnsupportedOperationException();
}
@Override
public boolean inTag(BlockState state, ResourceId tag) {
throw new UnsupportedOperationException();
}
@Override
public boolean canAttach(BlockState state, BlockState support, BlockFace face) {
throw new UnsupportedOperationException();
}
@Override
public boolean canPlaceOn(BlockState state, BlockState below) {
throw new UnsupportedOperationException();
}
}
private static void copyFixtureInto(Path target) throws IOException, URISyntaxException {
Path source = Path.of(ProceduralObjectsGoldenTest.class.getResource(FIXTURE).toURI());
try (Stream<Path> files = Files.walk(source)) {
for (Path file : files.filter(Files::isRegularFile).toList()) {
Path copy = target.resolve(source.relativize(file).toString());
Files.createDirectories(copy.getParent());
try (InputStream in = Files.newInputStream(file)) {
Files.copy(in, copy, StandardCopyOption.REPLACE_EXISTING);
}
}
}
}
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,21 @@
{
"style": {
"style": "CELLULAR",
"zoom": 0.55
},
"zoom": 2.5,
"palette": [
{
"block": "minecraft:packed_ice",
"weight": 5
},
{
"block": "minecraft:ice",
"weight": 2
},
{
"block": "minecraft:blue_ice",
"weight": 2
}
]
}
@@ -0,0 +1,21 @@
{
"style": {
"style": "CELLULAR",
"zoom": 0.55
},
"zoom": 2.5,
"palette": [
{
"block": "minecraft:light_blue_stained_glass",
"weight": 5
},
{
"block": "minecraft:glass",
"weight": 2
},
{
"block": "minecraft:tinted_glass",
"weight": 2
}
]
}
@@ -0,0 +1,268 @@
{
"formations": [
{
"name": "glacial-cave-iceberg",
"chance": 0.045,
"density": 1,
"variants": 12,
"seed": 5055101,
"mode": "CENTER_HEIGHT",
"carvingSupport": "CARVING_ONLY",
"surfaceSupportBuffer": 0,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "ICEBERG",
"translate": {
"y": -1
},
"heightMin": 5,
"heightMax": 10,
"baseWidthMin": 2,
"baseWidthMax": 3,
"icebergPeaks": 3,
"roughness": 0.3,
"jitter": 0.08
},
{
"name": "glacial-cave-fissure",
"chance": 0.04,
"density": 1,
"variants": 12,
"seed": 5055102,
"mode": "CENTER_HEIGHT",
"carvingSupport": "CARVING_ONLY",
"surfaceSupportBuffer": 0,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "FISSURE",
"translate": {
"y": -1
},
"heightMin": 8,
"heightMax": 16,
"baseWidthMin": 1,
"baseWidthMax": 2,
"fractureCount": 3,
"fractureSeparation": 2,
"roughness": 0.2,
"jitter": 0.04
},
{
"name": "glacial-cave-spiral",
"chance": 0.035,
"density": 1,
"variants": 12,
"seed": 5055103,
"mode": "CEILING_HANG",
"carvingSupport": "CARVING_ONLY",
"surfaceSupportBuffer": 0,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "SPIRAL",
"heightMin": 8,
"heightMax": 16,
"baseWidthMin": 1,
"baseWidthMax": 2,
"spiralTurns": 1.3,
"spiralRadius": 3,
"spiralThickness": 1,
"roughness": 0.14,
"jitter": 0.02
},
{
"name": "glacial-cave-overhang",
"chance": 0.03,
"density": 1,
"variants": 12,
"seed": 5055104,
"mode": "CEILING_HANG",
"carvingSupport": "CARVING_ONLY",
"surfaceSupportBuffer": 0,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "OVERHANG",
"heightMin": 8,
"heightMax": 16,
"baseWidthMin": 1,
"baseWidthMax": 2,
"overhangReach": 7,
"overhangDrop": 3,
"roughness": 0.18,
"jitter": 0.03
},
{
"name": "glacial-cave-arch",
"chance": 0.03,
"density": 1,
"variants": 12,
"seed": 5055105,
"mode": "CENTER_HEIGHT",
"carvingSupport": "CARVING_ONLY",
"surfaceSupportBuffer": 0,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "ARCH",
"translate": {
"y": -1
},
"heightMin": 7,
"heightMax": 13,
"baseWidthMin": 1,
"baseWidthMax": 2,
"archSpan": 6,
"archThickness": 2,
"archAsymmetry": 0.8,
"roughness": 0.18,
"jitter": 0.03
},
{
"name": "glacial-cave-needle",
"chance": 0.24,
"density": 4,
"variants": 16,
"seed": 5055121,
"mode": "CENTER_HEIGHT",
"carvingSupport": "CARVING_ONLY",
"surfaceSupportBuffer": 0,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "SPIRE",
"translate": {
"y": -1
},
"heightMin": 9,
"heightMax": 18,
"baseWidthMin": 1,
"baseWidthMax": 2,
"topWidth": 0,
"profile": "LINEAR",
"roughness": 0.1,
"jitter": 0.01
},
{
"name": "glacial-cave-shard-fan",
"chance": 0.18,
"density": 4,
"variants": 16,
"seed": 5055122,
"mode": "CENTER_HEIGHT",
"carvingSupport": "CARVING_ONLY",
"surfaceSupportBuffer": 0,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "FISSURE",
"translate": {
"y": -1
},
"heightMin": 8,
"heightMax": 17,
"baseWidthMin": 1,
"baseWidthMax": 2,
"fractureCount": 3,
"fractureSeparation": 2,
"roughness": 0.16,
"jitter": 0.03
},
{
"name": "glacial-cave-hanging-needle",
"chance": 0.16,
"density": 3,
"variants": 16,
"seed": 5055123,
"mode": "CEILING_HANG",
"carvingSupport": "CARVING_ONLY",
"surfaceSupportBuffer": 0,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "SPIRE",
"heightMin": 10,
"heightMax": 20,
"baseWidthMin": 1,
"baseWidthMax": 2,
"topWidth": 0,
"profile": "LINEAR",
"roughness": 0.1,
"jitter": 0.01
}
]
}
@@ -0,0 +1,357 @@
{
"formations": [
{
"name": "glacial-iceberg",
"chance": 0.08,
"density": 1,
"variants": 24,
"seed": 5055001,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "ICEBERG",
"translate": {
"y": -4
},
"heightMin": 12,
"heightMax": 22,
"baseWidthMin": 5,
"baseWidthMax": 8,
"icebergPeaks": 4,
"roughness": 0.42,
"jitter": 0.14
},
{
"name": "glacial-fissure",
"chance": 0.12,
"density": 1,
"variants": 24,
"seed": 5055002,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "FISSURE",
"translate": {
"y": -4
},
"heightMin": 13,
"heightMax": 23,
"baseWidthMin": 6,
"baseWidthMax": 9,
"fractureCount": 3,
"fractureSeparation": 3,
"roughness": 0.3,
"jitter": 0.08
},
{
"name": "glacial-spiral",
"chance": 0.15,
"density": 1,
"variants": 24,
"seed": 5055003,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "SPIRAL",
"translate": {
"y": -4
},
"heightMin": 15,
"heightMax": 24,
"baseWidthMin": 5,
"baseWidthMax": 8,
"spiralTurns": 1.15,
"spiralRadius": 6,
"spiralThickness": 3,
"roughness": 0.24,
"jitter": 0.07
},
{
"name": "glacial-overhang",
"chance": 0.18,
"density": 1,
"variants": 24,
"seed": 5055004,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "OVERHANG",
"translate": {
"y": -4
},
"heightMin": 16,
"heightMax": 25,
"baseWidthMin": 5,
"baseWidthMax": 8,
"overhangReach": 13,
"overhangDrop": 6,
"roughness": 0.3,
"jitter": 0.08
},
{
"name": "glacial-arch",
"chance": 0.07,
"density": 1,
"variants": 24,
"seed": 5055005,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "ARCH",
"translate": {
"y": -4
},
"heightMin": 11,
"heightMax": 20,
"baseWidthMin": 4,
"baseWidthMax": 7,
"archSpan": 12,
"archThickness": 4,
"archAsymmetry": 1.0,
"roughness": 0.28,
"jitter": 0.07
},
{
"name": "glacial-crooked-spire",
"chance": 0.3,
"density": 1,
"variants": 32,
"seed": 5055021,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "SPIRE",
"translate": {
"y": -4
},
"heightMin": 14,
"heightMax": 24,
"baseWidthMin": 5,
"baseWidthMax": 8,
"topWidth": 0,
"profile": "PARABOLIC",
"profileWaist": 0.38,
"profileWaistFloor": 0.72,
"lean": 18,
"leanAzimuth": 18,
"roughness": 0.32,
"jitter": 0.09
},
{
"name": "glacial-drift",
"chance": 0.4,
"density": 2,
"variants": 24,
"seed": 5055041,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "BOULDER",
"translate": {
"y": -1
},
"heightMin": 3,
"heightMax": 5,
"baseWidthMin": 2,
"baseWidthMax": 4,
"roughness": 0.48,
"jitter": 0.12
},
{
"name": "glacial-shard-fan",
"chance": 0.16,
"density": 1,
"variants": 24,
"seed": 5055023,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "FISSURE",
"translate": {
"y": -4
},
"heightMin": 12,
"heightMax": 21,
"baseWidthMin": 6,
"baseWidthMax": 9,
"fractureCount": 3,
"fractureSeparation": 3,
"roughness": 0.28,
"jitter": 0.08
}
],
"crystals": [
{
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"growthSurface": "FLOOR",
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"tipBlock": "minecraft:blue_ice",
"baseBlock": "minecraft:blue_ice",
"tipChance": 0.65,
"name": "glacial-frost-bloom",
"chance": 0.28,
"density": 2,
"variants": 24,
"seed": 5055031,
"translate": {
"y": -1
},
"baseRadius": 1.8,
"baseNoise": 0.4,
"shardCountMin": 3,
"shardCountMax": 6,
"shardLengthMin": 2,
"shardLengthMax": 5,
"shardBaseRadius": 1.1,
"shardTaper": 1.0,
"spreadAngle": 68,
"distribution": "GOLDEN_ANGLE",
"jitter": 0.35
},
{
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"growthSurface": "FLOOR",
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"tipBlock": "minecraft:blue_ice",
"baseBlock": "minecraft:blue_ice",
"tipChance": 0.55,
"name": "glacial-frost-sprigs",
"chance": 0.12,
"density": 2,
"variants": 24,
"seed": 5055032,
"translate": {
"y": -1
},
"baseRadius": 1.2,
"baseNoise": 0.5,
"shardCountMin": 2,
"shardCountMax": 5,
"shardLengthMin": 1,
"shardLengthMax": 3,
"shardBaseRadius": 1.0,
"shardTaper": 1.0,
"spreadAngle": 80,
"distribution": "RANDOM",
"jitter": 0.55
}
]
}
@@ -0,0 +1,255 @@
{
"formations": [
{
"name": "glacial-crooked-spire",
"chance": 0.09,
"density": 1,
"variants": 24,
"seed": 5055021,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "SPIRE",
"translate": {
"y": -4
},
"heightMin": 12,
"heightMax": 22,
"baseWidthMin": 5,
"baseWidthMax": 7,
"topWidth": 0,
"profile": "PARABOLIC",
"profileWaist": 0.4,
"profileWaistFloor": 0.74,
"lean": 18,
"leanAzimuth": 18,
"roughness": 0.32,
"jitter": 0.09
},
{
"name": "glacial-shard-fan",
"chance": 0.08,
"density": 1,
"variants": 24,
"seed": 5055023,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "FISSURE",
"translate": {
"y": -4
},
"heightMin": 11,
"heightMax": 20,
"baseWidthMin": 6,
"baseWidthMax": 8,
"fractureCount": 3,
"fractureSeparation": 3,
"roughness": 0.28,
"jitter": 0.08
},
{
"name": "glacial-spiral",
"chance": 0.06,
"density": 1,
"variants": 24,
"seed": 5055003,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "SPIRAL",
"translate": {
"y": -4
},
"heightMin": 12,
"heightMax": 21,
"baseWidthMin": 4,
"baseWidthMax": 7,
"spiralTurns": 1.1,
"spiralRadius": 5,
"spiralThickness": 3,
"roughness": 0.24,
"jitter": 0.07
},
{
"name": "glacial-overhang",
"chance": 0.07,
"density": 1,
"variants": 24,
"seed": 5055004,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "OVERHANG",
"translate": {
"y": -4
},
"heightMin": 13,
"heightMax": 22,
"baseWidthMin": 5,
"baseWidthMax": 7,
"overhangReach": 11,
"overhangDrop": 5,
"roughness": 0.3,
"jitter": 0.08
},
{
"name": "glacial-drift",
"chance": 0.28,
"density": 2,
"variants": 24,
"seed": 5055041,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "BOULDER",
"translate": {
"y": -1
},
"heightMin": 3,
"heightMax": 5,
"baseWidthMin": 2,
"baseWidthMax": 4,
"roughness": 0.48,
"jitter": 0.12
}
],
"crystals": [
{
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"growthSurface": "FLOOR",
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"tipBlock": "minecraft:blue_ice",
"baseBlock": "minecraft:blue_ice",
"tipChance": 0.65,
"name": "glacial-frost-bloom",
"chance": 0.22,
"density": 2,
"variants": 24,
"seed": 5055031,
"translate": {
"y": -1
},
"baseRadius": 1.8,
"baseNoise": 0.4,
"shardCountMin": 3,
"shardCountMax": 6,
"shardLengthMin": 2,
"shardLengthMax": 5,
"shardBaseRadius": 1.1,
"shardTaper": 1.0,
"spreadAngle": 68,
"distribution": "GOLDEN_ANGLE",
"jitter": 0.35
},
{
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"growthSurface": "FLOOR",
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"tipBlock": "minecraft:blue_ice",
"baseBlock": "minecraft:blue_ice",
"tipChance": 0.55,
"name": "glacial-frost-sprigs",
"chance": 0.1,
"density": 2,
"variants": 24,
"seed": 5055032,
"translate": {
"y": -1
},
"baseRadius": 1.2,
"baseNoise": 0.5,
"shardCountMin": 2,
"shardCountMax": 5,
"shardLengthMin": 1,
"shardLengthMax": 3,
"shardBaseRadius": 1.0,
"shardTaper": 1.0,
"spreadAngle": 80,
"distribution": "RANDOM",
"jitter": 0.55
}
]
}
@@ -0,0 +1,357 @@
{
"formations": [
{
"name": "glacial-iceberg",
"chance": 0.04,
"density": 1,
"variants": 16,
"seed": 5055001,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "ICEBERG",
"translate": {
"y": -4
},
"heightMin": 10,
"heightMax": 19,
"baseWidthMin": 5,
"baseWidthMax": 8,
"icebergPeaks": 4,
"roughness": 0.42,
"jitter": 0.14
},
{
"name": "glacial-fissure",
"chance": 0.045,
"density": 1,
"variants": 16,
"seed": 5055002,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "FISSURE",
"translate": {
"y": -4
},
"heightMin": 11,
"heightMax": 20,
"baseWidthMin": 5,
"baseWidthMax": 8,
"fractureCount": 3,
"fractureSeparation": 3,
"roughness": 0.3,
"jitter": 0.08
},
{
"name": "glacial-spiral",
"chance": 0.055,
"density": 1,
"variants": 16,
"seed": 5055003,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "SPIRAL",
"translate": {
"y": -4
},
"heightMin": 12,
"heightMax": 21,
"baseWidthMin": 4,
"baseWidthMax": 7,
"spiralTurns": 1.1,
"spiralRadius": 5,
"spiralThickness": 3,
"roughness": 0.24,
"jitter": 0.07
},
{
"name": "glacial-overhang",
"chance": 0.06,
"density": 1,
"variants": 16,
"seed": 5055004,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "OVERHANG",
"translate": {
"y": -4
},
"heightMin": 13,
"heightMax": 22,
"baseWidthMin": 5,
"baseWidthMax": 7,
"overhangReach": 11,
"overhangDrop": 5,
"roughness": 0.3,
"jitter": 0.08
},
{
"name": "glacial-arch",
"chance": 0.025,
"density": 1,
"variants": 16,
"seed": 5055005,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "ARCH",
"translate": {
"y": -4
},
"heightMin": 10,
"heightMax": 18,
"baseWidthMin": 4,
"baseWidthMax": 6,
"archSpan": 10,
"archThickness": 4,
"archAsymmetry": 1.0,
"roughness": 0.28,
"jitter": 0.07
},
{
"name": "glacial-crooked-spire",
"chance": 0.09,
"density": 1,
"variants": 24,
"seed": 5055021,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "SPIRE",
"translate": {
"y": -4
},
"heightMin": 12,
"heightMax": 22,
"baseWidthMin": 5,
"baseWidthMax": 7,
"topWidth": 0,
"profile": "PARABOLIC",
"profileWaist": 0.4,
"profileWaistFloor": 0.74,
"lean": 18,
"leanAzimuth": 18,
"roughness": 0.32,
"jitter": 0.09
},
{
"name": "glacial-drift",
"chance": 0.22,
"density": 2,
"variants": 24,
"seed": 5055041,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "BOULDER",
"translate": {
"y": -1
},
"heightMin": 3,
"heightMax": 5,
"baseWidthMin": 2,
"baseWidthMax": 4,
"roughness": 0.48,
"jitter": 0.12
},
{
"name": "glacial-shard-fan",
"chance": 0.06,
"density": 1,
"variants": 24,
"seed": 5055023,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"capBlock": "minecraft:blue_ice",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "FISSURE",
"translate": {
"y": -4
},
"heightMin": 11,
"heightMax": 20,
"baseWidthMin": 6,
"baseWidthMax": 8,
"fractureCount": 3,
"fractureSeparation": 3,
"roughness": 0.28,
"jitter": 0.08
}
],
"crystals": [
{
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"growthSurface": "FLOOR",
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"tipBlock": "minecraft:blue_ice",
"baseBlock": "minecraft:blue_ice",
"tipChance": 0.65,
"name": "glacial-frost-bloom",
"chance": 0.16,
"density": 2,
"variants": 24,
"seed": 5055031,
"translate": {
"y": -1
},
"baseRadius": 1.8,
"baseNoise": 0.4,
"shardCountMin": 3,
"shardCountMax": 6,
"shardLengthMin": 2,
"shardLengthMax": 5,
"shardBaseRadius": 1.1,
"shardTaper": 1.0,
"spreadAngle": 68,
"distribution": "GOLDEN_ANGLE",
"jitter": 0.35
},
{
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"growthSurface": "FLOOR",
"block": "minecraft:packed_ice",
"blockPalette": "snippet/palette/frozen/magical-ice",
"tipBlock": "minecraft:blue_ice",
"baseBlock": "minecraft:blue_ice",
"tipChance": 0.55,
"name": "glacial-frost-sprigs",
"chance": 0.08,
"density": 2,
"variants": 24,
"seed": 5055032,
"translate": {
"y": -1
},
"baseRadius": 1.2,
"baseNoise": 0.5,
"shardCountMin": 2,
"shardCountMax": 5,
"shardLengthMin": 1,
"shardLengthMax": 3,
"shardBaseRadius": 1.0,
"shardTaper": 1.0,
"spreadAngle": 80,
"distribution": "RANDOM",
"jitter": 0.55
}
]
}
@@ -0,0 +1,108 @@
{
"formations": [
{
"name": "glacial-needle",
"chance": 0.42,
"density": 5,
"variants": 24,
"seed": 5055021,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:light_blue_stained_glass",
"blockPalette": "snippet/palette/magnetics/magical-glass",
"capBlock": "minecraft:tinted_glass",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "SPIRE",
"translate": {
"y": -2
},
"heightMin": 26,
"heightMax": 52,
"baseWidthMin": 1,
"baseWidthMax": 2,
"topWidth": 0,
"profile": "LINEAR",
"roughness": 0.12,
"jitter": 0.02
},
{
"name": "glacial-leaning-lance",
"chance": 0.34,
"density": 4,
"variants": 24,
"seed": 5055022,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:light_blue_stained_glass",
"blockPalette": "snippet/palette/magnetics/magical-glass",
"capBlock": "minecraft:tinted_glass",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "SPIRE",
"translate": {
"y": -2
},
"heightMin": 32,
"heightMax": 60,
"baseWidthMin": 1,
"baseWidthMax": 2,
"topWidth": 0,
"profile": "TAPER",
"lean": 10,
"leanAzimuth": 18,
"roughness": 0.14,
"jitter": 0.02
},
{
"name": "glacial-shard-fan",
"chance": 0.28,
"density": 3,
"variants": 24,
"seed": 5055023,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:light_blue_stained_glass",
"blockPalette": "snippet/palette/magnetics/magical-glass",
"capBlock": "minecraft:tinted_glass",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "FISSURE",
"translate": {
"y": -2
},
"heightMin": 26,
"heightMax": 50,
"baseWidthMin": 2,
"baseWidthMax": 3,
"fractureCount": 4,
"fractureSeparation": 3,
"roughness": 0.18,
"jitter": 0.04
}
]
}
@@ -0,0 +1,108 @@
{
"formations": [
{
"name": "glacial-needle",
"chance": 0.24,
"density": 3,
"variants": 16,
"seed": 5055021,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:light_blue_stained_glass",
"blockPalette": "snippet/palette/magnetics/magical-glass",
"capBlock": "minecraft:tinted_glass",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "SPIRE",
"translate": {
"y": -2
},
"heightMin": 20,
"heightMax": 40,
"baseWidthMin": 1,
"baseWidthMax": 2,
"topWidth": 0,
"profile": "LINEAR",
"roughness": 0.12,
"jitter": 0.02
},
{
"name": "glacial-leaning-lance",
"chance": 0.16,
"density": 3,
"variants": 16,
"seed": 5055022,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:light_blue_stained_glass",
"blockPalette": "snippet/palette/magnetics/magical-glass",
"capBlock": "minecraft:tinted_glass",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "SPIRE",
"translate": {
"y": -2
},
"heightMin": 26,
"heightMax": 48,
"baseWidthMin": 1,
"baseWidthMax": 2,
"topWidth": 0,
"profile": "TAPER",
"lean": 10,
"leanAzimuth": 18,
"roughness": 0.14,
"jitter": 0.02
},
{
"name": "glacial-shard-fan",
"chance": 0.13,
"density": 2,
"variants": 16,
"seed": 5055023,
"mode": "CENTER_HEIGHT",
"carvingSupport": "SURFACE_ONLY",
"surfaceSupportBuffer": 1,
"block": "minecraft:light_blue_stained_glass",
"blockPalette": "snippet/palette/magnetics/magical-glass",
"capBlock": "minecraft:tinted_glass",
"rotation": {
"enabled": true,
"yAxis": {
"enabled": true,
"min": 0,
"max": 360,
"interval": 45
}
},
"form": "FISSURE",
"translate": {
"y": -2
},
"heightMin": 20,
"heightMax": 38,
"baseWidthMin": 2,
"baseWidthMax": 3,
"fractureCount": 4,
"fractureSeparation": 3,
"roughness": 0.18,
"jitter": 0.04
}
]
}