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 cd57a79 commit 6014ac8
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 16 deletions.
17 changes: 11 additions & 6 deletions src/main/java/net/dakotapride/garnished/CreateGarnished.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,13 @@ public void onInitialize() {

// Generation
BiomeModifications.addFeature(BiomeSelectors.tag(GarnishedTags.HAS_NUT_TREES_TAG),
GenerationStep.Decoration.VEGETAL_DECORATION, GarnishedFeatures.NUT_TREE_PLACED);
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),
GenerationStep.Decoration.VEGETAL_DECORATION, GarnishedFeatures.SEPIA_FUNGUS_PLACED);
BiomeModifications.addFeature(BiomeSelectors.tag(BiomeTags.IS_END),
GenerationStep.Decoration.VEGETAL_DECORATION, GarnishedFeatures.BARREN_ROOTS_PLACED);
BiomeModifications.addFeature(BiomeSelectors.tag(BiomeTags.IS_END),
GenerationStep.Decoration.VEGETAL_DECORATION, GarnishedFeatures.CHORUS_PLANT_PLACED);

BiomeModifications.addFeature(BiomeSelectors.includeByKey(Biomes.COLD_OCEAN),
GenerationStep.Decoration.VEGETAL_DECORATION, GarnishedFeatures.VERMILION_KELP_PLACED);
BiomeModifications.addFeature(BiomeSelectors.includeByKey(Biomes.COLD_OCEAN),
Expand All @@ -92,6 +89,14 @@ public void onInitialize() {
GenerationStep.Decoration.VEGETAL_DECORATION, GarnishedFeatures.DULSE_KELP_PLACED);
BiomeModifications.addFeature(BiomeSelectors.tag(GarnishedTags.HAS_REMNANT_TAG),
GenerationStep.Decoration.UNDERGROUND_ORES, GarnishedFeatures.REMNANT_PLACED);
BiomeModifications.addFeature(BiomeSelectors.includeByKey(Biomes.WARPED_FOREST),
GenerationStep.Decoration.VEGETAL_DECORATION, GarnishedFeatures.PANSOPHICAL_DAISY_PLACED);
BiomeModifications.addFeature(BiomeSelectors.includeByKey(Biomes.CRIMSON_FOREST),
GenerationStep.Decoration.VEGETAL_DECORATION, GarnishedFeatures.INCANDESCENT_LILY_PLACED);
BiomeModifications.addFeature(BiomeSelectors.tag(BiomeTags.IS_NETHER),
GenerationStep.Decoration.VEGETAL_DECORATION, GarnishedFeatures.SORROWFUL_LICHEN_PLACED);
BiomeModifications.addFeature(BiomeSelectors.includeByKey(Biomes.BASALT_DELTAS),
GenerationStep.Decoration.VEGETAL_DECORATION, GarnishedFeatures.SORROWFUL_LICHEN_BASALT_DELTAS_PLACED);

LOGGER.info("Create addon mod [{}] is loading alongside Create [{}]!", NAME, Create.VERSION);
LOGGER.info(EnvExecutor.unsafeRunForDist(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,21 @@ 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");

public static final ResourceKey<ConfiguredFeature<?, ?>> SOUL_SAND_VEGETATION_SPREAD_CONFIGURED = registerConfiguredKey("soul_sand_vegetation_spread");
public static final ResourceKey<ConfiguredFeature<?, ?>> WARPED_VEGETATION_SPREAD_CONFIGURED = registerConfiguredKey("warped_vegetation_spread");
public static final ResourceKey<ConfiguredFeature<?, ?>> CRIMSON_VEGETATION_SPREAD_CONFIGURED = registerConfiguredKey("crimson_vegetation_spread");

// public static final ResourceKey<ConfiguredFeature<?, ?>> SOUL_SAND_VEGETATION_SPREAD_CONFIGURED = registerConfiguredKey("soul_sand_vegetation_spread");

public static final ResourceKey<ConfiguredFeature<?, ?>> BARREN_ROOTS_CONFIGURED = registerConfiguredKey("patch_barren_roots_configured");
public static final ResourceKey<PlacedFeature> BARREN_ROOTS_PLACED = registerPlacedKey("patch_barren_roots_placed");
public static final ResourceKey<ConfiguredFeature<?, ?>> CHORUS_PLANT_CONFIGURED = registerConfiguredKey("patch_chorus_plant_configured");
public static final ResourceKey<PlacedFeature> CHORUS_PLANT_PLACED = registerPlacedKey("patch_chorus_plant_placed");

public static final ResourceKey<ConfiguredFeature<?, ?>> END_STONE_VEGETATION_SPREAD_CONFIGURED = registerConfiguredKey("end_stone_vegetation_spread");

public static final ResourceKey<ConfiguredFeature<?, ?>> END_STONE_VEGETATION_BONEMEAL_CONFIGURED = registerConfiguredKey("end_stone_vegetation_bonemeal");

public static final VermilionKelpFeature VERMILION_KELP_FEATURE = register("vermilion_kelp", new VermilionKelpFeature(NoneFeatureConfiguration.CODEC));
public static final DulseKelpFeature DULSE_KELP_FEATURE = register("dulse_kelp", new DulseKelpFeature(NoneFeatureConfiguration.CODEC));
public static final VoltaicSeagrassFeature VOLTAIC_SEAGRASS_FEATURE = register("voltaic_seagrass", new VoltaicSeagrassFeature(ProbabilityFeatureConfiguration.CODEC));
Expand All @@ -63,10 +62,10 @@ public class GarnishedFeatures {

public static final ResourceKey<PlacedFeature> REMNANT_PLACED = registerPlacedKey("ores_overworld");

public static final ResourceKey<ConfiguredFeature<?, ?>> PANSOPHICAL_DAISY = registerConfiguredKey("pansophical_daisy_configured");
public static final ResourceKey<ConfiguredFeature<?, ?>> INCANDESCENT_LILY = registerConfiguredKey("incandescent_lily_configured");
public static final ResourceKey<ConfiguredFeature<?, ?>> SORROWFUL_LICHEN = registerConfiguredKey("sorrowful_lichen_configured");
public static final ResourceKey<ConfiguredFeature<?, ?>> SORROWFUL_LICHEN_BASALT_DELTAS = registerConfiguredKey("sorrowful_lichen_basalt_deltas_configured");
public static final ResourceKey<PlacedFeature> PANSOPHICAL_DAISY_PLACED = registerPlacedKey("pansophical_daisy_placed");
public static final ResourceKey<PlacedFeature> INCANDESCENT_LILY_PLACED = registerPlacedKey("incandescent_lily_placed");
public static final ResourceKey<PlacedFeature> SORROWFUL_LICHEN_PLACED = registerPlacedKey("sorrowful_lichen_placed");
public static final ResourceKey<PlacedFeature> SORROWFUL_LICHEN_BASALT_DELTAS_PLACED = registerPlacedKey("sorrowful_lichen_basalt_deltas_placed");

public static ResourceLocation set(String id) {
return new ResourceLocation(CreateGarnished.ID, id);
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 6014ac8

Please sign in to comment.