diff --git a/examples/bp/feature_rules/scatter_feature_placement.json b/examples/bp/feature_rules/scatter_feature_placement.json new file mode 100644 index 00000000..2540b042 --- /dev/null +++ b/examples/bp/feature_rules/scatter_feature_placement.json @@ -0,0 +1,22 @@ +{ + "format_version": "1.13.0", + + "minecraft:feature_rules": { + "description": { + "identifier": "scatter_and_singleblock_features:scatter_feature_placement", + "places_feature": "scatter_and_singleblock_features:scatter_feature" + }, + + "conditions": { + "placement_pass": "final_pass" + }, + + "distribution": { + "iterations": 1, + + "x": 0, + "z": 0, + "y": 90 + } + } +} \ No newline at end of file diff --git a/examples/bp/features/scatter_feature.json b/examples/bp/features/scatter_feature.json new file mode 100644 index 00000000..4262cc11 --- /dev/null +++ b/examples/bp/features/scatter_feature.json @@ -0,0 +1,31 @@ +{ + "format_version": "1.13.0", + + "minecraft:scatter_feature": { + "description": { + "identifier": "scatter_and_singleblock_features:scatter_feature" + }, + + "places_feature": "scatter_and_singleblock_features:scatter_feature_obsidian", + + "scatter_chance": { + "numerator": 2, + "denominator": 3 + }, + "iterations": "math.pow(2, 4)", + + "coordinate_eval_order": "zxy", + "project_input_to_floor": true, + "z": { + "distribution": "fixed_grid", + "extent": [10, 15], + "step_size": 2, + "grid_offset": 3 + }, + "x": { + "distribution": "gaussian", + "extent": ["(v.worldx < 12) * 2", 16] + }, + "y": 0 + } +} \ No newline at end of file diff --git a/examples/bp/features/scatter_feature_obsidian.json b/examples/bp/features/scatter_feature_obsidian.json new file mode 100644 index 00000000..bdc28eb3 --- /dev/null +++ b/examples/bp/features/scatter_feature_obsidian.json @@ -0,0 +1,19 @@ +{ + "format_version": "1.13.0", + + "minecraft:single_block_feature": { + "description": { + "identifier": "scatter_and_singleblock_features:scatter_feature_obsidian" + }, + + "places_block": "minecraft:obsidian", + + "enforce_placement_rules": true, + "enforce_survivability_rules": true, + "may_replace": ["minecraft:air"], + "may_attach_to": { + "min_sides_must_attach": 2, + "sides": ["minecraft:air"] + } + } +} \ No newline at end of file