From 4f082c3add1f827aee0c0bb69271d5cb3a98841c Mon Sep 17 00:00:00 2001 From: Daniel Mills Date: Wed, 5 Aug 2020 15:03:19 -0400 Subject: [PATCH] tests --- testing/biomes/land-1.json | 43 ++ testing/biomes/land-2.json | 43 ++ testing/biomes/sea.json | 43 ++ testing/biomes/shore.json | 43 ++ testing/dimensions/testing.json | 534 ++++++++++++++++++++++ testing/generators/example-generator.json | 49 ++ testing/regions/example-region.json | 28 ++ testing/testing.code-workspace | 12 + 8 files changed, 795 insertions(+) create mode 100644 testing/biomes/land-1.json create mode 100644 testing/biomes/land-2.json create mode 100644 testing/biomes/sea.json create mode 100644 testing/biomes/shore.json create mode 100644 testing/dimensions/testing.json create mode 100644 testing/generators/example-generator.json create mode 100644 testing/regions/example-region.json create mode 100644 testing/testing.code-workspace diff --git a/testing/biomes/land-1.json b/testing/biomes/land-1.json new file mode 100644 index 00000000..f8f46a56 --- /dev/null +++ b/testing/biomes/land-1.json @@ -0,0 +1,43 @@ +{ + "seaLayers": [], + "biomeSkyScatter": [], + "objects": [], + "biomeZoom": 1, + "structures": [], + "biomeDispersion": "SCATTER", + "derivative": "THE_VOID", + "deposits": [], + "slab": { + "minHeight": 1, + "terrainZoom": 5, + "maxHeight": 1, + "palette": [], + "dispersion": "SCATTER" + }, + "children": [], + "decorators": [], + "name": "Example Land 1", + "layers": [{ + "minHeight": 1, + "terrainZoom": 5, + "maxHeight": 1, + "palette": ["GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GRASS_BLOCK","GLOWSTONE"], + "dispersion": "SCATTER" + }], + "generators": [{ + "min": 3, + "max": 7, + "generator": "example-generator" + }], + "childShrinkFactor": 1.5, + "lockLayers": false, + "biomeScatter": [], + "wall": { + "minHeight": 1, + "terrainZoom": 5, + "maxHeight": 1, + "palette": [], + "dispersion": "SCATTER" + }, + "rarity": 1 +} diff --git a/testing/biomes/land-2.json b/testing/biomes/land-2.json new file mode 100644 index 00000000..53a328b6 --- /dev/null +++ b/testing/biomes/land-2.json @@ -0,0 +1,43 @@ +{ + "seaLayers": [], + "biomeSkyScatter": [], + "objects": [], + "biomeZoom": 1, + "structures": [], + "biomeDispersion": "SCATTER", + "derivative": "THE_VOID", + "deposits": [], + "slab": { + "minHeight": 1, + "terrainZoom": 5, + "maxHeight": 1, + "palette": [], + "dispersion": "SCATTER" + }, + "children": [], + "decorators": [], + "name": "Example Land 2", + "layers": [{ + "minHeight": 1, + "terrainZoom": 5, + "maxHeight": 1, + "palette": ["RED_SAND"], + "dispersion": "SCATTER" + }], + "generators": [{ + "min": 12, + "max": 35, + "generator": "example-generator" + }], + "childShrinkFactor": 1.5, + "lockLayers": false, + "biomeScatter": [], + "wall": { + "minHeight": 1, + "terrainZoom": 5, + "maxHeight": 1, + "palette": [], + "dispersion": "SCATTER" + }, + "rarity": 4 +} diff --git a/testing/biomes/sea.json b/testing/biomes/sea.json new file mode 100644 index 00000000..167eb193 --- /dev/null +++ b/testing/biomes/sea.json @@ -0,0 +1,43 @@ +{ + "seaLayers": [], + "biomeSkyScatter": [], + "objects": [], + "biomeZoom": 1, + "structures": [], + "biomeDispersion": "SCATTER", + "derivative": "THE_VOID", + "deposits": [], + "slab": { + "minHeight": 1, + "terrainZoom": 5, + "maxHeight": 1, + "palette": [], + "dispersion": "SCATTER" + }, + "children": [], + "decorators": [], + "name": "Example Sea", + "layers": [{ + "minHeight": 1, + "terrainZoom": 5, + "maxHeight": 1, + "palette": ["SAND"], + "dispersion": "SCATTER" + }], + "generators": [{ + "min": -5, + "max": -38, + "generator": "example-generator" + }], + "childShrinkFactor": 1.5, + "lockLayers": false, + "biomeScatter": [], + "wall": { + "minHeight": 1, + "terrainZoom": 5, + "maxHeight": 1, + "palette": [], + "dispersion": "SCATTER" + }, + "rarity": 1 +} diff --git a/testing/biomes/shore.json b/testing/biomes/shore.json new file mode 100644 index 00000000..2e0af297 --- /dev/null +++ b/testing/biomes/shore.json @@ -0,0 +1,43 @@ +{ + "seaLayers": [], + "biomeSkyScatter": [], + "objects": [], + "biomeZoom": 1, + "structures": [], + "biomeDispersion": "SCATTER", + "derivative": "THE_VOID", + "deposits": [], + "slab": { + "minHeight": 1, + "terrainZoom": 5, + "maxHeight": 1, + "palette": [], + "dispersion": "SCATTER" + }, + "children": [], + "decorators": [], + "name": "Example Shore", + "layers": [{ + "minHeight": 1, + "terrainZoom": 5, + "maxHeight": 1, + "palette": ["SAND"], + "dispersion": "SCATTER" + }], + "generators": [{ + "min": -1, + "max": 1, + "generator": "example-generator" + }], + "childShrinkFactor": 1.5, + "lockLayers": false, + "biomeScatter": [], + "wall": { + "minHeight": 1, + "terrainZoom": 5, + "maxHeight": 1, + "palette": [], + "dispersion": "SCATTER" + }, + "rarity": 1 +} diff --git a/testing/dimensions/testing.json b/testing/dimensions/testing.json new file mode 100644 index 00000000..c0a41518 --- /dev/null +++ b/testing/dimensions/testing.json @@ -0,0 +1,534 @@ +{ + "decorate": true, + "landZoom": 1.5, + "regions": ["example-region"], + "seaZoom": 1, + "mirrorCeiling": false, + "biomeZoom": 5, + "rockPalette": ["STONE"], + "interpolationScale": 63, + "focus": "", + "carving": true, + "carvingEnvelope": 0.335, + "continentZoom": 1, + "rockZoom": 5, + "carvingSliverThickness": 5.5, + "postProcessing": true, + "roughnessZoom": 2, + "interpolationFunction": "BICUBIC", + "mutations": [], + "terrainZoom": 2, + "coordFractureZoom": 8, + "carvingMin": 115, + "fluidHeight": 63, + "coordFractureDistance": 20, + "carvingMax": 239, + "ceiling": "", + "postProcessors": [ + { + "phase": 0, + "processor": "nib-smoother" + }, + { + "phase": 0, + "processor": "floating-block-remover" + }, + { + "phase": 0, + "processor": "pothole-filler" + }, + { + "phase": 0, + "processor": "wall-painter" + }, + { + "phase": 0, + "processor": "slabber" + }, + { + "phase": 1, + "processor": "waterlogger" + } + ], + "caveThickness": 1, + "fluidPalette": ["WATER"], + "caves": true, + "carvingRippleThickness": 3, + "preventLeafDecay": false, + "caveBiomeZoom": 1, + "placeObjects": true, + "version": 1, + "shoreZoom": 1, + "deposits": [], + "caveShift": 0, + "carvingZoom": 3.5, + "environment": "NORMAL", + "compatability": [ + { + "supplement": "NETHER_BRICKS", + "exact": false, + "when": "CHISELED_NETHER_BRICKS" + }, + { + "supplement": "LEGACY_NETHER_FENCE", + "exact": false, + "when": "NETHER_FENCE" + }, + { + "supplement": "LEGACY_NETHER_FENCE", + "exact": false, + "when": "CHAIN" + }, + { + "supplement": "QUARTZ_BLOCK", + "exact": false, + "when": "NETHERITE_BLOCK" + }, + { + "supplement": "COBBLESTONE", + "exact": false, + "when": "BLACKSTONE" + }, + { + "supplement": "STONE", + "exact": false, + "when": "BASALT" + }, + { + "supplement": "NETHERRACK", + "exact": false, + "when": "ANCIENT_DEBRIS" + }, + { + "supplement": "LEGACY_NETHERRACK", + "exact": false, + "when": "NETHERRACK" + }, + { + "supplement": "OAK_LEAVES", + "exact": false, + "when": "HONEY_BLOCK" + }, + { + "supplement": "OAK_LEAVES", + "exact": false, + "when": "BEEHIVE" + }, + { + "supplement": "OAK_LEAVES", + "exact": false, + "when": "BEE_NEST" + }, + { + "supplement": "COBBLESTONE_WALL", + "exact": false, + "when": "GRANITE_WALL" + }, + { + "supplement": "COBBLESTONE_WALL", + "exact": false, + "when": "DIORITE_WALL" + }, + { + "supplement": "COBBLESTONE_WALL", + "exact": false, + "when": "ANDESITE_WALL" + }, + { + "supplement": "GRASS", + "exact": false, + "when": "SWEET_BERRY_BUSH" + }, + { + "supplement": "CRAFTING_TABLE", + "exact": false, + "when": "STONECUTTER" + }, + { + "supplement": "LEGACY_SANDSTONE_STAIRS", + "exact": false, + "when": "SANDSTONE_STAIRS" + }, + { + "supplement": "LEGACY_SANDSTONE_STAIRS", + "exact": false, + "when": "SMOOTH_SANDSTONE_STAIRS" + }, + { + "supplement": "COBBLESTONE_STAIRS", + "exact": false, + "when": "MOSSY_COBBLESTONE_STAIRS" + }, + { + "supplement": "STONE_BRICK_STAIRS", + "exact": false, + "when": "MOSSY_STONE_BRICK_STAIRS" + }, + { + "supplement": "COBBLESTONE_STAIRS", + "exact": false, + "when": "POLISHED_GRANITE_STAIRS" + }, + { + "supplement": "COBBLESTONE_STAIRS", + "exact": false, + "when": "GRANITE_STAIRS" + }, + { + "supplement": "COBBLESTONE_STAIRS", + "exact": false, + "when": "POLISHED_DIORITE_STAIRS" + }, + { + "supplement": "COBBLESTONE_STAIRS", + "exact": false, + "when": "DIORITE_STAIRS" + }, + { + "supplement": "COBBLESTONE_STAIRS", + "exact": false, + "when": "POLISHED_ANDESITE_STAIRS" + }, + { + "supplement": "COBBLESTONE_STAIRS", + "exact": false, + "when": "ANDESITE_STAIRS" + }, + { + "supplement": "COBBLESTONE_STAIRS", + "exact": false, + "when": "STONE_STAIRS" + }, + { + "supplement": "LEGACY_SANDSTONE_STAIRS", + "exact": false, + "when": "END_STONE_BRICK_STAIRS" + }, + { + "supplement": "LEGACY_NETHER_BRICK_STAIRS", + "exact": false, + "when": "NETHER_BRICK_STAIRS" + }, + { + "supplement": "NETHER_BRICK_STAIRS", + "exact": false, + "when": "RED_NETHER_BRICK_STAIRS" + }, + { + "supplement": "LEGACY_QUARTZ_STAIRS", + "exact": false, + "when": "SMOOTH_QUARTZ_STAIRS" + }, + { + "supplement": "LEGACY_QUARTZ_STAIRS", + "exact": false, + "when": "QUARTZ_STAIRS" + }, + { + "supplement": "LEGACY_RED_SANDSTONE_STAIRS", + "exact": false, + "when": "RED_SANDSTONE_STAIRS" + }, + { + "supplement": "LEGACY_RED_SANDSTONE_STAIRS", + "exact": false, + "when": "SMOOTH_RED_SANDSTONE_STAIRS" + }, + { + "supplement": "SMOOTH_STONE_SLAB", + "exact": false, + "when": "STONE_SLAB" + }, + { + "supplement": "FURNACE", + "exact": false, + "when": "SMOKER" + }, + { + "supplement": "CRAFTING_TABLE", + "exact": false, + "when": "SMITHING_TABLE" + }, + { + "supplement": "SANDSTONE_SLAB", + "exact": false, + "when": "END_STONE_BRICK_SLAB" + }, + { + "supplement": "NETHER_BRICK_SLAB", + "exact": false, + "when": "RED_NETHER_BRICK_SLAB" + }, + { + "supplement": "QUARTZ_SLAB", + "exact": false, + "when": "SMOOTH_QUARTZ_SLAB" + }, + { + "supplement": "SANDSTONE_SLAB", + "exact": false, + "when": "CUT_SANDSTONE_SLAB" + }, + { + "supplement": "RED_SANDSTONE_SLAB", + "exact": false, + "when": "CUT_RED_SANDSTONE_SLAB" + }, + { + "supplement": "RED_SANDSTONE_SLAB", + "exact": false, + "when": "SMOOTH_RED_SANDSTONE_SLAB" + }, + { + "supplement": "SANDSTONE_SLAB", + "exact": false, + "when": "SMOOTH_SANDSTONE_SLAB" + }, + { + "supplement": "COBBLESTONE_SLAB", + "exact": false, + "when": "MOSSY_COBBLESTONE_SLAB" + }, + { + "supplement": "STONE_BRICK_SLAB", + "exact": false, + "when": "MOSSY_STONE_BRICK_SLAB" + }, + { + "supplement": "SMOOTH_STONE_SLAB", + "exact": false, + "when": "STONE_SLAB" + }, + { + "supplement": "COBBLESTONE_SLAB", + "exact": false, + "when": "ANDESITE_SLAB" + }, + { + "supplement": "COBBLESTONE_SLAB", + "exact": false, + "when": "ANDESITE_SLAB" + }, + { + "supplement": "COBBLESTONE_SLAB", + "exact": false, + "when": "DIORITE_SLAB" + }, + { + "supplement": "COBBLESTONE_SLAB", + "exact": false, + "when": "GRANITE_SLAB" + }, + { + "supplement": "SMOOTH_STONE_SLAB", + "exact": false, + "when": "POLISHED_ANDESITE_SLAB" + }, + { + "supplement": "SMOOTH_STONE_SLAB", + "exact": false, + "when": "POLISHED_DIORITE_SLAB" + }, + { + "supplement": "SMOOTH_STONE_SLAB", + "exact": false, + "when": "POLISHED_GRANITE_SLAB" + }, + { + "supplement": "LEGACY_WALL_SIGN", + "exact": false, + "when": "WARPED_WALL_SIGN" + }, + { + "supplement": "LEGACY_SIGN_POST", + "exact": false, + "when": "WARPED_SIGN" + }, + { + "supplement": "LEGACY_WALL_SIGN", + "exact": false, + "when": "SPRUCE_WALL_SIGN" + }, + { + "supplement": "LEGACY_SIGN_POST", + "exact": false, + "when": "SPRUCE_SIGN" + }, + { + "supplement": "LEGACY_WALL_SIGN", + "exact": false, + "when": "OAK_WALL_SIGN" + }, + { + "supplement": "LEGACY_SIGN_POST", + "exact": false, + "when": "OAK_SIGN" + }, + { + "supplement": "LEGACY_WALL_SIGN", + "exact": false, + "when": "JUNGLE_WALL_SIGN" + }, + { + "supplement": "LEGACY_SIGN_POST", + "exact": false, + "when": "JUNGLE_SIGN" + }, + { + "supplement": "LEGACY_WALL_SIGN", + "exact": false, + "when": "DARK_OAK_WALL_SIGN" + }, + { + "supplement": "LEGACY_SIGN_POST", + "exact": false, + "when": "DARK_OAK_SIGN" + }, + { + "supplement": "LEGACY_WALL_SIGN", + "exact": false, + "when": "CRIMSON_WALL_SIGN" + }, + { + "supplement": "LEGACY_SIGN_POST", + "exact": false, + "when": "CRIMSON_SIGN" + }, + { + "supplement": "LEGACY_WALL_SIGN", + "exact": false, + "when": "BIRCH_WALL_SIGN" + }, + { + "supplement": "LEGACY_SIGN_POST", + "exact": false, + "when": "BIRCH_SIGN" + }, + { + "supplement": "LEGACY_WALL_SIGN", + "exact": false, + "when": "ACACIA_WALL_SIGN" + }, + { + "supplement": "LEGACY_SIGN_POST", + "exact": false, + "when": "ACACIA_SIGN" + }, + { + "supplement": "BIRCH_FENCE", + "exact": false, + "when": "SCAFFOLDING" + }, + { + "supplement": "LOOM", + "exact": false, + "when": "LOOM" + }, + { + "supplement": "BOOKSHELF", + "exact": false, + "when": "LECTERN" + }, + { + "supplement": "REDSTONE_LAMP", + "exact": false, + "when": "LANTERN" + }, + { + "supplement": "AIR", + "exact": false, + "when": "JIGSAW" + }, + { + "supplement": "COBBLESTONE", + "exact": false, + "when": "GRINDSTONE" + }, + { + "supplement": "CRAFTING_TABLE", + "exact": false, + "when": "FLETCHING_TABLE" + }, + { + "supplement": "CHEST", + "exact": false, + "when": "COMPOSTER" + }, + { + "supplement": "CRAFTING_TABLE", + "exact": false, + "when": "CARTOGRAPHY_TABLE" + }, + { + "supplement": "DARK_OAK_SLAB", + "exact": false, + "when": "CAMPFIRE" + }, + { + "supplement": "FURNACE", + "exact": false, + "when": "BLAST_FURNACE" + }, + { + "supplement": "REDSTONE_LAMP", + "exact": false, + "when": "BELL" + }, + { + "supplement": "minecraft:hay_bale[axis=z]", + "exact": true, + "when": "minecraft:barrel[facing=south]" + }, + { + "supplement": "minecraft:hay_bale[axis=z]", + "exact": true, + "when": "minecraft:barrel[facing=north]" + }, + { + "supplement": "minecraft:hay_bale[axis=x]", + "exact": true, + "when": "minecraft:barrel[facing=east]" + }, + { + "supplement": "minecraft:hay_bale[axis=x]", + "exact": true, + "when": "minecraft:barrel[facing=west]" + }, + { + "supplement": "minecraft:hay_bale[axis=y]", + "exact": true, + "when": "minecraft:barrel[facing=up]" + }, + { + "supplement": "minecraft:hay_bale[axis=y]", + "exact": true, + "when": "minecraft:barrel[facing=down]" + }, + { + "supplement": "BIRCH_FENCE", + "exact": false, + "when": "BAMBOO" + }, + { + "supplement": "BIRCH_SAPLING", + "exact": false, + "when": "BAMBOO_SAPLING" + }, + { + "supplement": "POTTED_BIRCH_SAPLING", + "exact": false, + "when": "POTTED_BAMBOO" + }, + { + "supplement": "STONE", + "exact": false, + "when": "*" + } + ], + "roughnessHeight": 3, + "name": "Testing", + "dimensionAngleDeg": 0, + "regionZoom": 1, + "caveScale": 1, + "dispersion": "SCATTER" +} diff --git a/testing/generators/example-generator.json b/testing/generators/example-generator.json new file mode 100644 index 00000000..100a0da8 --- /dev/null +++ b/testing/generators/example-generator.json @@ -0,0 +1,49 @@ +{ + "cellPercentSize": 0.75, + "cellFractureHeight": 0, + "seed": 1, + "interpolationScale": 185, + "zoom": 1, + "cliffHeightMin": 0, + "cliffHeightGenerator": { + "sinCentered": false, + "seed": 0, + "parametric": false, + "zoom": 1, + "enabled": true, + "fracture": [], + "offsetX": 0, + "octaves": 1, + "negative": false, + "offsetZ": 0, + "offsetY": 0, + "irisBased": true, + "opacity": 1, + "bezier": false, + "exponent": 1 + }, + "offsetX": 0, + "offsetZ": 0, + "interpolationFunction": "HERMITE", + "cellFractureShuffle": 12, + "composite": [{ + "sinCentered": false, + "seed": 0, + "parametric": false, + "zoom": 1, + "enabled": true, + "fracture": [], + "offsetX": 0, + "octaves": 1, + "negative": false, + "offsetZ": 0, + "offsetY": 0, + "irisBased": true, + "opacity": 1, + "bezier": false, + "exponent": 1 + }], + "opacity": 1, + "cliffHeightMax": 0, + "cellFractureZoom": 1 +} diff --git a/testing/regions/example-region.json b/testing/regions/example-region.json new file mode 100644 index 00000000..767232d9 --- /dev/null +++ b/testing/regions/example-region.json @@ -0,0 +1,28 @@ +{ + "shoreRatio": 0.13, + "ridgeBiomes": [], + "islandBiomes": [], + "biomeShuffle": 11, + "shoreBiomeZoom": 1, + "islandBiomeZoom": 1, + "structures": [], + "spotBiomes": [], + "caveBiomeZoom": 1, + "landBiomes": [ + "land-1", + "land-2" + ], + "seaBiomeZoom": 1, + "biomeImplosionRatio": 0.4, + "skylandBiomeZoom": 1, + "seaBiomes": ["sea"], + "deposits": [], + "caveBiomes": [], + "landBiomeZoom": 1, + "shoreHeightMin": 1.2, + "shoreBiomes": ["shore"], + "skylandBiomes": [], + "name": "Example Region", + "shoreHeightMax": 3.2, + "shoreHeightZoom": 3.14 +} diff --git a/testing/testing.code-workspace b/testing/testing.code-workspace new file mode 100644 index 00000000..089a4fb7 --- /dev/null +++ b/testing/testing.code-workspace @@ -0,0 +1,12 @@ +{ + "settings": { + "files.autoSave": "onFocusChange", + "workbench.statusBar.visible": false, + "workbench.tips.enabled": false, + "workbench.colorTheme": "Monokai", + "workbench.preferredDarkColorTheme": "Solarized Dark", + "workbench.tree.indent": 24, + "workbench.preferredHighContrastColorTheme": "Solarized Dark" + }, + "folders": [{"path": "."}] +}