From 14b50729e7ef2114dd840f55bd4c8986b3cefc06 Mon Sep 17 00:00:00 2001 From: piexel Date: Thu, 15 Oct 2026 11:38:55 +0200 Subject: [PATCH] Golden test: the overworld pack's procedural objects bake the same variants and placement options --- .../ProceduralObjectsGoldenTest.java | 221 ++ .../resources/procedural-golden/sets.json | 2765 +++++++++++++++++ .../snippet/palette/frozen/magical-ice.json | 21 + .../palette/magnetics/magical-glass.json | 21 + .../frozen/magical-ice-cave.json | 268 ++ .../frozen/magical-ice-spikes-biome.json | 357 +++ .../frozen/magical-ice-spikes-surface.json | 255 ++ .../frozen/magical-ice-surface.json | 357 +++ .../magnetics/magical-glass-spikes-dense.json | 108 + .../magical-glass-spikes-surface.json | 108 + 10 files changed, 4481 insertions(+) create mode 100644 core/src/test/java/art/arcane/iris/engine/object/procedural/ProceduralObjectsGoldenTest.java create mode 100644 core/src/test/resources/procedural-golden/sets.json create mode 100644 core/src/test/resources/procedural-golden/snippet/palette/frozen/magical-ice.json create mode 100644 core/src/test/resources/procedural-golden/snippet/palette/magnetics/magical-glass.json create mode 100644 core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-cave.json create mode 100644 core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-spikes-biome.json create mode 100644 core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-spikes-surface.json create mode 100644 core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-surface.json create mode 100644 core/src/test/resources/procedural-golden/snippet/procedural-objects/magnetics/magical-glass-spikes-dense.json create mode 100644 core/src/test/resources/procedural-golden/snippet/procedural-objects/magnetics/magical-glass-spikes-surface.json diff --git a/core/src/test/java/art/arcane/iris/engine/object/procedural/ProceduralObjectsGoldenTest.java b/core/src/test/java/art/arcane/iris/engine/object/procedural/ProceduralObjectsGoldenTest.java new file mode 100644 index 000000000..1e5910b21 --- /dev/null +++ b/core/src/test/java/art/arcane/iris/engine/object/procedural/ProceduralObjectsGoldenTest.java @@ -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 . + */ + +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 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 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 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 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 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); + } + } + } + } +} diff --git a/core/src/test/resources/procedural-golden/sets.json b/core/src/test/resources/procedural-golden/sets.json new file mode 100644 index 000000000..f1cabd796 --- /dev/null +++ b/core/src/test/resources/procedural-golden/sets.json @@ -0,0 +1,2765 @@ +{ + "biomes-carving-frost-shards": "snippet/procedural-objects/frozen/magical-ice-cave", + "biomes-estranged-baobab-grove": { + "trees": [ + { + "canopy": { + "branches": { + "azimuthMode": "RANDOM", + "clusterDensity": 0.88, + "clusterMode": "DENSITY", + "clusterRadius": 3, + "elevation": 8, + "lengthBase": 3, + "lengthCrown": 8, + "lengthFunction": "LINEAR", + "probabilityExponent": 3, + "probabilityFunction": "TOP_HEAVY", + "sag": 0.2, + "subBranches": { + "clusterDensity": 0.85, + "clusterMode": "DENSITY", + "clusterRadius": 2, + "count": 2, + "lengthScale": 0.5, + "pitchDelta": 12, + "sag": 0.2, + "yawDelta": 60 + } + }, + "leafDensity": 0.9, + "mode": "DENSITY", + "squish": 0.5, + "startAngle": 112 + }, + "chance": 0.22, + "density": 1, + "heightMax": 24, + "heightMin": 16, + "leaves": "minecraft:acacia_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:acacia_leaves", + "weight": 6 + }, + { + "block": "minecraft:oak_leaves", + "weight": 3 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.35 + }, + "zoom": 4 + }, + "name": "baobab-giant", + "profile": "DARK_OAK_FLAT_WIDE", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 7001, + "shapeEnd": 0.4, + "shapeStart": 1.3, + "trunk": "minecraft:acacia_wood", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:acacia_wood", + "weight": 6 + }, + { + "block": "minecraft:oak_wood", + "weight": 3 + }, + { + "block": "minecraft:jungle_wood", + "weight": 2 + } + ], + "style": { + "style": "STATIC" + }, + "zoom": 2 + }, + "trunkShape": "LINEAR", + "trunkWidth": 4, + "variants": 6 + }, + { + "canopy": { + "branches": { + "azimuthMode": "RANDOM", + "clusterDensity": 0.85, + "clusterMode": "DENSITY", + "clusterRadius": 2, + "elevation": 6, + "lengthBase": 2, + "lengthCrown": 5, + "lengthFunction": "LINEAR", + "probabilityExponent": 2.5, + "probabilityFunction": "TOP_HEAVY", + "sag": 0.2 + }, + "leafDensity": 0.9, + "mode": "DENSITY", + "squish": 0.5, + "startAngle": 108 + }, + "chance": 0.18, + "density": 1, + "heightMax": 14, + "heightMin": 10, + "leaves": "minecraft:acacia_leaves", + "name": "baobab-young", + "profile": "DARK_OAK_FLAT_WIDE", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 7002, + "shapeEnd": 0.5, + "shapeStart": 1.2, + "trunk": "minecraft:acacia_wood", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:acacia_wood", + "weight": 5 + }, + { + "block": "minecraft:oak_wood", + "weight": 2 + } + ], + "style": { + "style": "STATIC" + } + }, + "trunkShape": "LINEAR", + "trunkWidth": 2, + "variants": 5 + } + ] + }, + "biomes-estranged-birchglass-heath": { + "trees": [ + { + "azimuthScale": 1.3, + "canopy": { + "branches": { + "azimuthMode": "GOLDEN_ANGLE", + "branchDepth": 2, + "clusterDensity": 0.6, + "clusterMode": "CLUMPED", + "clusterRadius": 2, + "elevation": 18, + "lengthBase": 2, + "lengthCrown": 5, + "lengthFunction": "LINEAR", + "probabilityExponent": 1.5, + "probabilityFunction": "TOP_HEAVY", + "sag": 0.25, + "subBranches": { + "clusterDensity": 0.55, + "clusterMode": "NOISE", + "clusterRadius": 2, + "count": 2, + "lengthScale": 0.6, + "pitchDelta": 12, + "sag": 0.3, + "yawDelta": 80 + } + }, + "crownStretchX": 1.25, + "crownStretchZ": 0.85, + "leafDensity": 0.62, + "mode": "CLUMPED" + }, + "chance": 0.55, + "density": 2, + "heightMax": 26, + "heightMin": 16, + "leanAngle": 7, + "leanAzimuthMode": "NOISE", + "leaves": "minecraft:birch_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:pale_oak_leaves", + "weight": 1 + } + ], + "style": { + "style": "STATIC", + "zoom": 0.25 + } + }, + "name": "birchglass", + "profile": "OAK", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 45, + "max": 360, + "min": 0 + } + }, + "seed": 8101, + "trunk": "minecraft:birch_wood", + "trunkCurve": "LINEAR", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:birch_wood", + "weight": 4 + }, + { + "block": "minecraft:stripped_birch_wood", + "weight": 3 + }, + { + "block": "minecraft:pale_oak_wood", + "weight": 2 + } + ], + "style": { + "style": "SIMPLEX", + "zoom": 0.6 + }, + "zoom": 2 + }, + "trunkWidth": 1, + "variants": 8 + }, + { + "azimuthScale": 1.6, + "canopy": { + "branches": { + "azimuthMode": "GOLDEN_ANGLE", + "branchDepth": 2, + "clusterDensity": 0.55, + "clusterMode": "CLUMPED", + "clusterRadius": 2, + "elevation": 14, + "lengthBase": 2, + "lengthCrown": 4, + "lengthFunction": "LINEAR", + "probabilityExponent": 1.4, + "probabilityFunction": "TOP_HEAVY", + "sag": 0.3 + }, + "crownStretchX": 0.85, + "crownStretchZ": 1.3, + "leafDensity": 0.55, + "mode": "NOISE" + }, + "chance": 0.3, + "density": 2, + "heightMax": 18, + "heightMin": 12, + "leanAngle": 9, + "leanAzimuthMode": "NOISE", + "leaves": "minecraft:pale_oak_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:pale_oak_leaves", + "weight": 1 + } + ], + "style": { + "style": "STATIC", + "zoom": 0.25 + } + }, + "name": "birchglass-wide", + "profile": "OAK", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 45, + "max": 360, + "min": 0 + } + }, + "seed": 8102, + "trunk": "minecraft:pale_oak_wood", + "trunkCurve": "LINEAR", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:pale_oak_wood", + "weight": 4 + }, + { + "block": "minecraft:birch_wood", + "weight": 3 + }, + { + "block": "minecraft:stripped_birch_wood", + "weight": 2 + } + ], + "style": { + "style": "SIMPLEX", + "zoom": 0.6 + } + }, + "trunkWidth": 1, + "variants": 6 + } + ] + }, + "biomes-estranged-bloomspire-orchard": { + "trees": [ + { + "canopy": { + "branches": { + "azimuthMode": "GOLDEN_ANGLE", + "clusterDensity": 0.85, + "clusterMode": "DENSITY", + "clusterRadius": 2, + "elevation": 10, + "lengthBase": 2, + "lengthCrown": 4, + "lengthFunction": "LINEAR", + "probabilityExponent": 2, + "probabilityFunction": "TOP_HEAVY", + "sag": 0.2 + }, + "crownStretchX": 1.2, + "crownStretchZ": 1.2, + "leafDensity": 0.88, + "mode": "DENSITY" + }, + "chance": 0.6, + "decorators": [ + { + "block": "minecraft:pink_petals", + "chance": 0.12, + "target": "GROUND_SCATTER" + }, + { + "block": "minecraft:cherry_leaves", + "chance": 0.04, + "target": "LEAF_SURFACE" + } + ], + "density": 2, + "heightMax": 16, + "heightMin": 10, + "leaves": "minecraft:cherry_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:cherry_leaves", + "weight": 5 + }, + { + "block": "minecraft:flowering_azalea_leaves", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "name": "bloomspire", + "profile": "CHERRY", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 8501, + "shapeEnd": 0.8, + "shapeStart": 1.0, + "trunk": "minecraft:cherry_wood", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:cherry_wood", + "weight": 5 + }, + { + "block": "minecraft:oak_wood", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.4 + }, + "zoom": 2 + }, + "trunkShape": "BELL", + "trunkWidth": 1, + "variants": 6 + } + ] + }, + "biomes-estranged-bonsai": { + "trees": [ + { + "canopy": { + "leafDensity": 0.95, + "mode": "TRIMMED", + "squish": 0.3, + "startAngle": 100 + }, + "chance": 0.45, + "density": 2, + "forkAngle": 38, + "forkHeight": 0.4, + "heightMax": 10, + "heightMin": 6, + "leanAngle": 16, + "leanAzimuth": 0, + "leanAzimuthMode": "CONSTANT", + "leaves": "minecraft:azalea_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:azalea_leaves", + "weight": 5 + }, + { + "block": "minecraft:oak_leaves", + "weight": 3 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "name": "bonsai-green", + "profile": "DARK_OAK_FLAT", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 45, + "max": 360, + "min": 0 + } + }, + "seed": 8801, + "shapeEnd": 0.8, + "shapeStart": 1.1, + "trunk": "minecraft:oak_wood", + "trunkCurve": "EXPONENTIAL", + "trunkForks": 3, + "trunkPalette": { + "palette": [ + { + "block": "minecraft:oak_wood", + "weight": 4 + }, + { + "block": "minecraft:stripped_oak_wood", + "weight": 3 + }, + { + "block": "minecraft:spruce_wood", + "weight": 2 + } + ], + "style": { + "style": "SIMPLEX", + "zoom": 0.5 + }, + "zoom": 1.5 + }, + "trunkShape": "BELL", + "trunkWidth": 2, + "variants": 8 + }, + { + "canopy": { + "crownStretchX": 1.15, + "crownStretchZ": 1.15, + "leafDensity": 0.95, + "mode": "TRIMMED", + "squish": 0.3, + "startAngle": 100 + }, + "chance": 0.35, + "decorators": [ + { + "block": "minecraft:pink_petals", + "chance": 0.1, + "target": "GROUND_SCATTER" + } + ], + "density": 2, + "forkAngle": 32, + "forkHeight": 0.45, + "heightMax": 9, + "heightMin": 6, + "leanAngle": 18, + "leanAzimuth": 0, + "leanAzimuthMode": "CONSTANT", + "leaves": "minecraft:cherry_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:cherry_leaves", + "weight": 5 + }, + { + "block": "minecraft:flowering_azalea_leaves", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "name": "bonsai-blossom", + "profile": "DARK_OAK_FLAT", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 45, + "max": 360, + "min": 0 + } + }, + "seed": 8802, + "shapeEnd": 0.8, + "shapeStart": 1.1, + "trunk": "minecraft:cherry_wood", + "trunkCurve": "EXPONENTIAL", + "trunkForks": 2, + "trunkPalette": { + "palette": [ + { + "block": "minecraft:cherry_wood", + "weight": 4 + }, + { + "block": "minecraft:stripped_oak_wood", + "weight": 2 + } + ], + "style": { + "style": "SIMPLEX", + "zoom": 0.5 + } + }, + "trunkShape": "BELL", + "trunkWidth": 2, + "variants": 6 + } + ] + }, + "biomes-estranged-candlewood-grove": { + "trees": [ + { + "canopy": { + "branches": { + "azimuthMode": "GOLDEN_ANGLE", + "branchDepth": 2, + "clusterDensity": 0.9, + "clusterMode": "FILLED", + "clusterRadius": 2, + "elevation": 25, + "lengthBase": 2, + "lengthCrown": 4, + "lengthFunction": "LINEAR", + "probabilityExponent": 2, + "probabilityFunction": "TOP_HEAVY", + "subBranches": { + "clusterMode": "FILLED", + "clusterRadius": 1, + "count": 2, + "lengthScale": 0.6, + "pitchDelta": 15, + "yawDelta": 60 + } + }, + "leafDensity": 0.9, + "mode": "FILLED" + }, + "chance": 0.5, + "density": 1, + "forkAngle": 22, + "forkHeight": 0.4, + "heightMax": 19, + "heightMin": 13, + "leaves": "minecraft:azalea_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:azalea_leaves", + "weight": 5 + }, + { + "block": "minecraft:oak_leaves", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "name": "candlewood", + "profile": "OAK", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 8601, + "trunk": "minecraft:acacia_wood", + "trunkForks": 3, + "trunkPalette": { + "palette": [ + { + "block": "minecraft:acacia_wood", + "weight": 4 + }, + { + "block": "minecraft:oak_wood", + "weight": 3 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.4 + }, + "zoom": 2 + }, + "trunkWidth": 2, + "variants": 6 + } + ] + }, + "biomes-estranged-emberbark-woods": { + "trees": [ + { + "canopy": { + "branches": { + "azimuthMode": "RANDOM", + "branchDepth": 2, + "clusterDensity": 0.82, + "clusterMode": "DENSITY", + "clusterRadius": 2, + "elevation": 0, + "lengthBase": 2, + "lengthCrown": 5, + "lengthFunction": "LINEAR", + "probabilityExponent": 2, + "probabilityFunction": "TOP_HEAVY", + "sag": 0.3, + "subBranches": { + "clusterMode": "TRIMMED", + "clusterRadius": 1, + "count": 2, + "lengthScale": 0.5, + "pitchDelta": -8, + "yawDelta": 55 + } + }, + "leafDensity": 0.85, + "mode": "DENSITY" + }, + "chance": 0.75, + "decorators": [ + { + "block": "minecraft:vine", + "chance": 0.12, + "target": "TRUNK_SURFACE" + } + ], + "density": 2, + "heightMax": 15, + "heightMin": 9, + "leaves": "minecraft:oak_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:oak_leaves", + "weight": 6 + }, + { + "block": "minecraft:jungle_leaves", + "weight": 3 + }, + { + "block": "minecraft:flowering_azalea_leaves", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + }, + "zoom": 3.5 + }, + "name": "emberbark", + "profile": "OAK", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 7301, + "shapeAmplitude": 0.25, + "shapePeriod": 0.5, + "trunk": "minecraft:oak_wood", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:oak_wood", + "weight": 5 + }, + { + "block": "minecraft:dark_oak_wood", + "weight": 3 + }, + { + "block": "minecraft:spruce_wood", + "weight": 2 + }, + { + "block": "minecraft:mangrove_wood", + "weight": 2 + } + ], + "style": { + "style": "STATIC" + }, + "zoom": 1.5 + }, + "trunkShape": "SINE", + "trunkWidth": 1, + "variants": 8 + }, + { + "canopy": { + "branches": { + "azimuthMode": "RANDOM", + "clusterDensity": 0.8, + "clusterMode": "DENSITY", + "clusterRadius": 3, + "lengthBase": 3, + "lengthCrown": 6, + "lengthFunction": "LINEAR", + "probabilityExponent": 1.8, + "probabilityFunction": "TOP_HEAVY", + "sag": 0.25 + }, + "leafDensity": 0.82, + "mode": "DENSITY" + }, + "chance": 0.35, + "density": 1, + "heightMax": 19, + "heightMin": 15, + "leaves": "minecraft:jungle_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:jungle_leaves", + "weight": 6 + }, + { + "block": "minecraft:oak_leaves", + "weight": 3 + }, + { + "block": "minecraft:flowering_azalea_leaves", + "weight": 1 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "name": "emberbark-tall", + "profile": "OAK", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 7302, + "shapeBase": 2.2, + "trunk": "minecraft:dark_oak_wood", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:dark_oak_wood", + "weight": 5 + }, + { + "block": "minecraft:spruce_wood", + "weight": 3 + }, + { + "block": "minecraft:oak_wood", + "weight": 2 + } + ], + "style": { + "style": "STATIC" + } + }, + "trunkShape": "LOG", + "trunkWidth": 2, + "variants": 6 + } + ] + }, + "biomes-estranged-mistveil-swamp": { + "trees": [ + { + "azimuthWhorlCount": 5, + "canopy": { + "branches": { + "azimuthMode": "WHORL", + "clusterDensity": 0.6, + "clusterMode": "SPARSE", + "clusterRadius": 2, + "elevation": -14, + "lengthBase": 2, + "lengthCrown": 6, + "lengthFunction": "LINEAR", + "probabilityConstant": 0.95, + "probabilityFunction": "PERIODIC", + "probabilityPeriods": 6, + "sag": 0.4 + }, + "leafDensity": 0.8, + "mode": "TATTERED" + }, + "chance": 0.5, + "decorators": [ + { + "block": "minecraft:vine", + "chance": 0.4, + "length": 4, + "target": "CANOPY_HANG" + }, + { + "block": "minecraft:vine", + "chance": 0.2, + "target": "TRUNK_SURFACE" + } + ], + "density": 2, + "heightMax": 30, + "heightMin": 20, + "leaves": "minecraft:spruce_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:spruce_leaves", + "weight": 6 + }, + { + "block": "minecraft:dark_oak_leaves", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "name": "mistveil-spire", + "profile": "MEGA_SPRUCE", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 7601, + "trunk": "minecraft:spruce_wood", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:spruce_wood", + "weight": 5 + }, + { + "block": "minecraft:dark_oak_wood", + "weight": 3 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.4 + }, + "zoom": 2 + }, + "trunkWidth": 2, + "variants": 6 + }, + { + "canopy": { + "branches": { + "azimuthMode": "ALTERNATING", + "clusterDensity": 0.55, + "clusterMode": "SPARSE", + "clusterRadius": 1, + "elevation": -10, + "lengthBase": 1, + "lengthCrown": 4, + "lengthFunction": "LINEAR", + "probabilityConstant": 0.9, + "probabilityFunction": "PERIODIC", + "probabilityPeriods": 5, + "sag": 0.35 + }, + "leafDensity": 0.7, + "mode": "SPARSE" + }, + "chance": 0.4, + "density": 2, + "heightMax": 20, + "heightMin": 14, + "leaves": "minecraft:spruce_leaves", + "name": "mistveil-young", + "profile": "SPRUCE", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 7602, + "trunk": "minecraft:spruce_wood", + "trunkWidth": 1, + "variants": 5 + } + ] + }, + "biomes-estranged-pallid-necropolis": { + "formations": [ + { + "baseWidthMax": 5, + "baseWidthMin": 2, + "block": "minecraft:calcite", + "blockPalette": { + "palette": [ + { + "block": "minecraft:calcite", + "weight": 5 + }, + { + "block": "minecraft:diorite", + "weight": 3 + }, + { + "block": "minecraft:bone_block", + "weight": 1 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.4 + } + }, + "chance": 0.08, + "density": 2, + "form": "SPIRE", + "heightMax": 19, + "heightMin": 8, + "jitter": 0.7, + "mode": "PAINT", + "name": "ossuary-spire", + "profile": "TAPER", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 45, + "max": 360, + "min": 0 + } + }, + "roughness": 0.65, + "seed": 9411, + "topWidth": 1, + "variants": 7 + } + ], + "ruins": [ + { + "block": "minecraft:calcite", + "blockPalette": { + "palette": [ + { + "block": "minecraft:calcite", + "weight": 5 + }, + { + "block": "minecraft:polished_diorite", + "weight": 2 + }, + { + "block": "minecraft:bone_block", + "weight": 1 + } + ], + "style": { + "style": "STATIC" + } + }, + "buriedFraction": 0.24, + "chance": 0.1, + "density": 2, + "erosion": 0.32, + "erosionScale": 0.5, + "form": "PILLAR", + "heightMax": 5, + "heightMin": 2, + "lengthMax": 2, + "lengthMin": 1, + "mode": "MIN_HEIGHT", + "mossiness": 0.35, + "name": "pallid-marker", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 9421, + "variants": 8, + "weatheringPalette": { + "palette": [ + { + "block": "minecraft:tuff", + "weight": 2 + }, + { + "block": "minecraft:pale_moss_block", + "weight": 1 + } + ], + "style": { + "style": "STATIC" + } + }, + "weatheringScale": 0.4, + "widthMax": 2, + "widthMin": 1 + } + ], + "trees": [ + { + "azimuthScale": 1.2, + "canopy": { + "branches": { + "azimuthMode": "GOLDEN_ANGLE", + "branchDepth": 2, + "clusterDensity": 0.82, + "clusterMode": "DENSITY", + "clusterRadius": 3, + "elevation": -20, + "lengthBase": 3, + "lengthCrown": 7, + "lengthFunction": "LINEAR", + "probabilityExponent": 1.5, + "probabilityFunction": "TOP_HEAVY", + "sag": 0.55, + "subBranches": { + "clusterDensity": 0.84, + "clusterMode": "DENSITY", + "clusterRadius": 2, + "count": 1, + "lengthScale": 0.6, + "pitchDelta": -10, + "sag": 0.5, + "yawDelta": 41 + } + }, + "crownStretchX": 1.25, + "crownStretchZ": 1.1, + "leafDensity": 0.8, + "mode": "DENSITY", + "squish": 0.48, + "startAngle": 55 + }, + "chance": 0.24, + "density": 1, + "forkAngle": 32, + "forkHeight": 0.48, + "heightMax": 31, + "heightMin": 18, + "leanAngle": 18, + "leanAzimuthMode": "NOISE", + "leaves": "minecraft:pale_oak_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:pale_oak_leaves" + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "name": "pallid-willow", + "profile": "WILLOW", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 45, + "max": 360, + "min": 0 + } + }, + "seed": 9401, + "shapeAmplitude": 0.35, + "shapePeriod": 0.12, + "trunk": "minecraft:pale_oak_wood", + "trunkCurve": "SIGMOID", + "trunkForks": 2, + "trunkPalette": { + "palette": [ + { + "block": "minecraft:pale_oak_wood", + "weight": 6 + }, + { + "block": "minecraft:stripped_pale_oak_wood", + "weight": 3 + }, + { + "block": "minecraft:bone_block", + "weight": 1 + } + ], + "style": { + "style": "SIMPLEX", + "zoom": 0.45 + } + }, + "trunkShape": "SINE", + "trunkWidth": 2, + "variants": 10 + }, + { + "azimuthScale": 1.4, + "azimuthWhorlCount": 5, + "canopy": { + "branches": { + "azimuthMode": "WHORL", + "clusterDensity": 0.82, + "clusterMode": "CLUMPED", + "clusterRadius": 2, + "elevation": 12, + "lengthBase": 2, + "lengthCrown": 4, + "lengthFunction": "LINEAR", + "probabilityConstant": 0.82, + "probabilityFunction": "PERIODIC", + "probabilityPeriods": 3, + "sag": 0.12 + }, + "crownStretchX": 0.65, + "crownStretchZ": 0.65, + "leafDensity": 0.72, + "mode": "CLUMPED" + }, + "chance": 0.14, + "density": 1, + "forkAngle": 28, + "forkHeight": 0.62, + "heightMax": 24, + "heightMin": 14, + "leanAngle": 12, + "leanAzimuthMode": "NOISE", + "leaves": "minecraft:pale_oak_leaves", + "name": "pallid-spindle", + "profile": "COLUMNAR", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 45, + "max": 360, + "min": 0 + } + }, + "seed": 9402, + "shapeAmplitude": 0.3, + "shapePeriod": 0.11, + "trunk": "minecraft:pale_oak_wood", + "trunkCurve": "SIGMOID", + "trunkForks": 2, + "trunkPalette": { + "palette": [ + { + "block": "minecraft:pale_oak_wood", + "weight": 5 + }, + { + "block": "minecraft:bone_block", + "weight": 1 + } + ], + "style": { + "style": "STATIC" + } + }, + "trunkShape": "SINE", + "trunkWidth": 2, + "variants": 8 + } + ] + }, + "biomes-estranged-skyreach-pines": { + "trees": [ + { + "azimuthWhorlCount": 5, + "canopy": { + "branches": { + "azimuthMode": "WHORL", + "clusterDensity": 0.8, + "clusterMode": "DENSITY", + "clusterRadius": 2, + "elevation": -6, + "lengthBase": 2, + "lengthCrown": 6, + "lengthFunction": "LINEAR", + "probabilityConstant": 0.95, + "probabilityFunction": "PERIODIC", + "probabilityPeriods": 8, + "sag": 0.25 + }, + "leafDensity": 0.85, + "mode": "DENSITY" + }, + "chance": 0.6, + "decorators": [ + { + "block": "minecraft:snow", + "chance": 0.4, + "target": "CANOPY_TOP" + } + ], + "density": 2, + "heightMax": 34, + "heightMin": 22, + "leaves": "minecraft:spruce_leaves", + "name": "skyreach-pine", + "profile": "MEGA_SPRUCE", + "rootStyle": "TAPROOT", + "roots": true, + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 8401, + "trunk": "minecraft:spruce_wood", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:spruce_wood", + "weight": 6 + }, + { + "block": "minecraft:dark_oak_wood", + "weight": 1 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.4 + }, + "zoom": 2 + }, + "trunkWidth": 2, + "variants": 6 + } + ] + }, + "biomes-estranged-slinky-spires": { + "trees": [ + { + "canopy": { + "branches": { + "azimuthMode": "GOLDEN_ANGLE", + "clusterDensity": 0.92, + "clusterMode": "DENSITY", + "clusterRadius": 5, + "elevation": -16, + "lengthBase": 4, + "lengthCrown": 5, + "lengthFunction": "LINEAR", + "probabilityFunction": "GAUSSIAN", + "probabilityMean": 0.95, + "probabilityStd": 0.08, + "sag": 0.4 + }, + "leafDensity": 0.95, + "mode": "DENSITY" + }, + "chance": 0.28, + "curveSteepness": 4, + "density": 1, + "heightMax": 48, + "heightMin": 32, + "leanAngle": 26, + "leanAzimuth": 0, + "leanAzimuthMode": "CONSTANT", + "leaves": "minecraft:cherry_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:cherry_leaves", + "weight": 5 + }, + { + "block": "minecraft:flowering_azalea_leaves", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.4 + }, + "zoom": 3 + }, + "name": "lollipop-pink", + "profile": "COLUMNAR", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 45, + "max": 360, + "min": 0 + } + }, + "seed": 8701, + "trunk": "minecraft:birch_wood", + "trunkCurve": "EXPONENTIAL", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:birch_wood", + "weight": 5 + }, + { + "block": "minecraft:stripped_birch_wood", + "weight": 3 + }, + { + "block": "minecraft:cherry_wood", + "weight": 2 + } + ], + "style": { + "style": "SIMPLEX", + "zoom": 0.7 + }, + "zoom": 1.5 + }, + "trunkWidth": 2, + "variants": 6 + }, + { + "canopy": { + "branches": { + "azimuthMode": "GOLDEN_ANGLE", + "clusterDensity": 0.92, + "clusterMode": "DENSITY", + "clusterRadius": 5, + "elevation": -14, + "lengthBase": 4, + "lengthCrown": 5, + "lengthFunction": "LINEAR", + "probabilityFunction": "GAUSSIAN", + "probabilityMean": 0.95, + "probabilityStd": 0.08, + "sag": 0.4 + }, + "leafDensity": 0.95, + "mode": "DENSITY" + }, + "chance": 0.22, + "curveSteepness": 4, + "density": 1, + "heightMax": 44, + "heightMin": 30, + "leanAngle": 24, + "leanAzimuth": 0, + "leanAzimuthMode": "CONSTANT", + "leaves": "minecraft:azalea_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:azalea_leaves", + "weight": 5 + }, + { + "block": "minecraft:jungle_leaves", + "weight": 3 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.4 + }, + "zoom": 3 + }, + "name": "lollipop-teal", + "profile": "COLUMNAR", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 45, + "max": 360, + "min": 0 + } + }, + "seed": 8702, + "trunk": "minecraft:birch_wood", + "trunkCurve": "EXPONENTIAL", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:stripped_birch_wood", + "weight": 5 + }, + { + "block": "minecraft:birch_wood", + "weight": 3 + }, + { + "block": "minecraft:stripped_oak_wood", + "weight": 2 + } + ], + "style": { + "style": "SIMPLEX", + "zoom": 0.7 + }, + "zoom": 1.5 + }, + "trunkWidth": 2, + "variants": 6 + } + ] + }, + "biomes-estranged-snarlwood-thicket": { + "trees": [ + { + "azimuthScale": 2.0, + "canopy": { + "branches": { + "azimuthMode": "ZIGZAG", + "branchDepth": 2, + "clusterDensity": 0.7, + "clusterMode": "TATTERED", + "clusterRadius": 2, + "elevation": -10, + "lengthBase": 2, + "lengthCrown": 4, + "lengthFunction": "LINEAR", + "probabilityExponent": 1.6, + "probabilityFunction": "TOP_HEAVY", + "sag": 0.5, + "subBranches": { + "clusterMode": "TATTERED", + "clusterRadius": 1, + "count": 2, + "lengthScale": 0.6, + "pitchDelta": -12, + "sag": 0.4, + "yawDelta": 70 + } + }, + "crownStretchX": 1.4, + "crownStretchZ": 0.8, + "leafDensity": 0.8, + "mode": "TATTERED" + }, + "chance": 0.8, + "decorators": [ + { + "block": "minecraft:vine", + "chance": 0.3, + "target": "TRUNK_SURFACE" + }, + { + "block": "minecraft:vine", + "chance": 0.4, + "length": 4, + "target": "CANOPY_HANG" + } + ], + "density": 2, + "heightMax": 13, + "heightMin": 8, + "leanAngle": 22, + "leanAzimuthMode": "NOISE", + "leaves": "minecraft:dark_oak_leaves", + "name": "snarlwood", + "profile": "OAK", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 8201, + "shapeAmplitude": 0.3, + "shapePeriod": 0.4, + "trunk": "minecraft:dark_oak_wood", + "trunkCurve": "SIGMOID", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:dark_oak_wood", + "weight": 5 + }, + { + "block": "minecraft:spruce_wood", + "weight": 2 + }, + { + "block": "minecraft:oak_wood", + "weight": 1 + } + ], + "style": { + "style": "STATIC" + } + }, + "trunkShape": "SINE", + "trunkWidth": 1, + "variants": 8 + } + ] + }, + "biomes-estranged-spindlewood": { + "trees": [ + { + "canopy": { + "branches": { + "azimuthMode": "GOLDEN_ANGLE", + "branchDepth": 3, + "clusterDensity": 0.75, + "clusterMode": "CLUMPED", + "clusterRadius": 2, + "elevation": 15, + "lengthBase": 2, + "lengthCrown": 4, + "lengthFunction": "LINEAR", + "probabilityBase": 0.2, + "probabilityCrown": 0.9, + "probabilityFunction": "LINEAR", + "sag": 0.15, + "subBranches": { + "clusterMode": "CLUMPED", + "clusterRadius": 1, + "count": 2, + "lengthScale": 0.55, + "pitchDelta": 20, + "yawDelta": 80 + } + }, + "leafDensity": 0.7, + "mode": "CLUMPED" + }, + "chance": 0.6, + "density": 2, + "heightMax": 13, + "heightMin": 8, + "leaves": "minecraft:birch_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:birch_leaves", + "weight": 5 + }, + { + "block": "minecraft:azalea_leaves", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "name": "spindle-golden", + "profile": "BUSH", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 7501, + "trunk": "minecraft:birch_wood", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:birch_wood", + "weight": 5 + }, + { + "block": "minecraft:oak_wood", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.4 + }, + "zoom": 2 + }, + "trunkWidth": 1, + "variants": 8 + }, + { + "azimuthWhorlCount": 5, + "canopy": { + "branches": { + "azimuthMode": "WHORL", + "clusterDensity": 0.78, + "clusterMode": "DENSITY", + "clusterRadius": 2, + "elevation": 8, + "lengthBase": 2, + "lengthCrown": 4, + "lengthFunction": "LINEAR", + "probabilityConstant": 0.9, + "probabilityFunction": "PERIODIC", + "probabilityPeriods": 4, + "sag": 0.1 + }, + "leafDensity": 0.78, + "mode": "DENSITY" + }, + "chance": 0.4, + "density": 2, + "heightMax": 16, + "heightMin": 11, + "leaves": "minecraft:birch_leaves", + "name": "spindle-whorl", + "profile": "COLUMNAR", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 7502, + "trunk": "minecraft:oak_wood", + "trunkWidth": 1, + "variants": 6 + } + ] + }, + "biomes-estranged-stiltroot-shallows": { + "trees": [ + { + "canopy": { + "branches": { + "azimuthMode": "RANDOM", + "clusterDensity": 0.8, + "clusterMode": "DENSITY", + "clusterRadius": 2, + "elevation": -14, + "lengthBase": 3, + "lengthCrown": 6, + "lengthFunction": "LINEAR", + "probabilityExponent": 1.8, + "probabilityFunction": "TOP_HEAVY", + "sag": 0.4 + }, + "leafDensity": 0.82, + "mode": "DENSITY", + "squish": 0.7, + "startAngle": 70 + }, + "chance": 0.55, + "decorators": [ + { + "block": "minecraft:vine", + "chance": 0.4, + "length": 4, + "target": "CANOPY_HANG" + } + ], + "density": 2, + "heightMax": 18, + "heightMin": 12, + "leaves": "minecraft:mangrove_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:mangrove_leaves", + "weight": 5 + }, + { + "block": "minecraft:oak_leaves", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "name": "stiltroot", + "profile": "WILLOW", + "rootFlare": 6, + "rootStyle": "STILT", + "roots": true, + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 8301, + "trunk": "minecraft:mangrove_wood", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:mangrove_wood", + "weight": 5 + }, + { + "block": "minecraft:oak_wood", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.4 + }, + "zoom": 2 + }, + "trunkWidth": 2, + "variants": 6 + } + ] + }, + "biomes-estranged-taxodium": { + "trees": [ + { + "canopy": { + "branches": { + "azimuthMode": "GOLDEN_ANGLE", + "branchDepth": 4, + "clusterDensity": 0.2, + "clusterMode": "SPARSE", + "clusterRadius": 1, + "elevation": 32, + "lengthBase": 2, + "lengthCrown": 5, + "lengthFunction": "LINEAR", + "probabilityBase": 0.5, + "probabilityCrown": 0.95, + "probabilityFunction": "LINEAR", + "subBranches": { + "clusterDensity": 0.15, + "clusterMode": "SPARSE", + "clusterRadius": 1, + "count": 2, + "lengthScale": 0.62, + "pitchDelta": 6, + "yawDelta": 65 + } + }, + "leafDensity": 0.15, + "mode": "SPARSE" + }, + "chance": 0.4, + "density": 1, + "heightMax": 34, + "heightMin": 20, + "leaves": "minecraft:stripped_spruce_wood", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:stripped_spruce_wood", + "weight": 3 + }, + { + "block": "minecraft:stripped_birch_wood", + "weight": 3 + }, + { + "block": "minecraft:stripped_oak_wood", + "weight": 2 + }, + { + "block": "minecraft:cherry_wood", + "weight": 2 + }, + { + "block": "minecraft:mangrove_wood", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.35 + }, + "zoom": 2 + }, + "name": "taxodium", + "profile": "OAK", + "rootFlare": 4, + "rootStyle": "STILT", + "roots": true, + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 45, + "max": 360, + "min": 0 + } + }, + "seed": 8901, + "shapeEnd": 0.6, + "shapeStart": 1.1, + "trunk": "minecraft:spruce_wood", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:spruce_wood", + "weight": 4 + }, + { + "block": "minecraft:stripped_spruce_wood", + "weight": 3 + }, + { + "block": "minecraft:dark_oak_wood", + "weight": 2 + }, + { + "block": "minecraft:mangrove_wood", + "weight": 2 + }, + { + "block": "minecraft:stripped_oak_wood", + "weight": 2 + } + ], + "style": { + "style": "SIMPLEX", + "zoom": 0.7 + }, + "zoom": 1.5 + }, + "trunkShape": "LINEAR", + "trunkWidth": 1, + "variants": 8 + } + ] + }, + "biomes-estranged-weeping-mire": { + "trees": [ + { + "canopy": { + "branches": { + "azimuthMode": "RANDOM", + "branchDepth": 2, + "clusterDensity": 0.8, + "clusterMode": "DENSITY", + "clusterRadius": 2, + "elevation": -22, + "lengthBase": 4, + "lengthCrown": 7, + "lengthFunction": "LINEAR", + "probabilityFunction": "GAUSSIAN", + "probabilityMean": 0.8, + "probabilityStd": 0.2, + "sag": 0.6, + "subBranches": { + "clusterDensity": 0.8, + "clusterMode": "DENSITY", + "clusterRadius": 2, + "count": 1, + "lengthScale": 0.7, + "pitchDelta": -12, + "sag": 0.6, + "yawDelta": 25 + } + }, + "leafDensity": 0.82, + "mode": "DENSITY", + "squish": 0.5, + "startAngle": 55 + }, + "chance": 0.55, + "decorators": [ + { + "block": "minecraft:vine", + "chance": 0.5, + "length": 5, + "target": "CANOPY_HANG" + }, + { + "block": "minecraft:vine", + "chance": 0.25, + "target": "TRUNK_SURFACE" + } + ], + "density": 2, + "heightMax": 17, + "heightMin": 11, + "leaves": "minecraft:oak_leaves", + "leavesPalette": { + "palette": [ + { + "block": "minecraft:oak_leaves", + "weight": 5 + }, + { + "block": "minecraft:jungle_leaves", + "weight": 3 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + }, + "zoom": 4 + }, + "name": "weeping-willow", + "profile": "WILLOW", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 7201, + "trunk": "minecraft:mangrove_wood", + "trunkPalette": { + "palette": [ + { + "block": "minecraft:mangrove_wood", + "weight": 5 + }, + { + "block": "minecraft:oak_wood", + "weight": 3 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.4 + }, + "zoom": 2 + }, + "trunkWidth": 2, + "variants": 6 + } + ] + }, + "biomes-frozen-fields-hilly-plains": "snippet/procedural-objects/frozen/magical-ice-surface", + "biomes-frozen-ice-spikes": "snippet/procedural-objects/frozen/magical-ice-spikes-biome", + "biomes-frozen-sea-frozen-parent-river": "snippet/procedural-objects/frozen/magical-ice-spikes-surface", + "biomes-magnetics-glass": "snippet/procedural-objects/magnetics/magical-glass-spikes-surface", + "biomes-magnetics-glass-shard": "snippet/procedural-objects/magnetics/magical-glass-spikes-dense", + "biomes-ocean-warm": { + "coral": [ + { + "block": "minecraft:fire_coral_block", + "blockPalette": { + "palette": [ + { + "block": "minecraft:fire_coral_block", + "weight": 3 + }, + { + "block": "minecraft:tube_coral_block", + "weight": 2 + }, + { + "block": "minecraft:bubble_coral_block", + "weight": 2 + }, + { + "block": "minecraft:horn_coral_block", + "weight": 2 + }, + { + "block": "minecraft:brain_coral_block", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "branchAzimuth": "GOLDEN_ANGLE", + "branchCount": 6, + "branchElevation": 40, + "branchLength": 4, + "chance": 0.7, + "density": 4, + "form": "BRANCHING", + "heightMax": 8, + "heightMin": 4, + "name": "reef-branch", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 9411, + "spread": 1.1, + "subBranchCount": 2, + "subBranchScale": 0.6, + "subBranches": true, + "sway": 0.45, + "tipBlock": "minecraft:sea_pickle", + "tipChance": 0.5, + "tipClusterRadius": 1, + "underwater": true, + "variants": 8, + "waterlogged": true + }, + { + "block": "minecraft:brain_coral_block", + "blockPalette": { + "palette": [ + { + "block": "minecraft:brain_coral_block", + "weight": 3 + }, + { + "block": "minecraft:bubble_coral_block", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.35 + } + }, + "brainRadius": 4, + "brainRoughness": 0.4, + "chance": 0.45, + "density": 3, + "form": "BRAIN", + "name": "reef-brain", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 9412, + "underwater": true, + "variants": 5, + "waterlogged": true + }, + { + "block": "minecraft:horn_coral_block", + "blockPalette": { + "palette": [ + { + "block": "minecraft:horn_coral_block", + "weight": 3 + }, + { + "block": "minecraft:fire_coral_block", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "chance": 0.4, + "density": 3, + "fanWidth": 5, + "form": "FAN", + "heightMax": 6, + "heightMin": 3, + "name": "reef-fan", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 9413, + "sway": 0.3, + "underwater": true, + "variants": 5, + "waterlogged": true + } + ] + }, + "biomes-temperate-sea-ocean": { + "coral": [ + { + "block": "minecraft:tube_coral_block", + "blockPalette": { + "palette": [ + { + "block": "minecraft:tube_coral_block", + "weight": 3 + }, + { + "block": "minecraft:brain_coral_block", + "weight": 2 + }, + { + "block": "minecraft:bubble_coral_block", + "weight": 2 + }, + { + "block": "minecraft:horn_coral_block", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "branchAzimuth": "GOLDEN_ANGLE", + "branchCount": 5, + "branchElevation": 35, + "branchLength": 3, + "chance": 0.5, + "density": 3, + "form": "BRANCHING", + "heightMax": 6, + "heightMin": 3, + "name": "branch-coral", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 9401, + "spread": 1.0, + "subBranchCount": 2, + "subBranchScale": 0.6, + "subBranches": true, + "sway": 0.4, + "tipBlock": "minecraft:sea_pickle", + "tipChance": 0.4, + "tipClusterRadius": 1, + "underwater": true, + "variants": 6, + "waterlogged": true + }, + { + "block": "minecraft:brain_coral_block", + "blockPalette": { + "palette": [ + { + "block": "minecraft:brain_coral_block", + "weight": 3 + }, + { + "block": "minecraft:bubble_coral_block", + "weight": 1 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.35 + } + }, + "brainRadius": 3, + "brainRoughness": 0.4, + "chance": 0.35, + "density": 2, + "form": "BRAIN", + "name": "brain-coral", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 9402, + "underwater": true, + "variants": 5, + "waterlogged": true + } + ] + }, + "regions-estranged": { + "crystals": [ + { + "baseBlock": "minecraft:budding_amethyst", + "baseNoise": 0.4, + "baseRadius": 2.5, + "block": "minecraft:amethyst_block", + "blockPalette": { + "palette": [ + { + "block": "minecraft:amethyst_block", + "weight": 5 + }, + { + "block": "minecraft:calcite", + "weight": 2 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "carvingSupport": "CARVING_ONLY", + "chance": 0.03, + "density": 2, + "distribution": "GOLDEN_ANGLE", + "growthSurface": "FLOOR", + "jitter": 0.3, + "mode": "PAINT", + "name": "amethyst-cluster", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 9201, + "shardBaseRadius": 1.5, + "shardCountMax": 9, + "shardCountMin": 5, + "shardLengthMax": 6, + "shardLengthMin": 3, + "shardTaper": 0.8, + "spreadAngle": 55, + "tipBlock": "minecraft:amethyst_cluster", + "tipChance": 0.6, + "variants": 6 + }, + { + "baseBlock": "minecraft:calcite", + "baseNoise": 0.3, + "baseRadius": 2, + "block": "minecraft:quartz_block", + "blockPalette": { + "palette": [ + { + "block": "minecraft:quartz_block", + "weight": 4 + }, + { + "block": "minecraft:tinted_glass", + "weight": 2 + }, + { + "block": "minecraft:packed_ice", + "weight": 1 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.3 + } + }, + "carvingSupport": "CARVING_ONLY", + "chance": 0.2, + "density": 1, + "distribution": "RANDOM", + "glow": true, + "glowBlock": "minecraft:glowstone", + "growthSurface": "FLOOR", + "jitter": 0.35, + "mode": "PAINT", + "name": "frostspar", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 9202, + "shardBaseRadius": 1.5, + "shardCountMax": 7, + "shardCountMin": 4, + "shardLengthMax": 8, + "shardLengthMin": 4, + "shardTaper": 0.85, + "spreadAngle": 40, + "variants": 5 + } + ], + "formations": [ + { + "baseWidthMax": 5, + "baseWidthMin": 3, + "block": "minecraft:stone", + "blockPalette": { + "palette": [ + { + "block": "minecraft:stone", + "weight": 4 + }, + { + "block": "minecraft:andesite", + "weight": 2 + }, + { + "block": "minecraft:tuff", + "weight": 2 + }, + { + "block": "minecraft:deepslate", + "weight": 1 + } + ], + "style": { + "style": "SIMPLEX", + "zoom": 0.6 + }, + "zoom": 2 + }, + "chance": 0.04, + "density": 1, + "form": "SPIRE", + "heightMax": 26, + "heightMin": 14, + "jitter": 0.3, + "mode": "PAINT", + "name": "obelisk-spire", + "profile": "TAPER", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "roughness": 0.35, + "seed": 9001, + "strataPalette": { + "palette": [ + { + "block": "minecraft:calcite" + }, + { + "block": "minecraft:tuff" + } + ], + "style": { + "style": "STATIC" + } + }, + "strataThickness": 2, + "topWidth": 1, + "variants": 4 + }, + { + "baseWidthMax": 6, + "baseWidthMin": 3, + "block": "minecraft:mossy_cobblestone", + "blockPalette": { + "palette": [ + { + "block": "minecraft:stone", + "weight": 3 + }, + { + "block": "minecraft:mossy_cobblestone", + "weight": 2 + }, + { + "block": "minecraft:andesite", + "weight": 2 + }, + { + "block": "minecraft:cobblestone", + "weight": 1 + } + ], + "style": { + "style": "CELLULAR", + "zoom": 0.4 + } + }, + "chance": 0.1, + "density": 2, + "form": "BOULDER", + "heightMax": 6, + "heightMin": 3, + "jitter": 0.4, + "mode": "PAINT", + "name": "boulder", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "roughness": 0.4, + "seed": 9003, + "translate": { + "y": -3 + }, + "variants": 6 + } + ], + "ruins": [ + { + "accents": [ + { + "block": "minecraft:vine", + "chance": 0.3, + "scatterRadius": 1, + "target": "TOP" + } + ], + "block": "minecraft:stone_bricks", + "blockPalette": { + "palette": [ + { + "block": "minecraft:stone_bricks", + "weight": 4 + }, + { + "block": "minecraft:cracked_stone_bricks", + "weight": 2 + }, + { + "block": "minecraft:cobblestone", + "weight": 1 + } + ], + "style": { + "style": "STATIC" + } + }, + "buriedFraction": 0.2, + "chance": 0.06, + "density": 1, + "erosion": 0.3, + "erosionScale": 0.6, + "form": "PILLAR", + "heightMax": 11, + "heightMin": 5, + "lengthMax": 2, + "lengthMin": 1, + "mode": "MIN_HEIGHT", + "mossiness": 0.4, + "name": "ruined-pillar", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 9101, + "variants": 5, + "weatheringPalette": { + "palette": [ + { + "block": "minecraft:mossy_stone_bricks" + }, + { + "block": "minecraft:mossy_cobblestone" + } + ], + "style": { + "style": "STATIC" + } + }, + "weatheringScale": 0.5, + "widthMax": 2, + "widthMin": 1 + }, + { + "block": "minecraft:cobblestone", + "blockPalette": { + "palette": [ + { + "block": "minecraft:cobblestone", + "weight": 4 + }, + { + "block": "minecraft:stone_bricks", + "weight": 2 + }, + { + "block": "minecraft:mossy_cobblestone", + "weight": 2 + } + ], + "style": { + "style": "STATIC" + } + }, + "buriedFraction": 0.25, + "chance": 0.035, + "density": 1, + "erosion": 0.4, + "form": "WALL", + "heightMax": 6, + "heightMin": 3, + "lengthMax": 1, + "lengthMin": 1, + "mode": "MIN_HEIGHT", + "mossiness": 0.5, + "name": "ruined-wall", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 9102, + "variants": 5, + "weatheringPalette": { + "palette": [ + { + "block": "minecraft:mossy_cobblestone" + }, + { + "block": "minecraft:mossy_stone_bricks" + } + ], + "style": { + "style": "STATIC" + } + }, + "widthMax": 8, + "widthMin": 4 + } + ] + }, + "regions-mushroom": { + "fungi": [ + { + "cap": "minecraft:red_mushroom_block", + "capDroop": 18, + "capOverhang": 2, + "capRadiusMax": 5, + "capRadiusMin": 3, + "capShape": "DOME", + "capSquish": 0.7, + "capThickness": 2, + "chance": 0.05, + "density": 2, + "gillBlock": "minecraft:mushroom_stem", + "gillChance": 0.7, + "name": "red-cap", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 9301, + "stem": "minecraft:mushroom_stem", + "stemCurve": 6, + "stemHeightMax": 9, + "stemHeightMin": 4, + "stemWaveAmplitude": 0.4, + "stemWavePeriods": 1.5, + "stemWidth": 2, + "variants": 6 + }, + { + "cap": "minecraft:brown_mushroom_block", + "capDroop": 8, + "capOverhang": 3, + "capRadiusMax": 7, + "capRadiusMin": 4, + "capShape": "FLAT_WIDE", + "capSquish": 0.35, + "capThickness": 1, + "chance": 0.05, + "density": 2, + "gillBlock": "minecraft:shroomlight", + "gillChance": 0.5, + "name": "brown-table", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 9302, + "stem": "minecraft:mushroom_stem", + "stemCurve": 4, + "stemHeightMax": 11, + "stemHeightMin": 5, + "stemWidth": 2, + "variants": 6 + }, + { + "cap": "minecraft:red_mushroom_block", + "capDroop": 22, + "capOverhang": 1, + "capRadiusMax": 4, + "capRadiusMin": 2, + "capShape": "CONICAL", + "capSquish": 0.9, + "capThickness": 2, + "chance": 0.35, + "density": 3, + "gillBlock": "minecraft:shroomlight", + "gillChance": 0.6, + "name": "spindle-toadstool", + "rotation": { + "enabled": true, + "yAxis": { + "enabled": true, + "interval": 90, + "max": 360, + "min": 0 + } + }, + "seed": 9303, + "spotBlock": "minecraft:brown_mushroom_block", + "spotChance": 0.25, + "stem": "minecraft:mushroom_stem", + "stemCurve": 10, + "stemHeightMax": 12, + "stemHeightMin": 6, + "stemPalette": { + "palette": [ + { + "block": "minecraft:mushroom_stem", + "weight": 5 + }, + { + "block": "minecraft:pale_oak_wood", + "weight": 1 + } + ], + "style": { + "style": "SIMPLEX", + "zoom": 0.6 + } + }, + "stemWaveAmplitude": 0.6, + "stemWavePeriods": 2, + "stemWidth": 1, + "variants": 6 + } + ] + } +} \ No newline at end of file diff --git a/core/src/test/resources/procedural-golden/snippet/palette/frozen/magical-ice.json b/core/src/test/resources/procedural-golden/snippet/palette/frozen/magical-ice.json new file mode 100644 index 000000000..a23a78132 --- /dev/null +++ b/core/src/test/resources/procedural-golden/snippet/palette/frozen/magical-ice.json @@ -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 + } + ] +} diff --git a/core/src/test/resources/procedural-golden/snippet/palette/magnetics/magical-glass.json b/core/src/test/resources/procedural-golden/snippet/palette/magnetics/magical-glass.json new file mode 100644 index 000000000..ed49f7f43 --- /dev/null +++ b/core/src/test/resources/procedural-golden/snippet/palette/magnetics/magical-glass.json @@ -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 + } + ] +} diff --git a/core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-cave.json b/core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-cave.json new file mode 100644 index 000000000..3ea944e71 --- /dev/null +++ b/core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-cave.json @@ -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 + } + ] +} diff --git a/core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-spikes-biome.json b/core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-spikes-biome.json new file mode 100644 index 000000000..cb2a08f24 --- /dev/null +++ b/core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-spikes-biome.json @@ -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 + } + ] +} diff --git a/core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-spikes-surface.json b/core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-spikes-surface.json new file mode 100644 index 000000000..c35350eab --- /dev/null +++ b/core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-spikes-surface.json @@ -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 + } + ] +} diff --git a/core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-surface.json b/core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-surface.json new file mode 100644 index 000000000..310f43208 --- /dev/null +++ b/core/src/test/resources/procedural-golden/snippet/procedural-objects/frozen/magical-ice-surface.json @@ -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 + } + ] +} diff --git a/core/src/test/resources/procedural-golden/snippet/procedural-objects/magnetics/magical-glass-spikes-dense.json b/core/src/test/resources/procedural-golden/snippet/procedural-objects/magnetics/magical-glass-spikes-dense.json new file mode 100644 index 000000000..5cb7c05d0 --- /dev/null +++ b/core/src/test/resources/procedural-golden/snippet/procedural-objects/magnetics/magical-glass-spikes-dense.json @@ -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 + } + ] +} diff --git a/core/src/test/resources/procedural-golden/snippet/procedural-objects/magnetics/magical-glass-spikes-surface.json b/core/src/test/resources/procedural-golden/snippet/procedural-objects/magnetics/magical-glass-spikes-surface.json new file mode 100644 index 000000000..b9b946f2e --- /dev/null +++ b/core/src/test/resources/procedural-golden/snippet/procedural-objects/magnetics/magical-glass-spikes-surface.json @@ -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 + } + ] +}