Skip to content

Commit

Permalink
Mesoglea features no longer carve "fake caves," instead only generati…
Browse files Browse the repository at this point in the history
…ng in areas with Water or Air nearby.
  • Loading branch information
AViewFromTheTop committed Feb 4, 2025
1 parent 58830ca commit 03b9dde
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ hi
- Clovers generate in biomes in the `wilderwild:feature/has_clovers` tag.
- Fixed Wilder Wild's blocks having incorrect flammability values.
- Removed shallow pools from the Oasis biome as they weren't visually pleasing.
- Mesoglea features no longer carve "fake caves," instead only generating in areas with Water or Air nearby.

# Music
- Added three new tracks by Willow/pictochats_.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"type": "frozenlib:noise_path_feature",
"type": "frozenlib:requires_air_or_water_in_area_noise_path_feature",
"config": {
"air_search_distance": 2,
"is_3d": true,
"max_threshold": 0.5875,
"min_threshold": 0.5125,
"noise": 1,
"noise_scale": 0.025,
"only_place_when_exposed": false,
"placement_chance": 1.0,
"radius": 14,
"radius": 12,
"replaceable_blocks": "#wilderwild:feature/mesoglea_path_replaceable",
"scale_y": true,
"state": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"type": "frozenlib:noise_path_feature",
"type": "frozenlib:requires_air_or_water_in_area_noise_path_feature",
"config": {
"air_search_distance": 2,
"is_3d": true,
"max_threshold": -0.5125,
"min_threshold": -0.5875,
"noise": 1,
"noise_scale": 0.025,
"only_place_when_exposed": false,
"placement_chance": 1.0,
"radius": 14,
"radius": 12,
"replaceable_blocks": "#wilderwild:feature/mesoglea_path_replaceable",
"scale_y": true,
"state": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.List;
import net.frozenblock.lib.worldgen.feature.api.FrozenLibConfiguredFeature;
import net.frozenblock.lib.worldgen.feature.api.FrozenLibFeatures;
import net.frozenblock.lib.worldgen.feature.api.features.config.AirOrWaterInAreaPathFeatureConfig;
import net.frozenblock.lib.worldgen.feature.api.features.config.ColumnFeatureConfig;
import net.frozenblock.lib.worldgen.feature.api.features.config.ComboFeatureConfig;
import net.frozenblock.lib.worldgen.feature.api.features.config.FadingDiskTagFeatureConfig;
Expand Down Expand Up @@ -56,7 +57,6 @@
import net.minecraft.world.level.levelgen.feature.Feature;
import net.minecraft.world.level.levelgen.feature.WeightedPlacedFeature;
import net.minecraft.world.level.levelgen.feature.configurations.BlockPileConfiguration;
import net.minecraft.world.level.levelgen.feature.configurations.ColumnFeatureConfiguration;
import net.minecraft.world.level.levelgen.feature.configurations.MultifaceGrowthConfiguration;
import net.minecraft.world.level.levelgen.feature.configurations.OreConfiguration;
import net.minecraft.world.level.levelgen.feature.configurations.RandomBooleanFeatureConfiguration;
Expand All @@ -80,8 +80,8 @@ public final class WWCaveConfigured {
public static final FrozenLibConfiguredFeature<ColumnFeatureConfig, ConfiguredFeature<ColumnFeatureConfig, ?>> PURPLE_MESOGLEA_COLUMN = register("purple_mesoglea_column");
public static final FrozenLibConfiguredFeature<ColumnFeatureConfig, ConfiguredFeature<ColumnFeatureConfig, ?>> DOWNWARDS_BLUE_MESOGLEA_COLUMN = register("downwards_blue_mesoglea_column");
public static final FrozenLibConfiguredFeature<ColumnFeatureConfig, ConfiguredFeature<ColumnFeatureConfig, ?>> DOWNWARDS_PURPLE_MESOGLEA_COLUMN = register("downwards_purple_mesoglea_column");
public static final FrozenLibConfiguredFeature<PathFeatureConfig, ConfiguredFeature<PathFeatureConfig, ?>> BLUE_MESOGLEA_PATH = register("blue_mesoglea_path");
public static final FrozenLibConfiguredFeature<PathFeatureConfig, ConfiguredFeature<PathFeatureConfig, ?>> PURPLE_MESOGLEA_PATH = register("purple_mesoglea_path");
public static final FrozenLibConfiguredFeature<AirOrWaterInAreaPathFeatureConfig, ConfiguredFeature<AirOrWaterInAreaPathFeatureConfig, ?>> BLUE_MESOGLEA_PATH = register("blue_mesoglea_path");
public static final FrozenLibConfiguredFeature<AirOrWaterInAreaPathFeatureConfig, ConfiguredFeature<AirOrWaterInAreaPathFeatureConfig, ?>> PURPLE_MESOGLEA_PATH = register("purple_mesoglea_path");
public static final FrozenLibConfiguredFeature<LargeMesogleaConfig, ConfiguredFeature<LargeMesogleaConfig, ?>> MESOGLEA_CLUSTER_PURPLE = WWFeatureUtils.register("mesoglea_cluster_purple");
public static final FrozenLibConfiguredFeature<LargeMesogleaConfig, ConfiguredFeature<LargeMesogleaConfig, ?>> MESOGLEA_CLUSTER_BLUE = WWFeatureUtils.register("mesoglea_cluster_blue");
public static final FrozenLibConfiguredFeature<VegetationPatchConfiguration, ConfiguredFeature<VegetationPatchConfiguration, ?>> BLUE_MESOGLEA_WITH_DRIPLEAVES = WWFeatureUtils.register("blue_mesoglea_with_dripleaves");
Expand Down Expand Up @@ -230,18 +230,18 @@ public static void registerCaveConfigured(@NotNull BootstrapContext<ConfiguredFe
)
);

BLUE_MESOGLEA_PATH.makeAndSetHolder(FrozenLibFeatures.NOISE_PATH_FEATURE,
new PathFeatureConfig(
BLUE_MESOGLEA_PATH.makeAndSetHolder(FrozenLibFeatures.REQUIRES_AIR_OR_WATER_IN_AREA_NOISE_PATH_FEATURE,
new AirOrWaterInAreaPathFeatureConfig(
BlockStateProvider.simple(WWBlocks.BLUE_PEARLESCENT_MESOGLEA.defaultBlockState().setValue(BlockStateProperties.WATERLOGGED, true)),
14,
12,
1,
0.025,
0.5125,
0.5875,
true,
true,
true,
false,
2,
new HolderSet.Named<>(
BuiltInRegistries.BLOCK.holderOwner(),
WWBlockTags.MESOGLEA_PATH_REPLACEABLE
Expand All @@ -250,18 +250,18 @@ public static void registerCaveConfigured(@NotNull BootstrapContext<ConfiguredFe
)
);

PURPLE_MESOGLEA_PATH.makeAndSetHolder(FrozenLibFeatures.NOISE_PATH_FEATURE,
new PathFeatureConfig(
PURPLE_MESOGLEA_PATH.makeAndSetHolder(FrozenLibFeatures.REQUIRES_AIR_OR_WATER_IN_AREA_NOISE_PATH_FEATURE,
new AirOrWaterInAreaPathFeatureConfig(
BlockStateProvider.simple(WWBlocks.PURPLE_PEARLESCENT_MESOGLEA.defaultBlockState().setValue(BlockStateProperties.WATERLOGGED, true)),
14,
12,
1,
0.025,
-0.5875,
-0.5125,
true,
true,
true,
false,
2,
new HolderSet.Named<>(
BuiltInRegistries.BLOCK.holderOwner(),
WWBlockTags.MESOGLEA_PATH_REPLACEABLE
Expand Down

0 comments on commit 03b9dde

Please sign in to comment.