diff --git a/src/main/java/net/dakotapride/garnished/CreateGarnished.java b/src/main/java/net/dakotapride/garnished/CreateGarnished.java index d9e65cfe..860d3aae 100644 --- a/src/main/java/net/dakotapride/garnished/CreateGarnished.java +++ b/src/main/java/net/dakotapride/garnished/CreateGarnished.java @@ -72,6 +72,8 @@ public void onInitialize() { // Generation BiomeModifications.addFeature(BiomeSelectors.tag(GarnishedTags.HAS_NUT_TREES_TAG), GenerationStep.Decoration.VEGETAL_DECORATION, GarnishedFeatures.NUT_TREE_PLACED); + BiomeModifications.addFeature(BiomeSelectors.includeByKey(Biomes.SOUL_SAND_VALLEY), + GenerationStep.Decoration.VEGETAL_DECORATION, GarnishedFeatures.SEPIA_FUNGUS_TREE_PLACED); BiomeModifications.addFeature(BiomeSelectors.includeByKey(Biomes.SOUL_SAND_VALLEY), GenerationStep.Decoration.VEGETAL_DECORATION, GarnishedFeatures.SOUL_ROOTS_PLACED); BiomeModifications.addFeature(BiomeSelectors.includeByKey(Biomes.SOUL_SAND_VALLEY), diff --git a/src/main/java/net/dakotapride/garnished/registry/GarnishedFeatures.java b/src/main/java/net/dakotapride/garnished/registry/GarnishedFeatures.java index d9a575ac..254e3bd6 100644 --- a/src/main/java/net/dakotapride/garnished/registry/GarnishedFeatures.java +++ b/src/main/java/net/dakotapride/garnished/registry/GarnishedFeatures.java @@ -35,6 +35,7 @@ public class GarnishedFeatures { public static final ResourceKey> SEPIA_FUNGUS_CONFIGURED = registerConfiguredKey("patch_sepia_fungus_configured"); public static final ResourceKey SEPIA_FUNGUS_PLACED = registerPlacedKey("patch_sepia_fungus_placed"); public static final ResourceKey> SEPIA_FUNGUS_TREE_CONFIGURED = registerConfiguredKey("sepia_fungus_tree_configured"); + public static final ResourceKey SEPIA_FUNGUS_TREE_PLACED = registerPlacedKey("sepia_fungus_tree_placed"); public static final ResourceKey> SOUL_ROOTS_CONFIGURED = registerConfiguredKey("patch_soul_roots_configured"); public static final ResourceKey SOUL_ROOTS_PLACED = registerPlacedKey("patch_soul_roots_placed"); diff --git a/src/main/resources/data/garnished/worldgen/placed_feature/sepia_fungus_tree_checked_placed.json b/src/main/resources/data/garnished/worldgen/placed_feature/sepia_fungus_tree_checked_placed.json new file mode 100644 index 00000000..3edb1785 --- /dev/null +++ b/src/main/resources/data/garnished/worldgen/placed_feature/sepia_fungus_tree_checked_placed.json @@ -0,0 +1,30 @@ +{ + "feature": "garnished:sepia_fungus_tree_configured", + "placement": [ + { + "type": "minecraft:block_predicate_filter", + "predicate": { + "type": "minecraft:would_survive", + "state": { + "Name": "garnished:sepia_fungus" + } + } + }, + { + "type": "minecraft:count", + "count": { + "type": "minecraft:weighted_list", + "distribution": [ + { + "weight": 3, + "data": 0 + }, + { + "weight": 1, + "data": 1 + } + ] + } + } + ] +} diff --git a/src/main/resources/data/garnished/worldgen/placed_feature/sepia_fungus_tree_placed.json b/src/main/resources/data/garnished/worldgen/placed_feature/sepia_fungus_tree_placed.json index caac1b48..8d597f35 100644 --- a/src/main/resources/data/garnished/worldgen/placed_feature/sepia_fungus_tree_placed.json +++ b/src/main/resources/data/garnished/worldgen/placed_feature/sepia_fungus_tree_placed.json @@ -2,8 +2,29 @@ "feature": "garnished:sepia_fungus_tree_configured", "placement": [ { - "type": "minecraft:count_on_every_layer", - "count": 2 + "type": "minecraft:count", + "count": { + "type": "minecraft:uniform", + "value": { + "min_inclusive": 12, + "max_inclusive": 24 + } + } + }, + { + "type": "minecraft:in_square" + }, + { + "type": "minecraft:height_range", + "height": { + "type": "minecraft:uniform", + "min_inclusive": { + "absolute": 40 + }, + "max_inclusive": { + "absolute": 120 + } + } }, { "type": "minecraft:biome"