mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 08:14:45 +00:00
Tests for declared settings keys: real pre-port pack files, key clashes, one shape
Decodes files of the overworld pack as written before the port (biome with decorators and deposits, region, dimension with importedStructures and deposits), refuses the feature id and the wrong shape, and checks that built-in keys clash with neither each other nor Iris's fields.
This commit is contained in:
1 parent
b642b7f04e
commit
75cd4979a7
26 files changed
+2550
-97
No files matched your search
+2
-2
@@ -118,7 +118,7 @@ public class IrisStructureLocateCommandContractTest {
|
||||
@Test
|
||||
public void unregisteredDiagnosticExplainsEveryRejectedRoute() {
|
||||
assertEquals(
|
||||
"Native structure minecraft:village is disabled by this dimension's iris:structure settings or a module of the pack.",
|
||||
"Native structure minecraft:village is disabled by this dimension's importedStructures settings or a module of the pack.",
|
||||
CommandFind.describeStructureExclusion(
|
||||
CommandFind.StructureLookupRoute.POLICY_DISABLED, "minecraft:village",
|
||||
NativeStructureGenerationStatus.DISABLED_BY_PACK,
|
||||
@@ -214,7 +214,7 @@ public class IrisStructureLocateCommandContractTest {
|
||||
@Test
|
||||
public void findNativePolicyMessagesMatchModdedDiagnostics() {
|
||||
assertEquals(
|
||||
"Native structure minecraft:village_plains is disabled by this dimension's iris:structure settings or a module of the pack.",
|
||||
"Native structure minecraft:village_plains is disabled by this dimension's importedStructures settings or a module of the pack.",
|
||||
NativeStructureGenerationPolicy.generationStatusMessage(
|
||||
"minecraft:village_plains", NativeStructureGenerationStatus.DISABLED_BY_PACK));
|
||||
assertEquals(
|
||||
|
||||
+2
-2
@@ -52,8 +52,8 @@ public class NativeStructureFailureContractTest {
|
||||
|
||||
assertTrue(error.getMessage().contains("overworld:overworld"));
|
||||
assertTrue(error.getMessage().contains("generate-structures=false"));
|
||||
assertTrue(error.getMessage().contains("iris:structure disabled"));
|
||||
assertTrue(error.getMessage().contains("iris:structure disabledExact"));
|
||||
assertTrue(error.getMessage().contains("importedStructures.disabled"));
|
||||
assertTrue(error.getMessage().contains("importedStructures.disabledExact"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -24,9 +24,13 @@ import art.arcane.iris.builtin.decorant.DecorantSettings;
|
||||
import art.arcane.iris.builtin.decorant.Decorator;
|
||||
import art.arcane.iris.builtin.deposit.DepositGenerator;
|
||||
import art.arcane.iris.builtin.deposit.DepositSettings;
|
||||
import art.arcane.iris.builtin.structure.StructureSettings;
|
||||
import com.volmit.FeatureAttachment.Target;
|
||||
import com.volmit.FeatureRegistry;
|
||||
import com.volmit.IrisFeature;
|
||||
import com.volmit.IrisModule;
|
||||
import com.volmit.ModuleInfo;
|
||||
import com.volmit.config.Feature;
|
||||
import com.volmit.config.PackSettings;
|
||||
import com.volmit.host.LoadedPack;
|
||||
import com.volmit.host.ResolvedGraph;
|
||||
@@ -43,9 +47,11 @@ import org.junit.rules.TemporaryFolder;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.OptionalInt;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertThrows;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
||||
@@ -96,14 +102,15 @@ public class BuiltInGenerationGraphTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void depositsAreSettingsOfEveryLevelWrittenAsTheirIdWithGenerators() throws IOException {
|
||||
public void depositsAreTheListOfGeneratorsOfEveryLevelWrittenUnderDeposits() throws IOException {
|
||||
try (LoadedPack pack = BuiltInPack.serve(mock(IrisData.class), folder, List.of())) {
|
||||
for (Target level : List.of(Target.DIMENSION, Target.REGION, Target.BIOME)) {
|
||||
FeatureSchema deposits = pack.schema().fields(level).stream()
|
||||
.filter(feature -> feature.settings().name().equals(DepositSettings.class.getName()))
|
||||
.findFirst().orElseThrow();
|
||||
assertEquals("iris:deposit", deposits.key());
|
||||
SchemaOption option = deposits.settings().options().getFirst();
|
||||
assertEquals("deposits", deposits.key());
|
||||
assertEquals(Optional.of("generators"), deposits.root());
|
||||
SchemaOption option = deposits.rootOption().orElseThrow();
|
||||
assertEquals("generators", option.name());
|
||||
ValueKind generators = option.kind();
|
||||
assertEquals("generators are a module class of IrisApi types, not an Iris class",
|
||||
@@ -112,6 +119,71 @@ public class BuiltInGenerationGraphTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void importedStructuresAreAnObjectOfOptionsOfTheDimension() throws IOException {
|
||||
try (LoadedPack pack = BuiltInPack.serve(mock(IrisData.class), folder, List.of())) {
|
||||
FeatureSchema structures = pack.schema().fields(Target.DIMENSION).stream()
|
||||
.filter(feature -> feature.settings().name().equals(StructureSettings.class.getName()))
|
||||
.findFirst().orElseThrow();
|
||||
|
||||
assertEquals("importedStructures", structures.key());
|
||||
assertEquals(Optional.empty(), structures.root());
|
||||
assertEquals(List.of("disabled", "disabledExact", "undergroundYShift", "datapackOverrides", "frequencyOverrides", "adjustments"),
|
||||
structures.settings().options().stream().map(SchemaOption::name).toList());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void theBuiltInKeysAreUniquePerTargetAndNoFieldOfIris() throws IOException {
|
||||
try (LoadedPack pack = BuiltInPack.serve(mock(IrisData.class), folder, List.of())) {
|
||||
for (Target target : Target.values()) {
|
||||
List<String> keys = pack.schema().fields(target).stream().map(FeatureSchema::key).toList();
|
||||
assertEquals(target + " " + keys, keys.size(), keys.stream().distinct().count());
|
||||
assertTrue(target + " " + keys, keys.stream().noneMatch(ModuleTargets.reservedFields().get(target)::contains));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void aModuleCannotTakeTheKeyOfABuiltInOrAFieldOfIris() {
|
||||
IllegalArgumentException deposits = assertThrows(IllegalArgumentException.class,
|
||||
() -> BuiltInPack.serve(mock(IrisData.class), folder, List.of(new RivalModule(TakesDeposits.class))));
|
||||
assertEquals("region key \"deposits\" is claimed by iris:deposit (host classpath) and test:rival/deposits (host classpath);"
|
||||
+ " give one of the settings another key in its @Feature", deposits.getMessage());
|
||||
|
||||
IllegalArgumentException field = assertThrows(IllegalArgumentException.class,
|
||||
() -> BuiltInPack.serve(mock(IrisData.class), folder, List.of(new RivalModule(TakesAHostField.class))));
|
||||
assertEquals("biome key \"generators\" is claimed by Iris and test:rival/generators (host classpath);"
|
||||
+ " give one of the settings another key in its @Feature", field.getMessage());
|
||||
}
|
||||
|
||||
@Feature(id = "test:rival/deposits", name = "Rival deposits", key = "deposits", targets = Target.REGION)
|
||||
public static final class TakesDeposits implements IrisFeature {
|
||||
}
|
||||
|
||||
@Feature(id = "test:rival/generators", name = "Rival generators", key = "generators", targets = Target.BIOME)
|
||||
public static final class TakesAHostField implements IrisFeature {
|
||||
}
|
||||
|
||||
private static final class RivalModule implements IrisModule {
|
||||
private final Class<? extends IrisFeature> settings;
|
||||
|
||||
RivalModule(Class<? extends IrisFeature> settings) {
|
||||
this.settings = settings;
|
||||
}
|
||||
|
||||
public ModuleInfo info() {
|
||||
return ModuleInfo.of("test:rival", "Rival", "1");
|
||||
}
|
||||
|
||||
public void install(StageGraph graph) {
|
||||
}
|
||||
|
||||
public void register(FeatureRegistry registry) {
|
||||
registry.registerSettings(settings);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void depositGeneratorsKeepTheMinimumListLengthsTheOldClassHad() throws IOException {
|
||||
try (LoadedPack pack = BuiltInPack.serve(mock(IrisData.class), folder, List.of())) {
|
||||
@@ -125,7 +197,7 @@ public class BuiltInGenerationGraphTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void decoratorsAreBiomeSettingsWrittenUnderTheirIdWithDecorators() throws IOException {
|
||||
public void decoratorsAreTheBiomesListOfDecoratorsWrittenUnderDecorators() throws IOException {
|
||||
try (LoadedPack pack = BuiltInPack.serve(mock(IrisData.class), folder, List.of())) {
|
||||
for (Target level : List.of(Target.DIMENSION, Target.REGION)) {
|
||||
assertTrue(level + " has no decorators", pack.schema().fields(level).stream()
|
||||
@@ -134,8 +206,9 @@ public class BuiltInGenerationGraphTest {
|
||||
FeatureSchema decorant = pack.schema().fields(Target.BIOME).stream()
|
||||
.filter(feature -> feature.settings().name().equals(DecorantSettings.class.getName()))
|
||||
.findFirst().orElseThrow();
|
||||
assertEquals("iris:decorant", decorant.key());
|
||||
SchemaOption option = decorant.settings().options().getFirst();
|
||||
assertEquals("decorators", decorant.key());
|
||||
assertEquals(Optional.of("decorators"), decorant.root());
|
||||
SchemaOption option = decorant.rootOption().orElseThrow();
|
||||
assertEquals("decorators", option.name());
|
||||
assertEquals("decorators are a module class of IrisApi types, not an Iris class",
|
||||
new ValueKind.ListKind(new ValueKind.ObjectKind(Decorator.class.getName()), false), option.kind());
|
||||
|
||||
@@ -61,6 +61,7 @@ public final class BuiltInPack {
|
||||
List<IrisModule> modules = Stream.concat(IrisModuleHost.builtInModules().stream(), packModules.stream()).toList();
|
||||
LoadedPack pack = LoadedPack.load(packFolder, ModuleHost.of(modules)
|
||||
.exposing(IrisModuleHost.BUILT_IN_API_PACKAGE)
|
||||
.reservingFields(ModuleTargets.reservedFields())
|
||||
.describingHostTypesIn(IrisModuleHost.HOST_TYPE_PACKAGE)
|
||||
.copyingJarsTo(folder.newFolder().toPath()));
|
||||
PackModuleSet moduleSet = mock(PackModuleSet.class);
|
||||
|
||||
@@ -70,7 +70,7 @@ public class ChunkSettingsScanTimingTest {
|
||||
@Rule
|
||||
public TemporaryFolder folder = new TemporaryFolder();
|
||||
|
||||
@Feature(id = "test:scan", name = "Scan", targets = {Target.DIMENSION, Target.REGION, Target.BIOME})
|
||||
@Feature(id = "test:scan", name = "Scan", key = "scan", targets = {Target.DIMENSION, Target.REGION, Target.BIOME})
|
||||
static final class ScanSettings implements IrisFeature {
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@ import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
@@ -27,12 +28,12 @@ import static org.junit.Assert.assertThrows;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* The decorators packs have always written, now under {@code "iris:decorant": {"decorators": [...]}} as the migration
|
||||
* script leaves them, read into {@link Decorator}, a settings class of IrisApi types only.
|
||||
* The decorators packs have always written, the {@code "decorators": [...]} list, read into {@link Decorator}, a settings
|
||||
* class of IrisApi types only.
|
||||
*/
|
||||
public class DecorantSettingsDecodingTest {
|
||||
private static final String BIOME_DECORATORS = """
|
||||
{"name": "Meadow", "iris:decorant": {"decorators": [
|
||||
{"name": "Meadow", "decorators": [
|
||||
{"chance": 0.003, "variance": {"style": "STATIC"}, "zoom": 1,
|
||||
"palette": [{"block": "minecraft:white_tulip"}, {"block": "minecraft:cornflower", "weight": 3}],
|
||||
"style": {"style": "SIMPLEX", "zoom": 4}},
|
||||
@@ -43,7 +44,7 @@ public class DecorantSettingsDecodingTest {
|
||||
"snippet/decorator/bush",
|
||||
"snippet/bush",
|
||||
{}
|
||||
]}}
|
||||
]}
|
||||
""";
|
||||
|
||||
@Rule
|
||||
@@ -132,20 +133,21 @@ public class DecorantSettingsDecodingTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void theOldBareListUnderTheOldKeyIsNotSettings() {
|
||||
JSONObject old = new JSONObject("{\"decorators\": [{\"chance\": 1}]}");
|
||||
public void theFeatureIdIsNotAKey() {
|
||||
JSONObject byId = new JSONObject("{\"iris:decorant\": [{\"chance\": 1}]}");
|
||||
|
||||
assertSame(ModuleSettings.NONE, decoder.decode(Target.BIOME, old, "biome meadow"));
|
||||
assertFalse(decoder.keys(Target.BIOME).contains("decorators"));
|
||||
assertSame(ModuleSettings.NONE, decoder.decode(Target.BIOME, byId, "biome meadow"));
|
||||
assertEquals(Set.of("decorators", "deposits"), decoder.keys(Target.BIOME));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void aBareListUnderTheFeatureIdIsRefused() {
|
||||
JSONObject bare = new JSONObject("{\"iris:decorant\": [{\"chance\": 1}]}");
|
||||
public void anObjectOfOptionsUnderDecoratorsIsRefused() {
|
||||
JSONObject object = new JSONObject("{\"decorators\": {\"decorators\": [{\"chance\": 1}]}}");
|
||||
|
||||
IllegalArgumentException refused = assertThrows(IllegalArgumentException.class, () -> decoder.decode(Target.BIOME, bare, "biome meadow"));
|
||||
IllegalArgumentException refused = assertThrows(IllegalArgumentException.class, () -> decoder.decode(Target.BIOME, object, "biome meadow"));
|
||||
|
||||
assertTrue(refused.getMessage(), refused.getMessage().contains("write the settings as an object"));
|
||||
assertEquals("Cannot read settings iris:decorant under \"decorators\" in biome meadow: write a list, [...], of the decorators,"
|
||||
+ " not an object of options", refused.getMessage());
|
||||
}
|
||||
|
||||
private List<Decorator> decorators(String biomeJson) {
|
||||
|
||||
@@ -24,6 +24,7 @@ import java.nio.file.Path;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.Set;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
@@ -32,12 +33,12 @@ import static org.junit.Assert.assertThrows;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* The deposit generators packs have always written, now under {@code "iris:deposit": {"generators": [...]}}, read into {@link DepositGenerator}, a settings class of IrisApi types only,
|
||||
* with the values Iris's own deposit generator class read from the same JSON.
|
||||
* The deposit generators packs have always written, the {@code "deposits": [...]} list, read into {@link DepositGenerator},
|
||||
* a settings class of IrisApi types only, with the values Iris's own deposit generator class read from the same JSON.
|
||||
*/
|
||||
public class DepositSettingsDecodingTest {
|
||||
private static final String REGION_DEPOSITS = """
|
||||
{"iris:deposit": {"generators": [
|
||||
{"deposits": [
|
||||
{"minHeight": 15, "maxPerChunk": 26, "maxHeight": 410, "minPerChunk": 4, "minSize": 3, "maxSize": 8,
|
||||
"palette": [{"block": "minecraft:iron_ore"}, {"block": "minecraft:coal_ore"}], "varience": 4},
|
||||
{"heightDistribution": "TRIANGLE", "placementScope": "FULL_HEIGHT", "surfaceClearance": 0, "shape": "VANILLA_ELLIPSOID",
|
||||
@@ -47,7 +48,7 @@ public class DepositSettingsDecodingTest {
|
||||
"snippet/deposit/diamonds",
|
||||
"snippet/diamonds",
|
||||
{}
|
||||
]}}
|
||||
]}
|
||||
""";
|
||||
|
||||
@Rule
|
||||
@@ -142,20 +143,39 @@ public class DepositSettingsDecodingTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void theOldBareListUnderTheOldKeyIsNotSettings() {
|
||||
JSONObject old = new JSONObject("{\"deposits\": [{\"maxHeight\": 16}]}");
|
||||
public void theFeatureIdIsNotAKey() {
|
||||
JSONObject byId = new JSONObject("{\"iris:deposit\": [{\"maxHeight\": 16}]}");
|
||||
|
||||
assertSame(ModuleSettings.NONE, decoder.decode(Target.REGION, old, "region forests"));
|
||||
assertFalse(decoder.keys(Target.REGION).contains("deposits"));
|
||||
assertSame(ModuleSettings.NONE, decoder.decode(Target.REGION, byId, "region forests"));
|
||||
assertEquals(Set.of("deposits"), decoder.keys(Target.REGION));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void aBareListUnderTheFeatureIdIsRefused() {
|
||||
JSONObject bare = new JSONObject("{\"iris:deposit\": [{\"maxHeight\": 16}]}");
|
||||
public void anObjectOfOptionsUnderDepositsIsRefused() {
|
||||
JSONObject object = new JSONObject("{\"deposits\": {\"generators\": [{\"maxHeight\": 16}]}}");
|
||||
|
||||
IllegalArgumentException refused = assertThrows(IllegalArgumentException.class, () -> decoder.decode(Target.REGION, bare, "region forests"));
|
||||
IllegalArgumentException refused = assertThrows(IllegalArgumentException.class, () -> decoder.decode(Target.REGION, object, "region forests"));
|
||||
|
||||
assertTrue(refused.getMessage(), refused.getMessage().contains("write the settings as an object"));
|
||||
assertEquals("Cannot read settings iris:deposit under \"deposits\" in region forests: write a list, [...], of the generators,"
|
||||
+ " not an object of options", refused.getMessage());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void nullUnderDepositsIsRefused() {
|
||||
JSONObject nothing = new JSONObject("{\"deposits\": null}");
|
||||
|
||||
IllegalArgumentException refused = assertThrows(IllegalArgumentException.class, () -> decoder.decode(Target.REGION, nothing, "region forests"));
|
||||
|
||||
assertTrue(refused.getMessage(), refused.getMessage().contains("under \"deposits\" in region forests: the value is null; write a list"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void aWronglyShapedGeneratorNamesTheKeyAndTheFile() {
|
||||
JSONObject broken = new JSONObject("{\"deposits\": [{\"maxHeight\": \"tall\"}]}");
|
||||
|
||||
IllegalArgumentException refused = assertThrows(IllegalArgumentException.class, () -> decoder.decode(Target.REGION, broken, "region forests"));
|
||||
|
||||
assertTrue(refused.getMessage(), refused.getMessage().startsWith("Cannot read settings iris:deposit under \"deposits\" in region forests: "));
|
||||
}
|
||||
|
||||
private List<DepositGenerator> deposits(String regionJson) {
|
||||
|
||||
@@ -65,7 +65,7 @@ public class ModuleChunkGenerationTest {
|
||||
private Engine engine;
|
||||
private Hunk<PlatformBlockState> blocks;
|
||||
|
||||
@Feature(id = "iris:pillar", name = "Pillar", targets = {Target.BIOME, Target.REGION, Target.DIMENSION})
|
||||
@Feature(id = "iris:pillar", name = "Pillar", key = "pillar", targets = {Target.BIOME, Target.REGION, Target.DIMENSION})
|
||||
public static final class PillarSettings implements IrisFeature {
|
||||
private BlockState block = BlockState.parse("minecraft:stone");
|
||||
private int x;
|
||||
|
||||
@@ -70,7 +70,7 @@ public class ModuleSettingsDecoderTest {
|
||||
private LoadedPack pack;
|
||||
private ModuleSettingsDecoder decoder;
|
||||
|
||||
@Feature(id = "iris:moss", name = "Moss", targets = {Target.BIOME, Target.REGION})
|
||||
@Feature(id = "iris:moss", name = "Moss", key = "moss", targets = {Target.BIOME, Target.REGION})
|
||||
public static final class MossSettings implements IrisFeature {
|
||||
private int radius = 3;
|
||||
private BlockState block = new BlockState("minecraft:moss_block");
|
||||
@@ -83,17 +83,17 @@ public class ModuleSettingsDecoderTest {
|
||||
private int size = 1;
|
||||
}
|
||||
|
||||
@Feature(id = "iris:moss/cover", name = "Cover", targets = Target.BIOME)
|
||||
@Feature(id = "iris:moss/cover", name = "Cover", key = "mossCover", targets = Target.BIOME)
|
||||
public static final class CoverSettings implements IrisFeature {
|
||||
private double amount = 1;
|
||||
}
|
||||
|
||||
@Feature(id = "iris:moss/marks", name = "Marks", targets = Target.BIOME)
|
||||
@Feature(id = "iris:moss/marks", name = "Marks", key = "mossMarks", targets = Target.BIOME)
|
||||
public static final class MarksSettings implements IrisFeature {
|
||||
private List<IrisPosition> marks = List.of();
|
||||
}
|
||||
|
||||
@Feature(id = "iris:moss/values", name = "Values", targets = Target.BIOME)
|
||||
@Feature(id = "iris:moss/values", name = "Values", key = "mossValues", targets = Target.BIOME)
|
||||
public static final class ValuesSettings implements IrisFeature {
|
||||
private List<BlockSpec> palette = List.of();
|
||||
private NoiseStyle style = NoiseStyle.of("SIMPLEX");
|
||||
@@ -141,13 +141,13 @@ public class ModuleSettingsDecoderTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void readsSettingsUnderTheirIdKeepingOmittedDefaults() {
|
||||
MossSettings byId = moss("{\"iris:moss\": {\"radius\": 7, \"block\": \"minecraft:oak_log[axis=y]\"}}");
|
||||
MossSettings partial = moss("{\"iris:moss\": {\"palette\": \"iris:moss/wet\"}}");
|
||||
public void readsSettingsUnderTheirKeyKeepingOmittedDefaults() {
|
||||
MossSettings byKey = moss("{\"moss\": {\"radius\": 7, \"block\": \"minecraft:oak_log[axis=y]\"}}");
|
||||
MossSettings partial = moss("{\"moss\": {\"palette\": \"iris:moss/wet\"}}");
|
||||
|
||||
assertEquals(7, byId.radius);
|
||||
assertEquals(BlockState.parse("minecraft:oak_log[axis=y]"), byId.block);
|
||||
assertEquals(ResourceId.parse("iris:moss/default"), byId.palette);
|
||||
assertEquals(7, byKey.radius);
|
||||
assertEquals(BlockState.parse("minecraft:oak_log[axis=y]"), byKey.block);
|
||||
assertEquals(ResourceId.parse("iris:moss/default"), byKey.palette);
|
||||
assertEquals(3, partial.radius);
|
||||
assertEquals(ResourceId.parse("iris:moss/wet"), partial.palette);
|
||||
assertEquals(1, partial.patch.size);
|
||||
@@ -156,12 +156,12 @@ public class ModuleSettingsDecoderTest {
|
||||
@Test
|
||||
public void declaresNothingWhereNoKeyIsPresent() {
|
||||
assertSame(ModuleSettings.NONE, decoder.decode(Target.BIOME, new JSONObject("{\"name\": \"Dunes\"}"), "biome desert/dunes"));
|
||||
assertSame(ModuleSettings.NONE, decoder.decode(Target.DIMENSION, new JSONObject("{\"iris:moss\": {}}"), "dimension overworld"));
|
||||
assertSame(ModuleSettings.NONE, decoder.decode(Target.DIMENSION, new JSONObject("{\"moss\": {}}"), "dimension overworld"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void aShortKeyIsNotAKeyOfTheSettings() {
|
||||
assertSame(ModuleSettings.NONE, decoder.decode(Target.BIOME, new JSONObject("{\"moss\": {\"radius\": 7}}"), "biome desert/dunes"));
|
||||
public void theFeatureIdIsNotAKeyOfTheSettings() {
|
||||
assertSame(ModuleSettings.NONE, decoder.decode(Target.BIOME, new JSONObject("{\"iris:moss\": {\"radius\": 7}}"), "biome desert/dunes"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -169,10 +169,10 @@ public class ModuleSettingsDecoderTest {
|
||||
Path snippets = Files.createDirectories(packFolder.resolve("snippet/moss-patch"));
|
||||
Files.writeString(snippets.resolve("wide.json"), "{\"size\": 9}");
|
||||
|
||||
assertEquals(9, moss("{\"iris:moss\": {\"patch\": \"snippet/wide\"}}").patch.size);
|
||||
assertEquals(9, moss("{\"moss\": {\"patch\": \"snippet/wide\"}}").patch.size);
|
||||
|
||||
IllegalArgumentException missing = assertThrows(IllegalArgumentException.class,
|
||||
() -> moss("{\"iris:moss\": {\"patch\": \"snippet/narrow\"}}"));
|
||||
() -> moss("{\"moss\": {\"patch\": \"snippet/narrow\"}}"));
|
||||
assertTrue(missing.getMessage(), missing.getMessage().contains("Snippet snippet/narrow has no file snippet/moss-patch/narrow.json"));
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ public class ModuleSettingsDecoderTest {
|
||||
Path snippets = Files.createDirectories(packFolder.resolve("snippet/moss-patch"));
|
||||
Files.writeString(snippets.resolve("wide.json"), "{\"size\": 9}");
|
||||
|
||||
assertEquals(9, moss("{\"iris:moss\": {\"patch\": \"snippet/moss-patch/wide\"}}").patch.size);
|
||||
assertEquals(9, moss("{\"moss\": {\"patch\": \"snippet/moss-patch/wide\"}}").patch.size);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -189,7 +189,7 @@ public class ModuleSettingsDecoderTest {
|
||||
Path styles = Files.createDirectories(packFolder.resolve("snippet/style"));
|
||||
Files.writeString(styles.resolve("deepslate.json"), "{\"style\": \"STATIC\"}");
|
||||
ValuesSettings values = decoder.decode(Target.BIOME, new JSONObject("""
|
||||
{"iris:moss/values": {
|
||||
{"mossValues": {
|
||||
"palette": [{"block": "minecraft:oak_log", "data": {"axis": "y", "waterlogged": true, "level": 3}, "weight": 2,
|
||||
"backup": {"block": "stone"}, "tileData": {"Delay": 20, "SpawnData": {"entity": {"id": "zombie"}}}},
|
||||
{"block": "iron_ore"}],
|
||||
@@ -223,26 +223,26 @@ public class ModuleSettingsDecoderTest {
|
||||
@Test
|
||||
public void badValuesNameTheSettingsKeyAndResource() {
|
||||
IllegalArgumentException failure = assertThrows(IllegalArgumentException.class,
|
||||
() -> moss("{\"iris:moss\": {\"block\": \"stone\"}}"));
|
||||
() -> moss("{\"moss\": {\"block\": \"stone\"}}"));
|
||||
|
||||
assertTrue(failure.getMessage(), failure.getMessage().startsWith("Cannot read settings iris:moss under \"iris:moss\" in biome desert/dunes: "));
|
||||
assertTrue(failure.getMessage(), failure.getMessage().startsWith("Cannot read settings iris:moss under \"moss\" in biome desert/dunes: "));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void listsTheKeysModulesReadPerTarget() {
|
||||
assertEquals(Set.of("iris:moss", "iris:moss/cover", "iris:moss/marks", "iris:moss/values"), decoder.keys(Target.BIOME));
|
||||
assertEquals(Set.of("moss", "mossCover", "mossMarks", "mossValues"), decoder.keys(Target.BIOME));
|
||||
assertEquals(Set.of(), decoder.keys(Target.DIMENSION));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void settingsAreAlwaysAnObjectEvenWithOneOption() {
|
||||
assertEquals(0.25, decoder.decode(Target.BIOME, new JSONObject("{\"iris:moss/cover\": {\"amount\": 0.25}}"), "biome desert/dunes")
|
||||
assertEquals(0.25, decoder.decode(Target.BIOME, new JSONObject("{\"mossCover\": {\"amount\": 0.25}}"), "biome desert/dunes")
|
||||
.find(CoverSettings.class).orElseThrow().amount, 0);
|
||||
|
||||
for (String bare : List.of("0.5", "[1, 2]", "true")) {
|
||||
IllegalArgumentException refused = assertThrows(IllegalArgumentException.class,
|
||||
() -> decoder.decode(Target.BIOME, new JSONObject("{\"iris:moss/cover\": " + bare + "}"), "biome desert/dunes"));
|
||||
assertEquals("Cannot read settings iris:moss/cover under \"iris:moss/cover\" in biome desert/dunes: write the settings as an object,"
|
||||
() -> decoder.decode(Target.BIOME, new JSONObject("{\"mossCover\": " + bare + "}"), "biome desert/dunes"));
|
||||
assertEquals("Cannot read settings iris:moss/cover under \"mossCover\" in biome desert/dunes: write the settings as an object,"
|
||||
+ " {\"<option>\": ...}", refused.getMessage());
|
||||
}
|
||||
}
|
||||
@@ -264,7 +264,7 @@ public class ModuleSettingsDecoderTest {
|
||||
}).create();
|
||||
ModuleSettingsDecoder withIrisGson = new ModuleSettingsDecoder(pack.catalog(), packFolder, () -> iris);
|
||||
|
||||
List<IrisPosition> marks = withIrisGson.decode(Target.BIOME, new JSONObject("{\"iris:moss/marks\": {\"marks\": [\"a\", \"b\"]}}"), "biome desert/dunes")
|
||||
List<IrisPosition> marks = withIrisGson.decode(Target.BIOME, new JSONObject("{\"mossMarks\": {\"marks\": [\"a\", \"b\"]}}"), "biome desert/dunes")
|
||||
.find(MarksSettings.class).orElseThrow().marks;
|
||||
|
||||
assertEquals(List.of(marked, marked), marks);
|
||||
|
||||
+4
-4
@@ -77,7 +77,7 @@ public class ObjectPlacementModuleSettingsTest {
|
||||
private LoadedPack pack;
|
||||
private Gson gson;
|
||||
|
||||
@Feature(id = "example:glow", name = "Glow", targets = Target.OBJECT_PLACEMENT)
|
||||
@Feature(id = "example:glow", name = "Glow", key = "glow", targets = Target.OBJECT_PLACEMENT)
|
||||
public static final class GlowSettings implements IrisFeature {
|
||||
private String block = "minecraft:glowstone";
|
||||
}
|
||||
@@ -130,7 +130,7 @@ public class ObjectPlacementModuleSettingsTest {
|
||||
|
||||
@Test
|
||||
public void decodesTheSettingsOfEveryNestedPlacement() {
|
||||
Holder holder = gson.fromJson("{\"objects\": [{\"place\": [\"tree\"], \"example:glow\": {\"block\": \"minecraft:sea_lantern\"}},"
|
||||
Holder holder = gson.fromJson("{\"objects\": [{\"place\": [\"tree\"], \"glow\": {\"block\": \"minecraft:sea_lantern\"}},"
|
||||
+ " {\"place\": [\"rock\"]}]}", Holder.class);
|
||||
|
||||
assertEquals("minecraft:sea_lantern", holder.objects.get(0).getModuleSettings().find(GlowSettings.class).orElseThrow().block);
|
||||
@@ -139,7 +139,7 @@ public class ObjectPlacementModuleSettingsTest {
|
||||
|
||||
@Test
|
||||
public void copiesOfAPlacementKeepItsSettings() {
|
||||
IrisObjectPlacement placement = gson.fromJson("{\"place\": [\"tree\"], \"example:glow\": {}}", IrisObjectPlacement.class);
|
||||
IrisObjectPlacement placement = gson.fromJson("{\"place\": [\"tree\"], \"glow\": {}}", IrisObjectPlacement.class);
|
||||
|
||||
assertSame(placement.getModuleSettings(), placement.toPlacement("rock").getModuleSettings());
|
||||
}
|
||||
@@ -149,7 +149,7 @@ public class ObjectPlacementModuleSettingsTest {
|
||||
IObjectPlacer declaring = placer();
|
||||
IObjectPlacer silent = placer();
|
||||
|
||||
place(gson.fromJson("{\"example:glow\": {}}", IrisObjectPlacement.class), declaring);
|
||||
place(gson.fromJson("{\"glow\": {}}", IrisObjectPlacement.class), declaring);
|
||||
place(gson.fromJson("{}", IrisObjectPlacement.class), silent);
|
||||
|
||||
verify(declaring).set(eq(0), eq(SURFACE_Y + 1), eq(0), any());
|
||||
|
||||
@@ -0,0 +1,164 @@
|
||||
/*
|
||||
* Iris is a World Generator for Minecraft Servers
|
||||
* Copyright (c) 2026 Arcane Arts (Volmit Software)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package art.arcane.iris.core.modules;
|
||||
|
||||
import art.arcane.iris.builtin.decorant.DecorantSettings;
|
||||
import art.arcane.iris.builtin.decorant.DecorationPart;
|
||||
import art.arcane.iris.builtin.decorant.Decorator;
|
||||
import art.arcane.iris.builtin.deposit.DepositGenerator;
|
||||
import art.arcane.iris.builtin.deposit.DepositSettings;
|
||||
import art.arcane.iris.builtin.structure.StructureSettings;
|
||||
import art.arcane.volmlib.util.json.JSONObject;
|
||||
import com.google.gson.Gson;
|
||||
import com.volmit.FeatureAttachment.Target;
|
||||
import com.volmit.block.BlockSpec;
|
||||
import com.volmit.host.LoadedPack;
|
||||
import com.volmit.host.ModuleHost;
|
||||
import com.volmit.vanilla.StructureTerrain;
|
||||
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.net.URISyntaxException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* Files of the overworld pack exactly as they were before the port (copied from the pack backup, with the snippets they
|
||||
* name), decoded by the built-in modules. Packs written for Iris before the port load unchanged: {@code deposits} and
|
||||
* {@code decorators} are lists, {@code importedStructures} an object, under the keys the modules declare.
|
||||
*/
|
||||
public class PackBeforeThePortDecodingTest {
|
||||
private static final String PACK = "/art/arcane/iris/core/modules/pack-before-the-port";
|
||||
|
||||
@Rule
|
||||
public TemporaryFolder folder = new TemporaryFolder();
|
||||
|
||||
private Path packFolder;
|
||||
private LoadedPack pack;
|
||||
private ModuleSettingsDecoder decoder;
|
||||
|
||||
@Before
|
||||
public void loadBuiltIns() throws IOException, URISyntaxException {
|
||||
packFolder = Path.of(PackBeforeThePortDecodingTest.class.getResource(PACK).toURI());
|
||||
pack = LoadedPack.load(packFolder, ModuleHost.of(IrisModuleHost.builtInModules())
|
||||
.reservingFields(ModuleTargets.reservedFields())
|
||||
.describingHostTypesIn(IrisModuleHost.HOST_TYPE_PACKAGE).copyingJarsTo(folder.newFolder("copies").toPath()));
|
||||
decoder = new ModuleSettingsDecoder(pack.catalog(), packFolder, Gson::new);
|
||||
}
|
||||
|
||||
@After
|
||||
public void closePack() {
|
||||
pack.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void aBiomeWithDecoratorsAndDepositsReadsBothUnderTheirOldKeys() throws IOException {
|
||||
JSONObject biome = file("biomes/mesa/red.json");
|
||||
|
||||
ModuleSettings settings = decoder.decode(Target.BIOME, biome, "biome mesa/red");
|
||||
|
||||
List<Decorator> decorators = settings.find(DecorantSettings.class).orElseThrow().decorators();
|
||||
assertEquals(biome.getJSONArray("decorators").length(), decorators.size());
|
||||
assertEquals(3, decorators.size());
|
||||
assertEquals(0.009, decorators.getFirst().chance(), 0);
|
||||
assertEquals(Map.of("face", "floor", "powered", "false", "facing", "east"), decorators.getFirst().palette().getFirst().data());
|
||||
assertEquals(DecorationPart.NONE, decorators.get(1).partOf());
|
||||
assertEquals(0.01, decorators.get(2).chance(), 0);
|
||||
assertEquals("minecraft:tall_dry_grass", decorators.get(2).palette().getFirst().block());
|
||||
|
||||
List<DepositGenerator> deposits = settings.find(DepositSettings.class).orElseThrow().generators();
|
||||
assertEquals(1, deposits.size());
|
||||
assertEquals(100, deposits.getFirst().minHeight());
|
||||
assertEquals(150, deposits.getFirst().maxHeight());
|
||||
assertEquals(List.of(BlockSpec.of("minecraft:netherrack")), deposits.getFirst().palette());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void aBiomeWithManyDecoratorsAndDepositsReadsEveryEntry() throws IOException {
|
||||
JSONObject biome = file("biomes/temperate/roughplains.json");
|
||||
|
||||
ModuleSettings settings = decoder.decode(Target.BIOME, biome, "biome temperate/roughplains");
|
||||
|
||||
assertEquals(biome.getJSONArray("decorators").length(), settings.find(DecorantSettings.class).orElseThrow().decorators().size());
|
||||
List<DepositGenerator> deposits = settings.find(DepositSettings.class).orElseThrow().generators();
|
||||
assertEquals(biome.getJSONArray("deposits").length(), deposits.size());
|
||||
assertEquals(List.of("temperate/roughplains"), deposits.getFirst().includedBiomes());
|
||||
assertEquals(List.of(BlockSpec.of("minecraft:coal_ore")), deposits.getFirst().palette());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void aRegionReadsItsDeposits() throws IOException {
|
||||
JSONObject region = file("regions/magnetics.json");
|
||||
|
||||
List<DepositGenerator> deposits = decoder.decode(Target.REGION, region, "region magnetics")
|
||||
.find(DepositSettings.class).orElseThrow().generators();
|
||||
|
||||
assertEquals(8, deposits.size());
|
||||
assertEquals(region.getJSONArray("deposits").length(), deposits.size());
|
||||
assertEquals(224, deposits.getFirst().minHeight());
|
||||
assertEquals(736, deposits.getFirst().maxHeight());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void theDimensionReadsItsDepositsAndItsImportedStructures() throws IOException {
|
||||
JSONObject dimension = file("dimensions/overworld.json");
|
||||
|
||||
ModuleSettings settings = decoder.decode(Target.DIMENSION, dimension, "dimension overworld");
|
||||
|
||||
List<DepositGenerator> deposits = settings.find(DepositSettings.class).orElseThrow().generators();
|
||||
assertEquals(23, deposits.size());
|
||||
assertEquals(List.of(BlockSpec.of("minecraft:granite")), deposits.getFirst().palette());
|
||||
StructureSettings structures = settings.find(StructureSettings.class).orElseThrow();
|
||||
assertTrue(structures.datapackOverrides());
|
||||
assertEquals(4, structures.adjustments().size());
|
||||
assertEquals(List.of("minecraft:stronghold"), structures.adjustments().getFirst().match());
|
||||
assertEquals(StructureTerrain.Mode.ENCASE, structures.adjustments().getFirst().terrain().orElseThrow().mode());
|
||||
assertEquals(-64, structures.adjustments().get(1).yShift());
|
||||
assertTrue(structures.adjustments().get(2).preserveSourceY());
|
||||
assertEquals(2, structures.adjustments().get(3).stilt().orElseThrow().maxDepth());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void everyTopLevelKeyOfTheseFilesIsAFieldOfIrisOrAKeyOfAModule() throws IOException {
|
||||
Map<String, Target> files = Map.of("biomes/mesa/red.json", Target.BIOME, "biomes/temperate/roughplains.json", Target.BIOME,
|
||||
"regions/magnetics.json", Target.REGION, "dimensions/overworld.json", Target.DIMENSION);
|
||||
|
||||
for (Map.Entry<String, Target> file : files.entrySet()) {
|
||||
Set<String> unknown = new TreeSet<>(file(file.getKey()).keySet());
|
||||
unknown.removeAll(ModuleTargets.reservedFields().get(file.getValue()));
|
||||
unknown.removeAll(decoder.keys(file.getValue()));
|
||||
assertEquals(file.getKey(), Set.of(), unknown);
|
||||
}
|
||||
}
|
||||
|
||||
private JSONObject file(String name) throws IOException {
|
||||
return new JSONObject(Files.readString(packFolder.resolve(name)));
|
||||
}
|
||||
}
|
||||
+23
-10
@@ -26,16 +26,17 @@ import java.util.Optional;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertSame;
|
||||
import static org.junit.Assert.assertThrows;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* The dimension's {@code importedStructures} as tools/migrate-pack.py writes it, {@code "iris:structure": {...}}, read into
|
||||
* The dimension's {@code importedStructures} as packs have always written it, read into
|
||||
* {@link StructureSettings}, IrisApi types only, with the values Iris's own classes read from the same JSON.
|
||||
*/
|
||||
public class StructureSettingsDecodingTest {
|
||||
/** The overworld test pack's dimensions/overworld.json member after migration, plus the options it leaves out. */
|
||||
/** The overworld test pack's dimensions/overworld.json member, plus the options it leaves out. */
|
||||
private static final String MIGRATED_DIMENSION = """
|
||||
{"iris:structure": {
|
||||
{"importedStructures": {
|
||||
"datapackOverrides": true,
|
||||
"adjustments": [
|
||||
{
|
||||
@@ -105,8 +106,8 @@ public class StructureSettingsDecodingTest {
|
||||
|
||||
@Test
|
||||
public void fitsBecomeTheIrisClassesTheOldDimensionFieldReadFromTheSameJson() {
|
||||
JSONObject json = new JSONObject(MIGRATED_DIMENSION).getJSONObject("iris:structure").getJSONArray("adjustments").getJSONObject(0);
|
||||
JSONObject stiltJson = new JSONObject(MIGRATED_DIMENSION).getJSONObject("iris:structure").getJSONArray("adjustments")
|
||||
JSONObject json = new JSONObject(MIGRATED_DIMENSION).getJSONObject("importedStructures").getJSONArray("adjustments").getJSONObject(0);
|
||||
JSONObject stiltJson = new JSONObject(MIGRATED_DIMENSION).getJSONObject("importedStructures").getJSONArray("adjustments")
|
||||
.getJSONObject(3).getJSONObject("stilt");
|
||||
List<StructureAdjustment> adjustments = settings(MIGRATED_DIMENSION).adjustments();
|
||||
Gson gson = new Gson();
|
||||
@@ -118,18 +119,30 @@ public class StructureSettingsDecodingTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void theOldKeyIsNotSettingsAndEmptySettingsHaveTheDefaults() {
|
||||
JSONObject old = new JSONObject("{\"importedStructures\": {\"disabled\": [\"minecraft:village\"]}}");
|
||||
public void theFeatureIdIsNotAKeyAndEmptySettingsHaveTheDefaults() {
|
||||
JSONObject byId = new JSONObject("{\"iris:structure\": {\"disabled\": [\"minecraft:village\"]}}");
|
||||
|
||||
assertSame(ModuleSettings.NONE, decoder.decode(Target.DIMENSION, old, "dimension overworld"));
|
||||
assertFalse(decoder.keys(Target.DIMENSION).contains("importedStructures"));
|
||||
StructureSettings defaults = settings("{\"iris:structure\": {}}");
|
||||
assertSame(ModuleSettings.NONE, decoder.decode(Target.DIMENSION, byId, "dimension overworld"));
|
||||
assertTrue(decoder.keys(Target.DIMENSION).contains("importedStructures"));
|
||||
assertFalse(decoder.keys(Target.DIMENSION).contains("iris:structure"));
|
||||
StructureSettings defaults = settings("{\"importedStructures\": {}}");
|
||||
assertTrue(defaults.datapackOverrides());
|
||||
assertEquals(List.of(), defaults.disabled());
|
||||
assertEquals(List.of(), defaults.adjustments());
|
||||
assertEquals(0, defaults.undergroundYShift());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void aListUnderImportedStructuresIsRefused() {
|
||||
JSONObject list = new JSONObject("{\"importedStructures\": [\"minecraft:village\"]}");
|
||||
|
||||
IllegalArgumentException refused = assertThrows(IllegalArgumentException.class,
|
||||
() -> decoder.decode(Target.DIMENSION, list, "dimension overworld"));
|
||||
|
||||
assertEquals("Cannot read settings iris:structure under \"importedStructures\" in dimension overworld:"
|
||||
+ " write the settings as an object, {\"<option>\": ...}", refused.getMessage());
|
||||
}
|
||||
|
||||
private StructureSettings settings(String dimensionJson) {
|
||||
return decoder.decode(Target.DIMENSION, new JSONObject(dimensionJson), "dimension overworld")
|
||||
.find(StructureSettings.class).orElseThrow();
|
||||
|
||||
@@ -76,7 +76,7 @@ public class PackBiomeLayerValidatorTest {
|
||||
@Test
|
||||
public void rejectsEmbeddedDecoratorWithoutPalette() throws Exception {
|
||||
File pack = temporaryFolder.newFolder("pack");
|
||||
write(pack, "biomes/bad.json", "{\"iris:decorant\":{\"decorators\":[{\"block\":\"minecraft:magma_block\"}]}}");
|
||||
write(pack, "biomes/bad.json", "{\"decorators\":[{\"block\":\"minecraft:magma_block\"}]}");
|
||||
|
||||
assertEquals(List.of(
|
||||
"Biome 'bad' decorators[0] must declare a non-empty palette."
|
||||
@@ -99,7 +99,7 @@ public class PackBiomeLayerValidatorTest {
|
||||
public void acceptsDecoratorPalettesAndSnippetReferences() throws Exception {
|
||||
File pack = temporaryFolder.newFolder("pack");
|
||||
write(pack, "biomes/ok.json",
|
||||
"{\"iris:decorant\":{\"decorators\":[{\"palette\":[{\"block\":\"minecraft:magma_block\"}]},\"snippet/decorator/ok\"]}}");
|
||||
"{\"decorators\":[{\"palette\":[{\"block\":\"minecraft:magma_block\"}]},\"snippet/decorator/ok\"]}");
|
||||
write(pack, "snippet/decorator/ok.json",
|
||||
"{\"palette\":[{\"block\":\"minecraft:magma_block\"}]}");
|
||||
|
||||
|
||||
+6
-6
@@ -116,8 +116,8 @@ public class PackValidatorImportedStructurePolicyTest {
|
||||
List<String> errors = validate(policy);
|
||||
|
||||
assertEquals(2, errors.size());
|
||||
assertTrue(errors.get(0).contains("iris:structure.mode is not supported"));
|
||||
assertTrue(errors.get(1).contains("iris:structure.enabled is not supported"));
|
||||
assertTrue(errors.get(0).contains("importedStructures.mode is not supported"));
|
||||
assertTrue(errors.get(1).contains("importedStructures.enabled is not supported"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -156,8 +156,8 @@ public class PackValidatorImportedStructurePolicyTest {
|
||||
|
||||
List<String> nullErrors = new ArrayList<>();
|
||||
PackDimensionValidator.validateImportedStructurePolicy("overworld",
|
||||
new JSONObject().put("iris:structure", JSONObject.NULL), nullErrors, new ArrayList<>());
|
||||
assertEquals(List.of("Dimension 'overworld' iris:structure must be an object."), nullErrors);
|
||||
new JSONObject().put("importedStructures", JSONObject.NULL), nullErrors, new ArrayList<>());
|
||||
assertEquals(List.of("Dimension 'overworld' importedStructures must be an object."), nullErrors);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -170,7 +170,7 @@ public class PackValidatorImportedStructurePolicyTest {
|
||||
List<String> warnings = new ArrayList<>();
|
||||
|
||||
PackDimensionValidator.validateImportedStructurePolicy("overworld",
|
||||
new JSONObject().put("iris:structure", policy), errors, warnings);
|
||||
new JSONObject().put("importedStructures", policy), errors, warnings);
|
||||
|
||||
assertTrue(errors.toString(), errors.isEmpty());
|
||||
assertEquals(1, warnings.size());
|
||||
@@ -181,7 +181,7 @@ public class PackValidatorImportedStructurePolicyTest {
|
||||
private List<String> validate(JSONObject policy) {
|
||||
List<String> errors = new ArrayList<>();
|
||||
PackDimensionValidator.validateImportedStructurePolicy("overworld",
|
||||
new JSONObject().put("iris:structure", policy), errors, new ArrayList<>());
|
||||
new JSONObject().put("importedStructures", policy), errors, new ArrayList<>());
|
||||
return errors;
|
||||
}
|
||||
}
|
||||
@@ -494,7 +494,7 @@ public class PackValidatorStructureGraphTest {
|
||||
List<String> errors = validateWithJigsawMetadata(pack, 80, 0, 129, 0);
|
||||
|
||||
assertTrue(errors.toString(), errors.stream().anyMatch(message ->
|
||||
message.contains("iris:structure.adjustments[0]")
|
||||
message.contains("importedStructures.adjustments[0]")
|
||||
&& message.contains("129-block maximum start element")
|
||||
&& message.contains("128-block (8-chunk)")));
|
||||
}
|
||||
@@ -502,7 +502,7 @@ public class PackValidatorStructureGraphTest {
|
||||
@Test
|
||||
public void lastMatchingNaturalTerrainAdjustmentControlsEnvelopeValidation() throws Exception {
|
||||
File pack = temporaryFolder.newFolder("natural-adjustment-precedence");
|
||||
write(pack, "dimensions/main.json", "{\"iris:structure\":{\"adjustments\":["
|
||||
write(pack, "dimensions/main.json", "{\"importedStructures\":{\"adjustments\":["
|
||||
+ "{\"match\":[\"test:structure\"],\"terrain\":{\"mode\":\"ENCASE\","
|
||||
+ "\"horizontalPadding\":128}},"
|
||||
+ "{\"match\":[\"test:structure\"],\"terrain\":{\"mode\":\"PRESERVE\"}}]}}}");
|
||||
@@ -823,7 +823,7 @@ public class PackValidatorStructureGraphTest {
|
||||
private File nativeAdjustmentEnvelopePack(String name, String match, String mode,
|
||||
int horizontalPadding) throws Exception {
|
||||
File pack = temporaryFolder.newFolder(name);
|
||||
write(pack, "dimensions/main.json", "{\"iris:structure\":{\"adjustments\":[{"
|
||||
write(pack, "dimensions/main.json", "{\"importedStructures\":{\"adjustments\":[{"
|
||||
+ "\"match\":[\"" + match + "\"],\"terrain\":{\"mode\":\"" + mode
|
||||
+ "\",\"horizontalPadding\":" + horizontalPadding + "}}]}}}");
|
||||
return pack;
|
||||
|
||||
+2
-2
@@ -39,7 +39,7 @@ public class PackValidatorStructureTerrainBackendTest {
|
||||
pack, Set.of("dimension_city", "forest_tower", "plains_farm"), false, errors);
|
||||
|
||||
String suffix = ".terrain.mode " + mode + " cannot target editable Iris structures; "
|
||||
+ "use nativeStructures or iris:structure adjustments for native terrain preparation.";
|
||||
+ "use nativeStructures or importedStructures.adjustments for native terrain preparation.";
|
||||
assertEquals(List.of(
|
||||
"Dimension 'main' structures[0]" + suffix,
|
||||
"Region 'forest' structures[0]" + suffix,
|
||||
@@ -87,7 +87,7 @@ public class PackValidatorStructureTerrainBackendTest {
|
||||
List<String> errors = new ArrayList<>();
|
||||
|
||||
PackDimensionValidator.validateImportedStructurePolicy(
|
||||
"overworld", new JSONObject().put("iris:structure", policy),
|
||||
"overworld", new JSONObject().put("importedStructures", policy),
|
||||
errors, new ArrayList<>());
|
||||
|
||||
assertTrue(mode + ": " + errors, errors.isEmpty());
|
||||
|
||||
@@ -26,6 +26,7 @@ import art.arcane.iris.core.loader.IrisRegistrant;
|
||||
import art.arcane.iris.core.loader.ResourceLoader;
|
||||
import art.arcane.iris.engine.object.material.IrisBlockData;
|
||||
import art.arcane.iris.engine.object.noise.expression.IrisExpression;
|
||||
import art.arcane.iris.engine.object.world.biome.IrisBiome;
|
||||
import art.arcane.iris.engine.object.world.dimension.IrisDimension;
|
||||
import art.arcane.iris.engine.object.structure.IrisStructure;
|
||||
import art.arcane.iris.engine.object.structure.IrisStructurePlacement;
|
||||
@@ -215,11 +216,31 @@ public class SchemaBuilderParityTest {
|
||||
assertFalse(properties.has("scale"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void settingsThatAreOneOptionsValueRenderThatValueAsTheKeysOnlyShape() throws IOException {
|
||||
JSONObject properties = rootProperties(new SchemaBuilder(IrisBiome.class, structureSchemaData()).construct());
|
||||
|
||||
JSONObject deposits = properties.getJSONObject("deposits");
|
||||
JSONObject decorators = properties.getJSONObject("decorators");
|
||||
assertEquals("array", deposits.getString("type"));
|
||||
assertEquals("array", decorators.getString("type"));
|
||||
assertEquals(1, decorators.getInt("minItems"));
|
||||
assertEquals("module-art-arcane-iris-builtin-deposit-depositgenerator", definitionKey(deposits.getJSONObject("items")));
|
||||
assertEquals("module-art-arcane-iris-builtin-decorant-decorator", definitionKey(decorators.getJSONObject("items")));
|
||||
for (JSONObject rooted : List.of(deposits, decorators)) {
|
||||
assertFalse("one shape, no alternatives", rooted.has("anyOf"));
|
||||
assertFalse("the list is the value, not a reference to an object of options", rooted.has("$ref"));
|
||||
assertTrue(rooted.getString("description").contains("from module"));
|
||||
}
|
||||
assertFalse("the feature ids are not keys", properties.has("iris:deposit"));
|
||||
assertFalse("the feature ids are not keys", properties.has("iris:decorant"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void structureSettingsRenderTheirFitsWithIrisDefinitionsOfTheSameJson() throws IOException {
|
||||
JSONObject schema = new SchemaBuilder(IrisDimension.class, structureSchemaData(structureSettingsSchema())).construct();
|
||||
JSONObject definitions = schema.getJSONObject("definitions");
|
||||
JSONObject settings = definitions.getJSONObject(definitionKey(rootProperties(schema).getJSONObject("iris:structure")))
|
||||
JSONObject settings = definitions.getJSONObject(definitionKey(rootProperties(schema).getJSONObject("importedStructures")))
|
||||
.getJSONObject("properties");
|
||||
JSONObject adjustment = definitions.getJSONObject(definitionKey(settings.getJSONObject("adjustments").getJSONObject("items")))
|
||||
.getJSONObject("properties");
|
||||
@@ -251,7 +272,7 @@ public class SchemaBuilderParityTest {
|
||||
public void structureSettingsAcceptPrefixesWhereTheyMatchFamilies() throws IOException {
|
||||
JSONObject schema = new SchemaBuilder(IrisDimension.class, structureSchemaData(structureSettingsSchema())).construct();
|
||||
JSONObject definitions = schema.getJSONObject("definitions");
|
||||
JSONObject settings = definitions.getJSONObject(definitionKey(rootProperties(schema).getJSONObject("iris:structure")))
|
||||
JSONObject settings = definitions.getJSONObject(definitionKey(rootProperties(schema).getJSONObject("importedStructures")))
|
||||
.getJSONObject("properties");
|
||||
JSONObject adjustment = definitions.getJSONObject(definitionKey(settings.getJSONObject("adjustments").getJSONObject("items")))
|
||||
.getJSONObject("properties");
|
||||
@@ -324,15 +345,15 @@ public class SchemaBuilderParityTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void objectPlacementSchemaRendersModuleSettingsUnderTheirId() throws IOException {
|
||||
public void objectPlacementSchemaRendersModuleSettingsUnderTheirKey() throws IOException {
|
||||
JSONObject schema = new SchemaBuilder(IrisObjectPlacement.class, structureSchemaData(glowModuleSchema())).construct();
|
||||
JSONObject properties = rootProperties(schema);
|
||||
String definition = definitionKey(properties.getJSONObject("example:glow"));
|
||||
String definition = definitionKey(properties.getJSONObject("glow"));
|
||||
JSONObject level = schema.getJSONObject("definitions").getJSONObject(definition)
|
||||
.getJSONObject("properties").getJSONObject("level");
|
||||
|
||||
assertFalse("no alias property", properties.has("glow"));
|
||||
assertFalse("settings are their object only, no bare value form", properties.getJSONObject("example:glow").has("anyOf"));
|
||||
assertFalse("the feature id is not a key", properties.has("example:glow"));
|
||||
assertFalse("settings are their object only, no bare value form", properties.getJSONObject("glow").has("anyOf"));
|
||||
assertFalse("no alias constraint", schema.has("allOf"));
|
||||
assertEquals("integer", level.getString("type"));
|
||||
assertEquals(1, level.getInt("minimum"));
|
||||
@@ -345,7 +366,7 @@ public class SchemaBuilderParityTest {
|
||||
public void moduleSettingsHoldingApiValueTypesUseIrisDescriptionsOfTheSameJson() throws IOException {
|
||||
JSONObject schema = new SchemaBuilder(IrisObjectPlacement.class, structureSchemaData(tintModuleSchema())).construct();
|
||||
JSONObject definitions = schema.getJSONObject("definitions");
|
||||
JSONObject tint = definitions.getJSONObject(definitionKey(rootProperties(schema).getJSONObject("example:tint")))
|
||||
JSONObject tint = definitions.getJSONObject(definitionKey(rootProperties(schema).getJSONObject("tint")))
|
||||
.getJSONObject("properties");
|
||||
|
||||
assertEquals("@MinItems renders as minItems", 1, tint.getJSONObject("palette").getInt("minItems"));
|
||||
@@ -785,7 +806,7 @@ public class SchemaBuilderParityTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Feature(id = "example:tint", name = "Tint", targets = Target.OBJECT_PLACEMENT)
|
||||
@Feature(id = "example:tint", name = "Tint", key = "tint", targets = Target.OBJECT_PLACEMENT)
|
||||
public static final class TintSettings implements IrisFeature {
|
||||
@com.volmit.config.MinItems(1)
|
||||
private List<com.volmit.block.BlockSpec> palette = List.of();
|
||||
@@ -813,7 +834,7 @@ public class SchemaBuilderParityTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Feature(id = "example:glow", name = "Glow", targets = Target.OBJECT_PLACEMENT)
|
||||
@Feature(id = "example:glow", name = "Glow", key = "glow", targets = Target.OBJECT_PLACEMENT)
|
||||
public static final class GlowSettings implements IrisFeature {
|
||||
@com.volmit.config.Desc("How bright the glow is")
|
||||
@com.volmit.config.MinNumber(1)
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@ public class NativeStructureGenerationPolicyTest {
|
||||
@Test
|
||||
public void generationStatusMessagesAreSharedAcrossPlatforms() {
|
||||
assertEquals(
|
||||
"Native structure minecraft:village_plains is disabled by this dimension's iris:structure settings or a module of the pack.",
|
||||
"Native structure minecraft:village_plains is disabled by this dimension's importedStructures settings or a module of the pack.",
|
||||
NativeStructureGenerationPolicy.generationStatusMessage(
|
||||
"minecraft:village_plains", NativeStructureGenerationStatus.DISABLED_BY_PACK));
|
||||
assertEquals(
|
||||
|
||||
+107
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"name": "Mesa Red",
|
||||
"color": "#963D16",
|
||||
"rarity": 1,
|
||||
"derivative": "minecraft:windswept_savanna",
|
||||
"vanillaDerivative": "minecraft:badlands",
|
||||
"generators": [
|
||||
{
|
||||
"min": 50,
|
||||
"max": 70,
|
||||
"generator": "highplains"
|
||||
},
|
||||
{
|
||||
"min": 70,
|
||||
"max": 110,
|
||||
"generator": "mountain"
|
||||
}
|
||||
],
|
||||
"wall": {
|
||||
"style": {"style": "NOWHERE"},
|
||||
"palette": [
|
||||
{"block": "minecraft:pink_terracotta"},
|
||||
{"block": "minecraft:red_terracotta"},
|
||||
{"block": "minecraft:terracotta"},
|
||||
{"block": "minecraft:light_gray_terracotta"},
|
||||
{"block": "minecraft:brown_terracotta"}
|
||||
]
|
||||
},
|
||||
"layers": [
|
||||
{
|
||||
"minHeight": 2,
|
||||
"maxHeight": 3,
|
||||
"style": {"style": "STATIC"},
|
||||
"palette": [{"block": "minecraft:pink_terracotta"}]
|
||||
},
|
||||
{
|
||||
"minHeight": 2,
|
||||
"maxHeight": 3,
|
||||
"style": {"style": "STATIC"},
|
||||
"palette": [{"block": "minecraft:red_terracotta"}]
|
||||
},
|
||||
{
|
||||
"minHeight": 2,
|
||||
"maxHeight": 3,
|
||||
"style": {"style": "STATIC"},
|
||||
"palette": [{"block": "minecraft:terracotta"}]
|
||||
},
|
||||
{
|
||||
"minHeight": 2,
|
||||
"maxHeight": 3,
|
||||
"style": {"style": "STATIC"},
|
||||
"palette": [{"block": "minecraft:light_gray_terracotta"}]
|
||||
},
|
||||
{
|
||||
"minHeight": 2,
|
||||
"maxHeight": 3,
|
||||
"style": {"style": "STATIC"},
|
||||
"palette": [{"block": "minecraft:brown_terracotta"}]
|
||||
}
|
||||
],
|
||||
|
||||
"decorators": [
|
||||
{
|
||||
"chance": 0.009,
|
||||
"variance": {"style": "STATIC"},
|
||||
"zoom": 0.3,
|
||||
"palette": [
|
||||
{
|
||||
"data": {
|
||||
"face": "floor",
|
||||
"powered": false,
|
||||
"facing": "east"
|
||||
},
|
||||
"block": "minecraft:stone_button"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"face": "floor",
|
||||
"powered": false,
|
||||
"facing": "south"
|
||||
},
|
||||
"block": "minecraft:stone_button"
|
||||
}
|
||||
],
|
||||
"style": {"style": "STATIC"}
|
||||
},
|
||||
{
|
||||
"chance": 0.01,
|
||||
"variance": {"style": "STATIC"},
|
||||
"zoom": 0.3,
|
||||
"palette": [{"block": "minecraft:dead_bush"}],
|
||||
"style": {"style": "STATIC"}
|
||||
},
|
||||
"snippet/decorator/dry_grass"
|
||||
],
|
||||
"lockLayers": true,
|
||||
"deposits": [{
|
||||
"minHeight": 100,
|
||||
"maxPerChunk": 3,
|
||||
"maxHeight": 150,
|
||||
"minPerChunk": 0,
|
||||
"maxSize": 7,
|
||||
"minSize": 3,
|
||||
"palette": [{"block": "minecraft:netherrack"}],
|
||||
"varience": 3
|
||||
}]
|
||||
}
|
||||
+554
@@ -0,0 +1,554 @@
|
||||
{
|
||||
"name": "Rough Plains",
|
||||
"derivative": "minecraft:plains",
|
||||
"vanillaDerivative": "minecraft:plains",
|
||||
"layers": [{
|
||||
"palette": [{"block": "minecraft:grass_block"}],
|
||||
"maxHeight": 1,
|
||||
"slopeCondition": {"maximumSlope": 4}
|
||||
}],
|
||||
"wall": {"palette": [
|
||||
{"block": "minecraft:andesite"},
|
||||
{"block": "minecraft:stone"},
|
||||
{"block": "minecraft:cobblestone"}
|
||||
]},
|
||||
"deposits": [
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 100,
|
||||
"maxPerChunk": 100,
|
||||
"minSize": 17,
|
||||
"maxSize": 17,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 0.65,
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": ["temperate/roughplains"],
|
||||
"palette": [{"block": "minecraft:coal_ore"}],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 220,
|
||||
"maxPerChunk": 220,
|
||||
"minSize": 9,
|
||||
"maxSize": 9,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": ["temperate/roughplains"],
|
||||
"palette": [{"block": "minecraft:iron_ore"}],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 32,
|
||||
"maxPerChunk": 32,
|
||||
"minSize": 10,
|
||||
"maxSize": 10,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": ["temperate/roughplains"],
|
||||
"palette": [{"block": "minecraft:copper_ore"}],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 8,
|
||||
"maxPerChunk": 10,
|
||||
"minSize": 9,
|
||||
"maxSize": 9,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 0.5,
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": ["temperate/roughplains"],
|
||||
"palette": [{"block": "minecraft:gold_ore"}],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 24,
|
||||
"maxPerChunk": 24,
|
||||
"minSize": 8,
|
||||
"maxSize": 8,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": ["temperate/roughplains"],
|
||||
"palette": [{"data": {"lit": false}, "block": "minecraft:redstone_ore"}],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 26,
|
||||
"maxPerChunk": 26,
|
||||
"minSize": 8,
|
||||
"maxSize": 8,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 0.5,
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": ["temperate/roughplains"],
|
||||
"palette": [{"block": "minecraft:diamond_ore"}],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 12,
|
||||
"maxPerChunk": 12,
|
||||
"minSize": 7,
|
||||
"maxSize": 7,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 1.0,
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": ["temperate/roughplains"],
|
||||
"palette": [{"block": "minecraft:lapis_ore"}],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate"
|
||||
]
|
||||
}
|
||||
],
|
||||
"objects": [{
|
||||
"place": [
|
||||
"trees/oak/antioch1",
|
||||
"trees/oak/antioch2",
|
||||
"trees/oak/antioch4",
|
||||
"trees/oak/antioch5",
|
||||
"trees/oak/antioch6",
|
||||
"trees/oak/antioch7",
|
||||
"trees/oak/antioch8",
|
||||
"trees/oak/antioch9",
|
||||
"trees/oak/antioch10",
|
||||
"trees/oak/antioch11",
|
||||
"trees/oak/antioch12",
|
||||
"trees/oak/antioch13",
|
||||
"trees/oak/troofed1",
|
||||
"trees/oak/troofed2",
|
||||
"trees/oak/troofed3",
|
||||
"trees/oak/troofed4",
|
||||
"trees/oak/troofed5",
|
||||
"trees/oak/troofed6",
|
||||
"trees/oak/troofed7",
|
||||
"trees/oak/troofed8",
|
||||
"trees/oak/troofed9",
|
||||
"trees/oak/troofed10"
|
||||
|
||||
|
||||
],
|
||||
"carvingSupport": "SURFACE_ONLY",
|
||||
"chance": 0.5,
|
||||
"mode": "CENTER_STILT",
|
||||
"stiltSettings":{"yMax": 4, "yRand": 1},
|
||||
|
||||
"rotation": {
|
||||
"yAxis": {
|
||||
"min": 0,
|
||||
"max": 270,
|
||||
"interval": 90,
|
||||
"enabled": true
|
||||
},
|
||||
"enabled": true
|
||||
},
|
||||
"edit": [{
|
||||
"find": [{"block": "minecraft:oak_leaves", "data": {}}],
|
||||
"chance": 0.005,
|
||||
|
||||
"replace": {
|
||||
"style": {
|
||||
"style": "PERLIN",
|
||||
"zoom": 0.25
|
||||
|
||||
|
||||
},
|
||||
"palette": [
|
||||
{"block": "minecraft:bee_nest"}
|
||||
]
|
||||
}
|
||||
}]
|
||||
|
||||
},
|
||||
{
|
||||
"place": [
|
||||
"trees/mixed/tredwood1",
|
||||
"trees/mixed/tredwood2",
|
||||
"trees/mixed/tredwood3",
|
||||
"trees/mixed/tredwood4",
|
||||
"trees/mixed/tredwood5",
|
||||
"trees/mixed/tredwood6",
|
||||
"trees/mixed/tredwood7",
|
||||
"trees/mixed/tredwood8",
|
||||
"trees/mixed/tredwood9",
|
||||
"trees/mixed/tredwood10"
|
||||
],
|
||||
"slopeCondition":{
|
||||
"maximumSlope": 2
|
||||
},
|
||||
"carvingSupport": "SURFACE_ONLY",
|
||||
"chance": 0.0025,
|
||||
"mode": "MIN_HEIGHT",
|
||||
"rotation": {
|
||||
"yAxis": {
|
||||
"min": 0,
|
||||
"max": 270,
|
||||
"interval": 90,
|
||||
"enabled": true
|
||||
},
|
||||
"enabled": true
|
||||
}}],
|
||||
|
||||
"decorators": [
|
||||
{
|
||||
"chance": 0.2,
|
||||
"variance": {
|
||||
"style": "CELLULAR",
|
||||
"zoom": 0.25,
|
||||
"fracture": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.2,
|
||||
"multiplier": 10
|
||||
}
|
||||
},
|
||||
"style": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.2,
|
||||
"fracture": {
|
||||
"style": "STATIC",
|
||||
"multiplier": 8
|
||||
}
|
||||
},
|
||||
"palette": [
|
||||
{"block": "minecraft:dandelion"},
|
||||
{"block": "minecraft:poppy"},
|
||||
{"block": "minecraft:blue_orchid"},
|
||||
{"block": "minecraft:allium"},
|
||||
{"block": "minecraft:azure_bluet"},
|
||||
{"block": "minecraft:red_tulip"},
|
||||
{"block": "minecraft:orange_tulip"},
|
||||
{"block": "minecraft:white_tulip"},
|
||||
{"block": "minecraft:pink_tulip"},
|
||||
{"block": "minecraft:oxeye_daisy"},
|
||||
{"block": "minecraft:cornflower"},
|
||||
{"block": "minecraft:lily_of_the_valley"}
|
||||
]
|
||||
},
|
||||
{
|
||||
"chance": 0.01,
|
||||
"palette": [{"block": "minecraft:tall_grass"}]
|
||||
},
|
||||
{
|
||||
"chance": 0.75,
|
||||
"palette": [{"block": "minecraft:short_grass"}]
|
||||
},
|
||||
{
|
||||
"stackMin": 1,
|
||||
"stackMax": 7,
|
||||
"chance": 0.025,
|
||||
"forcePlace": false,
|
||||
"variance": {"style": "STATIC"},
|
||||
"palette": [
|
||||
{
|
||||
"data": {
|
||||
"stage": 0,
|
||||
"age": 0,
|
||||
"leaves": "none"
|
||||
},
|
||||
"block": "minecraft:bamboo"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"stage": 1,
|
||||
"age": 0,
|
||||
"leaves": "none"
|
||||
},
|
||||
"block": "minecraft:bamboo"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"stage": 0,
|
||||
"age": 1,
|
||||
"leaves": "none"
|
||||
},
|
||||
"block": "minecraft:bamboo"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"stage": 1,
|
||||
"age": 1,
|
||||
"leaves": "none"
|
||||
},
|
||||
"block": "minecraft:bamboo"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"stage": 0,
|
||||
"age": 0,
|
||||
"leaves": "small"
|
||||
},
|
||||
"block": "minecraft:bamboo"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"stage": 1,
|
||||
"age": 0,
|
||||
"leaves": "small"
|
||||
},
|
||||
"block": "minecraft:bamboo"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"stage": 0,
|
||||
"age": 1,
|
||||
"leaves": "small"
|
||||
},
|
||||
"block": "minecraft:bamboo"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"stage": 1,
|
||||
"age": 1,
|
||||
"leaves": "small"
|
||||
},
|
||||
"block": "minecraft:bamboo"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"stage": 0,
|
||||
"age": 0,
|
||||
"leaves": "large"
|
||||
},
|
||||
"block": "minecraft:bamboo"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"stage": 1,
|
||||
"age": 0,
|
||||
"leaves": "large"
|
||||
},
|
||||
"block": "minecraft:bamboo"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"stage": 0,
|
||||
"age": 1,
|
||||
"leaves": "large"
|
||||
},
|
||||
"block": "minecraft:bamboo"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"stage": 1,
|
||||
"age": 1,
|
||||
"leaves": "large"
|
||||
},
|
||||
"block": "minecraft:bamboo"
|
||||
}
|
||||
],
|
||||
"style": {"style": "STATIC"}
|
||||
},
|
||||
"snippet/decorator/bush"
|
||||
],
|
||||
"floatingChildBiomes": [
|
||||
{
|
||||
"biome": "mushroom/forest",
|
||||
"rarity": 1,
|
||||
"footprintStyle": {
|
||||
"style": "CELLULAR",
|
||||
"zoom": 0.4,
|
||||
"fracture": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.18,
|
||||
"multiplier": 8
|
||||
}
|
||||
},
|
||||
"footprintThreshold": 0.6,
|
||||
"pickerStyle": {"style": "SIMPLEX", "zoom": 4.0},
|
||||
"altitudeStyle": {"style": "SIMPLEX", "zoom": 2.0},
|
||||
"minHeightAboveSurface": 95,
|
||||
"maxHeightAboveSurface": 170,
|
||||
"topShapeMode": "BIOME",
|
||||
"maxTopHeight": 32,
|
||||
"bottomStyle": {
|
||||
"style": "CELLULAR",
|
||||
"zoom": 0.3,
|
||||
"fracture": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.16,
|
||||
"multiplier": 5
|
||||
}
|
||||
},
|
||||
"bottomDepthMin": 0,
|
||||
"bottomDepthMax": 5,
|
||||
"bottomExponent": 0.9,
|
||||
"maxThickness": 72,
|
||||
"wallWarpStyle": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.25,
|
||||
"fracture": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.14,
|
||||
"multiplier": 4
|
||||
}
|
||||
},
|
||||
"wallWarpAmplitude": 10.0,
|
||||
"carveStyle": {
|
||||
"style": "CELLULAR",
|
||||
"zoom": 0.3,
|
||||
"fracture": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.14,
|
||||
"multiplier": 3
|
||||
}
|
||||
},
|
||||
"carveThreshold": 0.75,
|
||||
"inheritDecorators": true,
|
||||
"inheritObjects": true,
|
||||
"objectShrinkFactor": 0.5
|
||||
},
|
||||
{
|
||||
"biome": "tropical/wilds",
|
||||
"rarity": 1,
|
||||
"footprintStyle": {
|
||||
"style": "CELLULAR_IRIS",
|
||||
"zoom": 0.35,
|
||||
"fracture": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.16,
|
||||
"multiplier": 8
|
||||
}
|
||||
},
|
||||
"footprintThreshold": 0.62,
|
||||
"pickerStyle": {"style": "SIMPLEX", "zoom": 4.0},
|
||||
"altitudeStyle": {"style": "SIMPLEX", "zoom": 2.0},
|
||||
"minHeightAboveSurface": 35,
|
||||
"maxHeightAboveSurface": 170,
|
||||
"topShapeMode": "BIOME",
|
||||
"maxTopHeight": 64,
|
||||
"bottomStyle": {
|
||||
"style": "NOWHERE",
|
||||
"zoom": 0.25,
|
||||
"fracture": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.16,
|
||||
"multiplier": 4
|
||||
}
|
||||
},
|
||||
"bottomDepthMin": 0,
|
||||
"bottomDepthMax": 5,
|
||||
"bottomExponent": 1.8,
|
||||
"maxThickness": 112,
|
||||
"wallWarpStyle": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.25,
|
||||
"fracture": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.14,
|
||||
"multiplier": 4
|
||||
}
|
||||
},
|
||||
"wallWarpAmplitude": 10.0,
|
||||
"carveStyle": {
|
||||
"style": "CELLULAR",
|
||||
"zoom": 0.3,
|
||||
"fracture": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.14,
|
||||
"multiplier": 3
|
||||
}
|
||||
},
|
||||
"carveThreshold": 0.7,
|
||||
"inheritDecorators": true,
|
||||
"inheritObjects": true,
|
||||
"objectShrinkFactor": 0.5
|
||||
}
|
||||
],
|
||||
"generators": [{
|
||||
"generator": "mountain",
|
||||
"max": 50,
|
||||
"min": -15
|
||||
}]
|
||||
}
|
||||
+946
@@ -0,0 +1,946 @@
|
||||
{
|
||||
"version": 4002,
|
||||
"name": "Overworld",
|
||||
"importedStructures": {
|
||||
"datapackOverrides": true,
|
||||
"adjustments": [
|
||||
{
|
||||
"match": [
|
||||
"minecraft:stronghold"
|
||||
],
|
||||
"yBand": {
|
||||
"min": -120,
|
||||
"max": -20
|
||||
},
|
||||
"terrain": {
|
||||
"mode": "ENCASE",
|
||||
"horizontalPadding": 4,
|
||||
"ceilingPadding": 4,
|
||||
"floorPadding": 4,
|
||||
"encasePalette": {
|
||||
"zoom": 1,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:stone_bricks",
|
||||
"weight": 6
|
||||
},
|
||||
{
|
||||
"block": "minecraft:mossy_stone_bricks",
|
||||
"weight": 2
|
||||
},
|
||||
{
|
||||
"block": "minecraft:cracked_stone_bricks",
|
||||
"weight": 2
|
||||
},
|
||||
{
|
||||
"block": "minecraft:cobblestone",
|
||||
"weight": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": [
|
||||
"minecraft:trial_chambers"
|
||||
],
|
||||
"yShift": -64
|
||||
},
|
||||
{
|
||||
"match": [
|
||||
"minecraft:mineshaft"
|
||||
],
|
||||
"preserveSourceY": true
|
||||
},
|
||||
{
|
||||
"match": [
|
||||
"minecraft:village"
|
||||
],
|
||||
"stilt": {
|
||||
"maxDepth": 2,
|
||||
"palette": {
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:dirt"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"structures": [
|
||||
{
|
||||
"nativeStructures": [
|
||||
{
|
||||
"structure": "minecraft:ancient_city"
|
||||
}
|
||||
],
|
||||
"placementId": "ancient-city-native",
|
||||
"nativeSuppression": "REPLACE_SOURCE",
|
||||
"underground": true,
|
||||
"terrain": {
|
||||
"mode": "FORCE_CARVE",
|
||||
"horizontalPadding": 14,
|
||||
"ceilingPadding": 12,
|
||||
"floorPadding": 0,
|
||||
"shape": "ERODED",
|
||||
"erosionStrength": 1.0,
|
||||
"erosionFrequency": 0.05
|
||||
},
|
||||
"stilt": {
|
||||
"maxDepth": 768,
|
||||
"spacing": 1,
|
||||
"palette": {
|
||||
"style": {
|
||||
"style": "STATIC"
|
||||
},
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:deepslate_bricks",
|
||||
"weight": 6
|
||||
},
|
||||
{
|
||||
"block": "minecraft:cracked_deepslate_bricks",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"block": "minecraft:deepslate_tiles",
|
||||
"weight": 2
|
||||
},
|
||||
{
|
||||
"block": "minecraft:cracked_deepslate_tiles",
|
||||
"weight": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"minHeight": -220,
|
||||
"maxHeight": -220,
|
||||
"distribution": "RANDOM_SPREAD",
|
||||
"spacing": 64,
|
||||
"separation": 5,
|
||||
"salt": 42069
|
||||
}
|
||||
],
|
||||
"fullbright": false,
|
||||
"upperDimension": "",
|
||||
"upperDimensionGap": 32,
|
||||
"upperDimensionCarving": false,
|
||||
"upperDimensionObjects": false,
|
||||
"environment": "NORMAL",
|
||||
"dimensionAngleDeg": 69,
|
||||
"fluidHeight": 50,
|
||||
"continentZoom": 1,
|
||||
"continentalStyle": {
|
||||
"style": "NOWHERE_CELLULAR",
|
||||
"fracture": {
|
||||
"style": "FRACTAL_SMOKE",
|
||||
"axialFracturing": true,
|
||||
"multiplier": 1,
|
||||
"fracture": {
|
||||
"style": "STATIC",
|
||||
"multiplier": 1,
|
||||
"axialFracturing": true
|
||||
}
|
||||
},
|
||||
"axialFracturing": true,
|
||||
"zoom": 6
|
||||
},
|
||||
"logicalHeight": 512,
|
||||
"dimensionHeight": {
|
||||
"max": 512,
|
||||
"min": -256
|
||||
},
|
||||
"landChance": 0.69,
|
||||
"regionStyle": {
|
||||
"style": "CELLULAR_IRIS_DOUBLE",
|
||||
"axialFracturing": true,
|
||||
"fracture": {
|
||||
"axialFracturing": true,
|
||||
"multiplier": 9,
|
||||
"style": "FRACTAL_WATER",
|
||||
"zoom": 0.15,
|
||||
"fracture": {
|
||||
"style": "STATIC",
|
||||
"multiplier": 1,
|
||||
"axialFracturing": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"regionZoom": 16.15,
|
||||
"regions": [
|
||||
"frozen",
|
||||
"hot",
|
||||
"terralost",
|
||||
"mushroom",
|
||||
"forests",
|
||||
"tundra",
|
||||
"magnetics",
|
||||
"temperate",
|
||||
"estranged",
|
||||
"tropical",
|
||||
"swamp",
|
||||
"prismatics"
|
||||
],
|
||||
"seaBiomeStyle": {
|
||||
"style": "SIMPLEX",
|
||||
"axialFracturing": true
|
||||
},
|
||||
"landBiomeStyle": {
|
||||
"style": "NOWHERE_CELLULAR",
|
||||
"axialFracturing": true,
|
||||
"fracture": {
|
||||
"multiplier": 55,
|
||||
"axialFracturing": true,
|
||||
"style": "NOWHERE",
|
||||
"zoom": 0.15,
|
||||
"fracture": {
|
||||
"axialFracturing": true,
|
||||
"style": "STATIC",
|
||||
"multiplier": 4
|
||||
}
|
||||
}
|
||||
},
|
||||
"ores": [
|
||||
{
|
||||
"threshold": 1,
|
||||
"range": {
|
||||
"min": 0,
|
||||
"max": 0
|
||||
},
|
||||
"palette": {
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:bedrock"
|
||||
}
|
||||
]
|
||||
},
|
||||
"chanceStyle": {
|
||||
"style": "FLAT"
|
||||
}
|
||||
},
|
||||
{
|
||||
"threshold": 0.625,
|
||||
"range": {
|
||||
"min": 1,
|
||||
"max": 1
|
||||
},
|
||||
"palette": {
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:bedrock"
|
||||
}
|
||||
]
|
||||
},
|
||||
"chanceStyle": "snippet/style/bedrock"
|
||||
},
|
||||
{
|
||||
"threshold": 0.35,
|
||||
"range": {
|
||||
"min": 2,
|
||||
"max": 4
|
||||
},
|
||||
"palette": {
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:bedrock"
|
||||
}
|
||||
]
|
||||
},
|
||||
"chanceStyle": "snippet/style/bedrock"
|
||||
},
|
||||
{
|
||||
"threshold": 1,
|
||||
"range": {
|
||||
"min": 1,
|
||||
"max": 57
|
||||
},
|
||||
"palette": {
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:deepslate"
|
||||
}
|
||||
]
|
||||
},
|
||||
"chanceStyle": {
|
||||
"style": "FLAT"
|
||||
}
|
||||
},
|
||||
{
|
||||
"threshold": 0.874,
|
||||
"range": {
|
||||
"min": 58,
|
||||
"max": 58
|
||||
},
|
||||
"palette": {
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:deepslate"
|
||||
}
|
||||
]
|
||||
},
|
||||
"chanceStyle": "snippet/style/deepslate"
|
||||
},
|
||||
{
|
||||
"threshold": 0.75,
|
||||
"range": {
|
||||
"min": 59,
|
||||
"max": 59
|
||||
},
|
||||
"palette": {
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:deepslate"
|
||||
}
|
||||
]
|
||||
},
|
||||
"chanceStyle": "snippet/style/deepslate"
|
||||
},
|
||||
{
|
||||
"threshold": 0.625,
|
||||
"range": {
|
||||
"min": 60,
|
||||
"max": 60
|
||||
},
|
||||
"palette": {
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:deepslate"
|
||||
}
|
||||
]
|
||||
},
|
||||
"chanceStyle": "snippet/style/deepslate"
|
||||
},
|
||||
{
|
||||
"threshold": 0.5,
|
||||
"range": {
|
||||
"min": 61,
|
||||
"max": 61
|
||||
},
|
||||
"palette": {
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:deepslate"
|
||||
}
|
||||
]
|
||||
},
|
||||
"chanceStyle": "snippet/style/deepslate"
|
||||
},
|
||||
{
|
||||
"threshold": 0.375,
|
||||
"range": {
|
||||
"min": 62,
|
||||
"max": 62
|
||||
},
|
||||
"palette": {
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:deepslate"
|
||||
}
|
||||
]
|
||||
},
|
||||
"chanceStyle": "snippet/style/deepslate"
|
||||
},
|
||||
{
|
||||
"threshold": 0.25,
|
||||
"range": {
|
||||
"min": 63,
|
||||
"max": 63
|
||||
},
|
||||
"palette": {
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:deepslate"
|
||||
}
|
||||
]
|
||||
},
|
||||
"chanceStyle": "snippet/style/deepslate"
|
||||
},
|
||||
{
|
||||
"threshold": 0.125,
|
||||
"range": {
|
||||
"min": 64,
|
||||
"max": 64
|
||||
},
|
||||
"palette": {
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:deepslate"
|
||||
}
|
||||
]
|
||||
},
|
||||
"chanceStyle": "snippet/style/deepslate"
|
||||
}
|
||||
],
|
||||
"shoreBiomeStyle": {
|
||||
"style": "NOWHERE_CELLULAR"
|
||||
},
|
||||
"deposits": [
|
||||
{
|
||||
"minHeight": 19,
|
||||
"maxPerChunk": 8,
|
||||
"maxHeight": 390,
|
||||
"minPerChunk": 1,
|
||||
"minSize": 25,
|
||||
"maxSize": 25,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:granite"
|
||||
}
|
||||
],
|
||||
"varience": 2
|
||||
},
|
||||
{
|
||||
"minHeight": 19,
|
||||
"maxPerChunk": 8,
|
||||
"maxHeight": 310,
|
||||
"minPerChunk": 1,
|
||||
"minSize": 25,
|
||||
"maxSize": 25,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:andesite"
|
||||
}
|
||||
],
|
||||
"varience": 2
|
||||
},
|
||||
{
|
||||
"minHeight": 19,
|
||||
"maxPerChunk": 8,
|
||||
"maxHeight": 309,
|
||||
"minPerChunk": 1,
|
||||
"minSize": 25,
|
||||
"maxSize": 25,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:diorite"
|
||||
}
|
||||
],
|
||||
"varience": 2
|
||||
},
|
||||
{
|
||||
"minHeight": 19,
|
||||
"maxPerChunk": 8,
|
||||
"maxHeight": 389,
|
||||
"minPerChunk": 1,
|
||||
"minSize": 25,
|
||||
"maxSize": 25,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:gravel"
|
||||
}
|
||||
],
|
||||
"varience": 2
|
||||
},
|
||||
{
|
||||
"minHeight": 400,
|
||||
"maxHeight": 767,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 60,
|
||||
"maxPerChunk": 60,
|
||||
"minSize": 17,
|
||||
"maxSize": 17,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 0.3,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:coal_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 128,
|
||||
"maxHeight": 512,
|
||||
"heightDistribution": "TRIANGLE",
|
||||
"surfaceClearance": 1,
|
||||
"minPerChunk": 80,
|
||||
"maxPerChunk": 80,
|
||||
"minSize": 17,
|
||||
"maxSize": 17,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 0.65,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:coal_ore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 288,
|
||||
"maxHeight": 896,
|
||||
"heightDistribution": "TRIANGLE",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 180,
|
||||
"maxPerChunk": 180,
|
||||
"minSize": 9,
|
||||
"maxSize": 9,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:iron_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 80,
|
||||
"maxHeight": 240,
|
||||
"heightDistribution": "TRIANGLE",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 40,
|
||||
"maxPerChunk": 40,
|
||||
"minSize": 9,
|
||||
"maxSize": 9,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:iron_ore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 0,
|
||||
"maxHeight": 272,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 40,
|
||||
"maxPerChunk": 40,
|
||||
"minSize": 4,
|
||||
"maxSize": 4,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:iron_ore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 96,
|
||||
"maxHeight": 352,
|
||||
"heightDistribution": "TRIANGLE",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 64,
|
||||
"maxPerChunk": 64,
|
||||
"minSize": 10,
|
||||
"maxSize": 10,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"biomeScope": "CAVE",
|
||||
"excludedBiomes": [
|
||||
"carving/drip",
|
||||
"carving/drip-child",
|
||||
"carving/drip-lite",
|
||||
"carving/drip-lite-child"
|
||||
],
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:copper_ore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 96,
|
||||
"maxHeight": 352,
|
||||
"heightDistribution": "TRIANGLE",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 64,
|
||||
"maxPerChunk": 64,
|
||||
"minSize": 20,
|
||||
"maxSize": 20,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"biomeScope": "CAVE",
|
||||
"includedBiomes": [
|
||||
"carving/drip",
|
||||
"carving/drip-child",
|
||||
"carving/drip-lite",
|
||||
"carving/drip-lite-child"
|
||||
],
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:copper_ore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 0,
|
||||
"maxHeight": 192,
|
||||
"heightDistribution": "TRIANGLE",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 16,
|
||||
"maxPerChunk": 16,
|
||||
"minSize": 9,
|
||||
"maxSize": 9,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 0.5,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:gold_ore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 0,
|
||||
"maxHeight": 32,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 0,
|
||||
"maxPerChunk": 2,
|
||||
"minSize": 9,
|
||||
"maxSize": 9,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 0.5,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:gold_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 192,
|
||||
"maxHeight": 640,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 100,
|
||||
"maxPerChunk": 100,
|
||||
"minSize": 9,
|
||||
"maxSize": 9,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": [
|
||||
"minecraft:badlands",
|
||||
"minecraft:eroded_badlands",
|
||||
"minecraft:wooded_badlands"
|
||||
],
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:gold_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 0,
|
||||
"maxHeight": 158,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 16,
|
||||
"maxPerChunk": 16,
|
||||
"minSize": 8,
|
||||
"maxSize": 8,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"palette": [
|
||||
{
|
||||
"data": {
|
||||
"lit": false
|
||||
},
|
||||
"block": "minecraft:redstone_ore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": -64,
|
||||
"maxHeight": 64,
|
||||
"heightDistribution": "TRIANGLE",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 16,
|
||||
"maxPerChunk": 16,
|
||||
"minSize": 8,
|
||||
"maxSize": 8,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"palette": [
|
||||
{
|
||||
"data": {
|
||||
"lit": false
|
||||
},
|
||||
"block": "minecraft:redstone_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": -160,
|
||||
"maxHeight": 160,
|
||||
"heightDistribution": "TRIANGLE",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 28,
|
||||
"maxPerChunk": 28,
|
||||
"minSize": 4,
|
||||
"maxSize": 4,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 0.5,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:diamond_ore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 0,
|
||||
"maxHeight": 120,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 8,
|
||||
"maxPerChunk": 8,
|
||||
"minSize": 8,
|
||||
"maxSize": 8,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 0.5,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:diamond_ore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": -160,
|
||||
"maxHeight": 160,
|
||||
"heightDistribution": "TRIANGLE",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 4,
|
||||
"maxPerChunk": 4,
|
||||
"spawnChance": 0.1111111111111111,
|
||||
"minSize": 12,
|
||||
"maxSize": 12,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 0.7,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:diamond_ore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": -160,
|
||||
"maxHeight": 160,
|
||||
"heightDistribution": "TRIANGLE",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 16,
|
||||
"maxPerChunk": 16,
|
||||
"minSize": 8,
|
||||
"maxSize": 8,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 1.0,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:diamond_ore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 64,
|
||||
"maxHeight": 192,
|
||||
"heightDistribution": "TRIANGLE",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 8,
|
||||
"maxPerChunk": 8,
|
||||
"minSize": 7,
|
||||
"maxSize": 7,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:lapis_ore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 0,
|
||||
"maxHeight": 256,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 16,
|
||||
"maxPerChunk": 16,
|
||||
"minSize": 7,
|
||||
"maxSize": 7,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 1.0,
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:lapis_ore"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 96,
|
||||
"maxHeight": 1088,
|
||||
"heightDistribution": "TRIANGLE",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 200,
|
||||
"maxPerChunk": 200,
|
||||
"minSize": 3,
|
||||
"maxSize": 3,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": [
|
||||
"minecraft:cherry_grove",
|
||||
"minecraft:frozen_peaks",
|
||||
"minecraft:grove",
|
||||
"minecraft:jagged_peaks",
|
||||
"minecraft:meadow",
|
||||
"minecraft:snowy_slopes",
|
||||
"minecraft:stony_peaks",
|
||||
"minecraft:windswept_forest",
|
||||
"minecraft:windswept_gravelly_hills",
|
||||
"minecraft:windswept_hills"
|
||||
],
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:emerald_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff"
|
||||
]
|
||||
}
|
||||
],
|
||||
"caveBiomeStyle": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 2.6
|
||||
},
|
||||
"coordFractureZoom": 0.15,
|
||||
"preventLeafDecay": true,
|
||||
"useMantle": true,
|
||||
"carvingEnabled": true,
|
||||
"decorate": true,
|
||||
"loot": {
|
||||
"mode": "FALLBACK",
|
||||
"tables": [
|
||||
"global-clutter"
|
||||
]
|
||||
},
|
||||
"caveProfile": {
|
||||
"enabled": true,
|
||||
"verticalRange": {
|
||||
"min": 6,
|
||||
"max": 700
|
||||
},
|
||||
"baseDensityStyle": {
|
||||
"style": "PERLIN_IRIS",
|
||||
"zoom": 0.72
|
||||
},
|
||||
"detailDensityStyle": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.54
|
||||
},
|
||||
"warpStyle": {
|
||||
"style": "FRACTAL_WATER",
|
||||
"zoom": 0.5
|
||||
},
|
||||
"baseWeight": 0.9,
|
||||
"detailWeight": 0.11,
|
||||
"warpStrength": 0.24,
|
||||
"densityThreshold": {
|
||||
"min": -0.14,
|
||||
"max": -0.06,
|
||||
"style": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.74
|
||||
}
|
||||
},
|
||||
"thresholdBias": 0.14,
|
||||
"sampleStep": 3,
|
||||
"surfaceClearance": 5,
|
||||
"allowSurfaceBreak": true,
|
||||
"surfaceBreakStyle": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.88
|
||||
},
|
||||
"surfaceBreakNoiseThreshold": 0.6,
|
||||
"surfaceBreakDepth": 16,
|
||||
"surfaceBreakThresholdBoost": 0.1,
|
||||
"objectMinDepthBelowSurface": 14,
|
||||
"defaultObjectAnchor": "FLOOR",
|
||||
"defaultObjectPlaceMode": "ORGANIC_STILT",
|
||||
"anchorScanStep": 1,
|
||||
"anchorSearchAttempts": 12,
|
||||
"allowFluid": true,
|
||||
"fluidMinDepthBelowSurface": 20,
|
||||
"fluidRequiresFloor": true,
|
||||
"allowLava": true,
|
||||
"modules": [
|
||||
{
|
||||
"style": {
|
||||
"style": "SIMPLEX_VASCULAR",
|
||||
"zoom": 1.08
|
||||
},
|
||||
"weight": 0.08,
|
||||
"threshold": 0.03,
|
||||
"verticalRange": {
|
||||
"min": 24,
|
||||
"max": 660
|
||||
},
|
||||
"invert": false
|
||||
},
|
||||
{
|
||||
"style": {
|
||||
"style": "FRACTAL_FBM_SIMPLEX",
|
||||
"zoom": 0.24
|
||||
},
|
||||
"weight": 0.04,
|
||||
"threshold": 0.08,
|
||||
"verticalRange": {
|
||||
"min": 6,
|
||||
"max": 240
|
||||
},
|
||||
"invert": true
|
||||
}
|
||||
],
|
||||
"verticalEdgeFade": 24,
|
||||
"verticalEdgeFadeStrength": 0.18,
|
||||
"minCarveCells": 24,
|
||||
"recoveryThresholdBoost": 0.07
|
||||
},
|
||||
"carving": [
|
||||
{
|
||||
"id": "global-deepdark-band",
|
||||
"enabled": true,
|
||||
"biome": "carving/standard-deepdark",
|
||||
"worldYRange": {
|
||||
"min": -250,
|
||||
"max": -175
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
+487
@@ -0,0 +1,487 @@
|
||||
{
|
||||
"name": "The Magnetics",
|
||||
"color": "#7B9EC9",
|
||||
"rarity": 15,
|
||||
"landBiomes": [
|
||||
"magnetics/plains",
|
||||
"magnetics/frozen",
|
||||
"magnetics/dunes",
|
||||
"magnetics/mycelium",
|
||||
"magnetics/glass",
|
||||
"magnetics/noise"
|
||||
],
|
||||
"caveBiomes": [
|
||||
"carving/magnetic-hollows",
|
||||
"carving/flux-crystal-caverns",
|
||||
"carving/polarity-grotto"
|
||||
],
|
||||
"shoreBiomes": [
|
||||
"temperate/shore/beach",
|
||||
"ocean/shore/beach"
|
||||
],
|
||||
"seaBiomeZoom": 6,
|
||||
"seaBiomes": [
|
||||
"ocean/deep",
|
||||
"ocean/dark-depth-ocean",
|
||||
"temperate/sea/ocean",
|
||||
"temperate/sea/ocean-deep"
|
||||
],
|
||||
"landBiomeZoom": 3.5,
|
||||
"shoreBiomeZoom": 0.15,
|
||||
"shoreHeightMin": 1,
|
||||
"shoreHeightMax": 5.2,
|
||||
"shoreHeightZoom": 1.14,
|
||||
"deposits": [
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 100,
|
||||
"maxPerChunk": 100,
|
||||
"minSize": 17,
|
||||
"maxSize": 17,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 0.65,
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": [
|
||||
"magnetics/dunes",
|
||||
"magnetics/frozen",
|
||||
"magnetics/glass",
|
||||
"magnetics/mycelium",
|
||||
"magnetics/noise",
|
||||
"magnetics/plains"
|
||||
],
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:coal_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate",
|
||||
"minecraft:sandstone",
|
||||
"minecraft:smooth_sandstone",
|
||||
"minecraft:cut_sandstone",
|
||||
"minecraft:terracotta",
|
||||
"minecraft:calcite",
|
||||
"minecraft:quartz_block",
|
||||
"minecraft:smooth_quartz",
|
||||
"minecraft:glass",
|
||||
"minecraft:light_blue_stained_glass",
|
||||
"minecraft:tinted_glass",
|
||||
"minecraft:ice",
|
||||
"minecraft:packed_ice",
|
||||
"minecraft:blue_ice"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 220,
|
||||
"maxPerChunk": 220,
|
||||
"minSize": 9,
|
||||
"maxSize": 9,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": [
|
||||
"magnetics/dunes",
|
||||
"magnetics/frozen",
|
||||
"magnetics/glass",
|
||||
"magnetics/mycelium",
|
||||
"magnetics/noise",
|
||||
"magnetics/plains"
|
||||
],
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:iron_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate",
|
||||
"minecraft:sandstone",
|
||||
"minecraft:smooth_sandstone",
|
||||
"minecraft:cut_sandstone",
|
||||
"minecraft:terracotta",
|
||||
"minecraft:calcite",
|
||||
"minecraft:quartz_block",
|
||||
"minecraft:smooth_quartz",
|
||||
"minecraft:glass",
|
||||
"minecraft:light_blue_stained_glass",
|
||||
"minecraft:tinted_glass",
|
||||
"minecraft:ice",
|
||||
"minecraft:packed_ice",
|
||||
"minecraft:blue_ice"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 32,
|
||||
"maxPerChunk": 32,
|
||||
"minSize": 10,
|
||||
"maxSize": 10,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": [
|
||||
"magnetics/dunes",
|
||||
"magnetics/frozen",
|
||||
"magnetics/glass",
|
||||
"magnetics/mycelium",
|
||||
"magnetics/noise",
|
||||
"magnetics/plains"
|
||||
],
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:copper_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate",
|
||||
"minecraft:sandstone",
|
||||
"minecraft:smooth_sandstone",
|
||||
"minecraft:cut_sandstone",
|
||||
"minecraft:terracotta",
|
||||
"minecraft:calcite",
|
||||
"minecraft:quartz_block",
|
||||
"minecraft:smooth_quartz",
|
||||
"minecraft:glass",
|
||||
"minecraft:light_blue_stained_glass",
|
||||
"minecraft:tinted_glass",
|
||||
"minecraft:ice",
|
||||
"minecraft:packed_ice",
|
||||
"minecraft:blue_ice"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 8,
|
||||
"maxPerChunk": 10,
|
||||
"minSize": 9,
|
||||
"maxSize": 9,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 0.5,
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": [
|
||||
"magnetics/dunes",
|
||||
"magnetics/frozen",
|
||||
"magnetics/glass",
|
||||
"magnetics/mycelium",
|
||||
"magnetics/noise",
|
||||
"magnetics/plains"
|
||||
],
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:gold_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate",
|
||||
"minecraft:sandstone",
|
||||
"minecraft:smooth_sandstone",
|
||||
"minecraft:cut_sandstone",
|
||||
"minecraft:terracotta",
|
||||
"minecraft:calcite",
|
||||
"minecraft:quartz_block",
|
||||
"minecraft:smooth_quartz",
|
||||
"minecraft:glass",
|
||||
"minecraft:light_blue_stained_glass",
|
||||
"minecraft:tinted_glass",
|
||||
"minecraft:ice",
|
||||
"minecraft:packed_ice",
|
||||
"minecraft:blue_ice"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 24,
|
||||
"maxPerChunk": 24,
|
||||
"minSize": 8,
|
||||
"maxSize": 8,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": [
|
||||
"magnetics/dunes",
|
||||
"magnetics/frozen",
|
||||
"magnetics/glass",
|
||||
"magnetics/mycelium",
|
||||
"magnetics/noise",
|
||||
"magnetics/plains"
|
||||
],
|
||||
"palette": [
|
||||
{
|
||||
"data": {
|
||||
"lit": false
|
||||
},
|
||||
"block": "minecraft:redstone_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate",
|
||||
"minecraft:sandstone",
|
||||
"minecraft:smooth_sandstone",
|
||||
"minecraft:cut_sandstone",
|
||||
"minecraft:terracotta",
|
||||
"minecraft:calcite",
|
||||
"minecraft:quartz_block",
|
||||
"minecraft:smooth_quartz",
|
||||
"minecraft:glass",
|
||||
"minecraft:light_blue_stained_glass",
|
||||
"minecraft:tinted_glass",
|
||||
"minecraft:ice",
|
||||
"minecraft:packed_ice",
|
||||
"minecraft:blue_ice"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 26,
|
||||
"maxPerChunk": 26,
|
||||
"minSize": 8,
|
||||
"maxSize": 8,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 0.5,
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": [
|
||||
"magnetics/dunes",
|
||||
"magnetics/frozen",
|
||||
"magnetics/glass",
|
||||
"magnetics/mycelium",
|
||||
"magnetics/noise",
|
||||
"magnetics/plains"
|
||||
],
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:diamond_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate",
|
||||
"minecraft:sandstone",
|
||||
"minecraft:smooth_sandstone",
|
||||
"minecraft:cut_sandstone",
|
||||
"minecraft:terracotta",
|
||||
"minecraft:calcite",
|
||||
"minecraft:quartz_block",
|
||||
"minecraft:smooth_quartz",
|
||||
"minecraft:glass",
|
||||
"minecraft:light_blue_stained_glass",
|
||||
"minecraft:tinted_glass",
|
||||
"minecraft:ice",
|
||||
"minecraft:packed_ice",
|
||||
"minecraft:blue_ice"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "UNIFORM",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 12,
|
||||
"maxPerChunk": 12,
|
||||
"minSize": 7,
|
||||
"maxSize": 7,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"discardChanceOnAirExposure": 1.0,
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": [
|
||||
"magnetics/dunes",
|
||||
"magnetics/frozen",
|
||||
"magnetics/glass",
|
||||
"magnetics/mycelium",
|
||||
"magnetics/noise",
|
||||
"magnetics/plains"
|
||||
],
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:lapis_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate",
|
||||
"minecraft:sandstone",
|
||||
"minecraft:smooth_sandstone",
|
||||
"minecraft:cut_sandstone",
|
||||
"minecraft:terracotta",
|
||||
"minecraft:calcite",
|
||||
"minecraft:quartz_block",
|
||||
"minecraft:smooth_quartz",
|
||||
"minecraft:glass",
|
||||
"minecraft:light_blue_stained_glass",
|
||||
"minecraft:tinted_glass",
|
||||
"minecraft:ice",
|
||||
"minecraft:packed_ice",
|
||||
"minecraft:blue_ice"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minHeight": 224,
|
||||
"maxHeight": 736,
|
||||
"heightDistribution": "TRIANGLE",
|
||||
"placementScope": "ABOVE_TERRAIN",
|
||||
"surfaceClearance": 0,
|
||||
"minPerChunk": 96,
|
||||
"maxPerChunk": 96,
|
||||
"minSize": 3,
|
||||
"maxSize": 3,
|
||||
"shape": "VANILLA_ELLIPSOID",
|
||||
"biomeScope": "SURFACE",
|
||||
"includedBiomes": [
|
||||
"magnetics/frozen"
|
||||
],
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:emerald_ore"
|
||||
}
|
||||
],
|
||||
"replaceableBlocks": [
|
||||
"minecraft:stone",
|
||||
"minecraft:granite",
|
||||
"minecraft:diorite",
|
||||
"minecraft:andesite",
|
||||
"minecraft:deepslate",
|
||||
"minecraft:tuff",
|
||||
"minecraft:cobblestone",
|
||||
"minecraft:cobbled_deepslate",
|
||||
"minecraft:calcite",
|
||||
"minecraft:ice",
|
||||
"minecraft:packed_ice",
|
||||
"minecraft:blue_ice"
|
||||
]
|
||||
}
|
||||
],
|
||||
"loot": {
|
||||
"mode": "FALLBACK",
|
||||
"multiplier": 0.5,
|
||||
"tables": [
|
||||
"temperate/clutter",
|
||||
"cave/clutter"
|
||||
]
|
||||
},
|
||||
"caveProfile": {
|
||||
"enabled": true,
|
||||
"verticalRange": {
|
||||
"min": 6,
|
||||
"max": 100
|
||||
},
|
||||
"baseDensityStyle": {
|
||||
"style": "CELLULAR",
|
||||
"zoom": 0.78
|
||||
},
|
||||
"detailDensityStyle": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.32
|
||||
},
|
||||
"warpStyle": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.26
|
||||
},
|
||||
"baseWeight": 1.0,
|
||||
"detailWeight": 0.16,
|
||||
"warpStrength": 0.32,
|
||||
"densityThreshold": {
|
||||
"min": -0.08,
|
||||
"max": 0.02,
|
||||
"style": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.42
|
||||
}
|
||||
},
|
||||
"thresholdBias": 0.06,
|
||||
"sampleStep": 2,
|
||||
"surfaceClearance": 12,
|
||||
"allowSurfaceBreak": false,
|
||||
"surfaceBreakStyle": {
|
||||
"style": "SIMPLEX",
|
||||
"zoom": 0.88
|
||||
},
|
||||
"surfaceBreakNoiseThreshold": 0.99,
|
||||
"surfaceBreakDepth": 4,
|
||||
"surfaceBreakThresholdBoost": 0.02,
|
||||
"objectMinDepthBelowSurface": 14,
|
||||
"defaultObjectAnchor": "FLOOR",
|
||||
"defaultObjectPlaceMode": "ORGANIC_STILT",
|
||||
"anchorScanStep": 1,
|
||||
"anchorSearchAttempts": 12,
|
||||
"allowFluid": true,
|
||||
"fluidMinDepthBelowSurface": 20,
|
||||
"fluidRequiresFloor": true,
|
||||
"allowLava": true,
|
||||
"modules": []
|
||||
},
|
||||
"caveBiomeZoom": 3.3,
|
||||
"entitySpawners": [
|
||||
"temperate/cave",
|
||||
"temperate/hostile",
|
||||
"temperate/passive",
|
||||
"temperate/water"
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"chance": 0.03,
|
||||
"style": {
|
||||
"style": "CLOVER_HERMITE",
|
||||
"zoom": 0.52,
|
||||
"exponent": 2.5,
|
||||
"axialFracturing": true
|
||||
},
|
||||
"slopeCondition":{
|
||||
"maximumSlope": 5
|
||||
},
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:bush",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"block": "minecraft:air",
|
||||
"weight": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"chance": 0.01,
|
||||
"style": {
|
||||
"style": "CELLULAR",
|
||||
"zoom": 0.3,
|
||||
"exponent": 1.5,
|
||||
"axialFracturing": true,
|
||||
"fracture": {
|
||||
"multiplier": 55,
|
||||
"axialFracturing": true,
|
||||
"style": "NOWHERE",
|
||||
"zoom": 0.15,
|
||||
"fracture": {
|
||||
"axialFracturing": true,
|
||||
"style": "STATIC",
|
||||
"multiplier": 18
|
||||
}
|
||||
}
|
||||
},
|
||||
"slopeCondition":{
|
||||
"maximumSlope": 5
|
||||
},
|
||||
"palette": [
|
||||
{
|
||||
"block": "minecraft:tall_dry_grass",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"block": "minecraft:short_dry_grass",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"block": "minecraft:air",
|
||||
"weight": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"style": "STATIC"
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"style": "STATIC"
|
||||
}
|
||||
Reference in new issue
Block a user