Skip to content

Commit

Permalink
added more vine generation to caverns
Browse files Browse the repository at this point in the history
  • Loading branch information
NewJumper committed Dec 18, 2023
1 parent 3a7ba3b commit 8950ff9
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// 1.20.1 2023-12-17T18:33:18.5679473 Registries
// 1.20.1 2023-12-17T18:50:38.984071 Registries
65c8c67a4ec7ef0ce6846fb2f4d921cc6ceb02e2 data/deeperdarker/damage_type/bite.json
0b65c61bd1e5086d0f3685566cc6cecf6e324516 data/deeperdarker/damage_type/ring.json
67f8cd0621b1c3614da8c1910f6b7bcb61660293 data/deeperdarker/dimension_type/otherside.json
79433ff8e31419819bfaa02b8285e3764c6424ef data/deeperdarker/worldgen/biome/blooming_caverns.json
4523612d9b0aa53ecc28e9d913149df37dd3a604 data/deeperdarker/worldgen/biome/blooming_caverns.json
4491dd6887a8760b77f9a28406c3e4c0535b108d data/deeperdarker/worldgen/biome/deeplands.json
bd2c433caf3a3f7dfff3668a68dbdf56fa994df5 data/deeperdarker/worldgen/biome/echoing_forest.json
06d29b9291ed3a63be90750a8c6f182e0c168b7b data/deeperdarker/worldgen/biome/overcast_columns.json
Expand All @@ -15,6 +15,7 @@ ba29dfa84f2bebe688044c6e89b6c1d38dbaf0c6 data/deeperdarker/worldgen/configured_f
091c066d3e288c08e5d68a8aca7b3fb0e6e5639b data/deeperdarker/worldgen/configured_feature/gloomy_sculk_vegetation.json
4f5206ae11f51f053829cbd0c5d62109f53ad793 data/deeperdarker/worldgen/configured_feature/glowing_roots.json
86ad621deed16511aed2865b5f31110939075f3b data/deeperdarker/worldgen/configured_feature/glowing_vines.json
2579b818ff47b71ddd9e0c0315643c7ec298dd5e data/deeperdarker/worldgen/configured_feature/glowing_vines_short.json
0150a1b84d07f143eac3a8f3f6f434ac3565b489 data/deeperdarker/worldgen/configured_feature/ore_blooming_moss.json
1b6dbe9c2e15df01aa9a3c27beb46ccc4e91d5df data/deeperdarker/worldgen/configured_feature/ore_echo_soil.json
a7efce9cf36bea20e3226c6fcb962b41b78df3f6 data/deeperdarker/worldgen/configured_feature/ore_gloomslate_coal.json
Expand Down Expand Up @@ -69,6 +70,7 @@ f459d9a62a2daf59c22373d51311fb6764c13c8f data/deeperdarker/worldgen/placed_featu
5afa0f1278333d6805331dae70b7a50f028fa305 data/deeperdarker/worldgen/placed_feature/gloomy_sculk_vegetation.json
36a96483f11aa1dfae2eab1ac1340605a1c31bd4 data/deeperdarker/worldgen/placed_feature/glowing_roots.json
82087dbc271ee36b1aab5e52fdc3c1c1438f3386 data/deeperdarker/worldgen/placed_feature/glowing_vines.json
55de21b972747d0e0adfbec093daeded72ff66c4 data/deeperdarker/worldgen/placed_feature/glowing_vines_short.json
0ded2720cb77d9a0fc99c65aa1be1db78e14f358 data/deeperdarker/worldgen/placed_feature/infested_sculk.json
d8aa6278f0d32c85ea9460981c00a93e3d57728a data/deeperdarker/worldgen/placed_feature/magma.json
954da594c9e1ee91bf936fd5a22c3310e33be4fe data/deeperdarker/worldgen/placed_feature/sculk_coal.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"deeperdarker:blooming_plant",
"deeperdarker:glowing_roots",
"deeperdarker:glowing_vines",
"deeperdarker:glowing_vines_short",
"deeperdarker:sculk_vines_caverns"
]
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"type": "deeperdarker:vine",
"config": {
"doubleHeight": 0.1,
"height": {
"type": "minecraft:uniform",
"value": {
"max_inclusive": 5,
"min_inclusive": 1
}
},
"placeable": "deeperdarker:glowing_vine_placeable",
"plant": {
"Name": "deeperdarker:glowing_vines_plant",
"Properties": {
"berries": "false"
}
},
"reducedHeight": 0.1,
"vine": {
"Name": "deeperdarker:glowing_vines",
"Properties": {
"age": "0"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"feature": "deeperdarker:glowing_vines_short",
"placement": [
{
"type": "minecraft:count",
"count": 192
},
{
"type": "minecraft:in_square"
},
{
"type": "minecraft:height_range",
"height": {
"type": "minecraft:uniform",
"max_inclusive": {
"below_top": 0
},
"min_inclusive": {
"above_bottom": 0
}
}
},
{
"type": "minecraft:biome"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public class DDConfiguredFeatures {
public static final ResourceKey<ConfiguredFeature<?, ?>> SCULK_VINES = createKey("sculk_vines");
public static final ResourceKey<ConfiguredFeature<?, ?>> GLOWING_ROOTS = createKey("glowing_roots");
public static final ResourceKey<ConfiguredFeature<?, ?>> GLOWING_VINES = createKey("glowing_vines");
public static final ResourceKey<ConfiguredFeature<?, ?>> GLOWING_VINES_SHORT = createKey("glowing_vines_short");

public static final ResourceKey<ConfiguredFeature<?, ?>> SCULK_STONE_GENERATION = createKey("sculk_stone_generation");
public static final ResourceKey<ConfiguredFeature<?, ?>> SURFACE_SCULK_STONE = createKey("surface_sculk_stone");
Expand Down Expand Up @@ -118,8 +119,8 @@ public static void bootstrap(BootstapContext<ConfiguredFeature<?, ?>> context) {
FeatureUtils.register(context, SCULK_TENDRILS, DDFeatures.SCULK_TENDRILS.get());
FeatureUtils.register(context, SCULK_VINES, DDFeatures.VINE.get(), new VineFeatureConfiguration(DDBlocks.SCULK_VINES_PLANT.get().defaultBlockState(), DDBlocks.SCULK_VINES.get().defaultBlockState(), DDTags.Blocks.SCULK_VINE_PLACEABLE, UniformInt.of(1, 8), 0.2f, 0.25f));
FeatureUtils.register(context, GLOWING_ROOTS, DDFeatures.GLOWING_ROOTS.get());
FeatureUtils.register(context, GLOWING_VINES, DDFeatures.GLOWING_VINES.get());
FeatureUtils.register(context, GLOWING_VINES, DDFeatures.VINE.get(), new VineFeatureConfiguration(DDBlocks.GLOWING_VINES_PLANT.get().defaultBlockState(), DDBlocks.GLOWING_VINES.get().defaultBlockState(), DDTags.Blocks.GLOWING_VINE_PLACEABLE, UniformInt.of(6, 24), 0.12f, 0.125f));
FeatureUtils.register(context, GLOWING_VINES_SHORT, DDFeatures.VINE.get(), new VineFeatureConfiguration(DDBlocks.GLOWING_VINES_PLANT.get().defaultBlockState(), DDBlocks.GLOWING_VINES.get().defaultBlockState(), DDTags.Blocks.GLOWING_VINE_PLACEABLE, UniformInt.of(1, 5), 0.1f, 0.1f));

FeatureUtils.register(context, SCULK_STONE_GENERATION, Feature.SIMPLE_BLOCK, new SimpleBlockConfiguration(BlockStateProvider.simple(DDBlocks.SCULK_STONE.get())));
FeatureUtils.register(context, SURFACE_SCULK_STONE, Feature.VEGETATION_PATCH, new VegetationPatchConfiguration(DDTags.Blocks.SCULK_REPLACEABLES, new WeightedStateProvider(SimpleWeightedRandomList.<BlockState>builder().add(Blocks.SCULK.defaultBlockState(), 1).add(DDBlocks.SCULK_STONE.get().defaultBlockState(), 2)), PlacementUtils.inlinePlaced(configuredFeatures.getOrThrow(SCULK_STONE_GENERATION)), CaveSurface.FLOOR, ConstantInt.of(1), 0, 2, 0, UniformInt.of(1, 2), 0.3f));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class DDPlacedFeatures {
public static final ResourceKey<PlacedFeature> SCULK_VINES_CAVERNS = createKey("sculk_vines_caverns");
public static final ResourceKey<PlacedFeature> GLOWING_ROOTS = createKey("glowing_roots");
public static final ResourceKey<PlacedFeature> GLOWING_VINES = createKey("glowing_vines");
public static final ResourceKey<PlacedFeature> GLOWING_VINES_SHORT = createKey("glowing_vines_short");

public static final ResourceKey<PlacedFeature> SURFACE_SCULK_STONE = createKey("surface_sculk_stone");
public static final ResourceKey<PlacedFeature> SCULK_DECORATION = createKey("sculk_decoration");
Expand Down Expand Up @@ -78,6 +79,7 @@ public static void bootstrap(BootstapContext<PlacedFeature> context) {
PlacementUtils.register(context, SCULK_VINES_CAVERNS, features.getOrThrow(DDConfiguredFeatures.SCULK_VINES), countPlacement(56, PlacementUtils.FULL_RANGE));
PlacementUtils.register(context, GLOWING_ROOTS, features.getOrThrow(DDConfiguredFeatures.GLOWING_ROOTS), countPlacement(58, PlacementUtils.FULL_RANGE));
PlacementUtils.register(context, GLOWING_VINES, features.getOrThrow(DDConfiguredFeatures.GLOWING_VINES), countPlacement(64, PlacementUtils.FULL_RANGE));
PlacementUtils.register(context, GLOWING_VINES_SHORT, features.getOrThrow(DDConfiguredFeatures.GLOWING_VINES_SHORT), countPlacement(192, PlacementUtils.FULL_RANGE));

PlacementUtils.register(context, SURFACE_SCULK_STONE, features.getOrThrow(DDConfiguredFeatures.SURFACE_SCULK_STONE), countPlacement(55, PlacementUtils.RANGE_BOTTOM_TO_MAX_TERRAIN_HEIGHT));
PlacementUtils.register(context, SCULK_DECORATION, features.getOrThrow(DDConfiguredFeatures.SCULK_PATCH), countPlacement(86, PlacementUtils.RANGE_BOTTOM_TO_MAX_TERRAIN_HEIGHT));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ private static Biome bloomingCaverns(HolderGetter<PlacedFeature> placedFeatures,
biomeBuilder.addFeature(GenerationStep.Decoration.VEGETAL_DECORATION, DDPlacedFeatures.BLOOMING_PLANT);
biomeBuilder.addFeature(GenerationStep.Decoration.VEGETAL_DECORATION, DDPlacedFeatures.GLOWING_ROOTS);
biomeBuilder.addFeature(GenerationStep.Decoration.VEGETAL_DECORATION, DDPlacedFeatures.GLOWING_VINES);
biomeBuilder.addFeature(GenerationStep.Decoration.VEGETAL_DECORATION, DDPlacedFeatures.GLOWING_VINES_SHORT);
biomeBuilder.addFeature(GenerationStep.Decoration.VEGETAL_DECORATION, DDPlacedFeatures.SCULK_VINES_CAVERNS);
addSculkOres(biomeBuilder);

Expand Down

0 comments on commit 8950ff9

Please sign in to comment.