Skip to content

Commit

Permalink
v2.0 - (hopefully) Fix some worldgen issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DakotaPride committed Sep 7, 2024
1 parent c313939 commit 7b387bb
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/dakotapride/garnished/CreateGarnished.java
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class GarnishedFeatures {
public static final ResourceKey<ConfiguredFeature<?, ?>> SEPIA_FUNGUS_CONFIGURED = registerConfiguredKey("patch_sepia_fungus_configured");
public static final ResourceKey<PlacedFeature> SEPIA_FUNGUS_PLACED = registerPlacedKey("patch_sepia_fungus_placed");
public static final ResourceKey<ConfiguredFeature<?, ?>> SEPIA_FUNGUS_TREE_CONFIGURED = registerConfiguredKey("sepia_fungus_tree_configured");
public static final ResourceKey<PlacedFeature> SEPIA_FUNGUS_TREE_PLACED = registerPlacedKey("sepia_fungus_tree_placed");
public static final ResourceKey<ConfiguredFeature<?, ?>> SOUL_ROOTS_CONFIGURED = registerConfiguredKey("patch_soul_roots_configured");
public static final ResourceKey<PlacedFeature> SOUL_ROOTS_PLACED = registerPlacedKey("patch_soul_roots_placed");

Expand Down
Original file line number Diff line number Diff line change
@@ -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
}
]
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7b387bb

Please sign in to comment.