From 7c7dfd56d6d706e6cb0d504d8bd1a0826ab0bb27 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Tue, 8 Jun 2021 16:08:53 +0200 Subject: [PATCH] Added notes --- source/behavior/features/cave carvers.md | 3 +++ source/behavior/features/growing_plant.md | 4 ++++ source/behavior/features/ore.md | 3 +++ source/behavior/features/rect.md | 2 ++ source/behavior/features/scatter.md | 5 +++++ source/behavior/features/vegeation.md | 15 +++++++++++++++ 6 files changed, 32 insertions(+) create mode 100644 source/behavior/features/cave carvers.md create mode 100644 source/behavior/features/growing_plant.md create mode 100644 source/behavior/features/ore.md create mode 100644 source/behavior/features/rect.md create mode 100644 source/behavior/features/scatter.md create mode 100644 source/behavior/features/vegeation.md diff --git a/source/behavior/features/cave carvers.md b/source/behavior/features/cave carvers.md new file mode 100644 index 00000000..de74d96b --- /dev/null +++ b/source/behavior/features/cave carvers.md @@ -0,0 +1,3 @@ +# Cave carvers + +`"width_modifier"` may also be a float/int. This will be true for the other 2 cave carvers, too. diff --git a/source/behavior/features/growing_plant.md b/source/behavior/features/growing_plant.md new file mode 100644 index 00000000..67b87cdc --- /dev/null +++ b/source/behavior/features/growing_plant.md @@ -0,0 +1,4 @@ +UP and DOWN can be lowercase or uppercase. +Head and body blocks must be arrays of arrays (see my code). +The first value of an array in the height distribution array or the value of the "age" property may be of the form `{"range_min": 1, "range_max": 13}` +or an integer. In other words, the schema is terrible with this one. Again, see my code. diff --git a/source/behavior/features/ore.md b/source/behavior/features/ore.md new file mode 100644 index 00000000..31b1d2e5 --- /dev/null +++ b/source/behavior/features/ore.md @@ -0,0 +1,3 @@ +# ore + +All references are just block descriptors. diff --git a/source/behavior/features/rect.md b/source/behavior/features/rect.md new file mode 100644 index 00000000..101738c9 --- /dev/null +++ b/source/behavior/features/rect.md @@ -0,0 +1,2 @@ +This feature is currently bugged and rather worthless. Presumably, ratio_of_empty_space will only be on [0, 1], but I can't promise this is true. The +area dimensions may also be restricted by maximum logical sizes, but I can't verify that, either. Otherwise, the schema is probably correct. diff --git a/source/behavior/features/scatter.md b/source/behavior/features/scatter.md new file mode 100644 index 00000000..446b3ff3 --- /dev/null +++ b/source/behavior/features/scatter.md @@ -0,0 +1,5 @@ +# Scatter features note + +The Mojang schema for these features is perfectly valid with a caveat: In scatter features, "x", "y", "z", "scatter_chance", and "iterations" can also +be numbers, as can the "extents" of any of the coordinates. Well, the extents are arrays, but their bounds can be numbers. Finally, note that anywhere +a block can be placed in features, a stateful notation can be used, as I describe here: https://wiki.bedrock.dev/concepts/biomes#block-types diff --git a/source/behavior/features/vegeation.md b/source/behavior/features/vegeation.md new file mode 100644 index 00000000..ed13045a --- /dev/null +++ b/source/behavior/features/vegeation.md @@ -0,0 +1,15 @@ +"replaceable_blocks": array of block references or stateful objects, required even if empty (but useless if empty), +"ground_block": block reference, required +"waterlogged": boolean, opt, defaults to false, + +"surface": string: "floor"|"ceiling", opt, defaults to "floor" +"horizontal_radius": int (maybe floats work but are probably truncated), required, must be 0 or greater for feature to work, but no error is thrown if +negative is given +"vertical_range": int >= 0, required, values below 0 clamped, +"depth": int, required, typically 1+, 0 acts like 1, negative values do have functionality, though: continue downward indefinitely until hitting an +invalid block or world boundary, +"extra_deep_block_chance": float, [0, 1], values above or below clamped, opt, defaults to 0 +"extra_edge_column_chance": float, [0, 1], values above or below clamped, opt, defaults to 0 + +"vegetation_feature": feature reference, required, doesn't do anything when vegetation_chance is 0 or less, +"vegetation_chance": float, [0, 1], values above or below clamped, opt, defaults to 0