From b2f33a0ca97477d4d46d32767dbabe03db8eaa8e Mon Sep 17 00:00:00 2001 From: Legopitstop <40679582+legopitstop@users.noreply.github.com> Date: Fri, 8 Aug 2025 03:19:57 -0500 Subject: [PATCH] Replaced surface_parameters with surface_builder (#362) --- .../format/components/surface_builder.json | 52 +++++++++++++++++++ .../format/components/surface_parameters.json | 40 -------------- .../biomes/format/minecraft.biome.json | 2 +- 3 files changed, 53 insertions(+), 41 deletions(-) create mode 100644 source/behavior/biomes/format/components/surface_builder.json delete mode 100644 source/behavior/biomes/format/components/surface_parameters.json diff --git a/source/behavior/biomes/format/components/surface_builder.json b/source/behavior/biomes/format/components/surface_builder.json new file mode 100644 index 00000000..e6b2b374 --- /dev/null +++ b/source/behavior/biomes/format/components/surface_builder.json @@ -0,0 +1,52 @@ +{ + "$id": "blockception.minecraft.behavior.biomes.minecraft.surface_builder", + "title": "Surface Builder", + "description": "Controls the materials used for terrain generation.", + "type": "object", + "required": ["builder"], + "additionalProperties": false, + "properties": { + "builder": { + "title": "Builder", + "description": "Controls the block types used for terrain generation.", + "type": "object", + "additionalProperties": false, + "required": ["type"], + "properties": { + "type": { + "enum": ["minecraft:overworld", "minecraft:frozen_ocean", "minecraft:mesa", "minecraft:swamp", "minecraft:capped", "minecraft:the_end"] + }, + "top_material": { + "title": "Top Material", + "description": "Controls the block type used for the surface of this biome.", + "$ref": "../../../../general/block/reference.json" + }, + "mid_material": { + "title": "Mid Material", + "description": "Controls the block type used in a layer below the surface of this biome.", + "$ref": "../../../../general/block/reference.json" + }, + "sea_floor_material": { + "title": "Sea Floor Material", + "description": "Controls the block type used as a floor for bodies of water in this biome.", + "$ref": "../../../../general/block/reference.json" + }, + "foundation_material": { + "title": "Foundation Material", + "description": "Controls the block type used deep underground in this biome.", + "$ref": "../../../../general/block/reference.json" + }, + "sea_material": { + "title": "Sea Material", + "description": "Controls the block type used for the bodies of water in this biome.", + "$ref": "../../../../general/block/reference.json" + }, + "sea_floor_depth": { + "title": "Sea Floor Depth", + "description": "Controls how deep below the world water level the floor should occur.", + "type": "integer" + } + } + } + } +} diff --git a/source/behavior/biomes/format/components/surface_parameters.json b/source/behavior/biomes/format/components/surface_parameters.json deleted file mode 100644 index 4b3f03a0..00000000 --- a/source/behavior/biomes/format/components/surface_parameters.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "$id": "blockception.minecraft.behavior.biomes.minecraft.surface_parameters", - "title": "Surface Parameters", - "description": "Control the blocks used for the default Minecraft Overworld terrain generation.", - "type": "object", - "required": ["foundation_material", "mid_material", "sea_floor_depth", "sea_floor_material", "sea_material", "top_material"], - "additionalProperties": false, - "properties": { - "top_material": { - "title": "Top Material", - "description": "Controls the block type used for the surface of this biome.", - "$ref": "../../../../general/block/reference.json" - }, - "mid_material": { - "title": "Mid Material", - "description": "Controls the block type used in a layer below the surface of this biome.", - "$ref": "../../../../general/block/reference.json" - }, - "sea_floor_material": { - "title": "Sea Floor Material", - "description": "Controls the block type used as a floor for bodies of water in this biome.", - "$ref": "../../../../general/block/reference.json" - }, - "foundation_material": { - "title": "Foundation Material", - "description": "Controls the block type used deep underground in this biome.", - "$ref": "../../../../general/block/reference.json" - }, - "sea_material": { - "title": "Sea Material", - "description": "Controls the block type used for the bodies of water in this biome.", - "$ref": "../../../../general/block/reference.json" - }, - "sea_floor_depth": { - "title": "Sea Floor Depth", - "description": "Controls how deep below the world water level the floor should occur.", - "type": "integer" - } - } -} diff --git a/source/behavior/biomes/format/minecraft.biome.json b/source/behavior/biomes/format/minecraft.biome.json index 299d4f5d..dc12526a 100644 --- a/source/behavior/biomes/format/minecraft.biome.json +++ b/source/behavior/biomes/format/minecraft.biome.json @@ -23,7 +23,7 @@ "minecraft:overworld_height": { "$ref": "./components/overworld_height.json" }, "minecraft:replace_biomes": { "$ref": "./components/replace_biomes.json" }, "minecraft:surface_material_adjustments": { "$ref": "./components/surface_material_adjustments.json" }, - "minecraft:surface_parameters": { "$ref": "./components/surface_parameters.json" }, + "minecraft:surface_builder": { "$ref": "./components/surface_builder.json" }, "minecraft:swamp_surface": { "$ref": "./components/swamp_surface.json" }, "minecraft:tags": { "$ref": "./components/tags.json" }, "minecraft:the_end_surface": { "$ref": "./components/the_end_surface.json" }