Skip to content

Commit

Permalink
improv: more
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed Jun 22, 2024
1 parent 087d021 commit dea4177
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ public static void bootstrap(BootstapContext<ConfiguredFeature<?, ?>> context) {
patch(12, 7, 3, prov(ReduxFlowerSets.AURUM.flower())));

register(context, GOLDEN_CLOVERS_PATCH, Feature.FLOWER,
patch(8, 3, 3, petals(drops(ReduxBlocks.GOLDEN_CLOVERS))));
patch(24, 7, 3, petals(drops(ReduxBlocks.GOLDEN_CLOVERS))));

register(context, SURFACE_RULE_WATER_LAKE, ZenithFeatures.SURFACE_RULE_LAKE.get(),
new SurfaceRuleLakeFeature.Config(BlockStateProvider.simple(Blocks.WATER)));

// Overrides
register(context, GRASS_PATCH, Feature.RANDOM_PATCH, patch(32, 7, 3, prov(ReduxBlocks.SHORT_AETHER_GRASS), NOT_ON_COARSE_DIRT));
register(context, GRASS_PATCH, Feature.RANDOM_PATCH, patch(48, 7, 3, prov(ReduxBlocks.SHORT_AETHER_GRASS), NOT_ON_COARSE_DIRT));
register(context, TALL_GRASS_PATCH, Feature.NO_OP, new NoneFeatureConfiguration());

register(context, GRASS_BONEMEAL, Feature.SIMPLE_BLOCK,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import net.minecraft.util.valueproviders.BiasedToBottomInt;
import net.minecraft.util.valueproviders.ConstantInt;
import net.minecraft.util.valueproviders.IntProvider;
import net.minecraft.util.valueproviders.UniformInt;
import net.minecraft.util.valueproviders.WeightedListInt;
import net.minecraft.world.level.levelgen.Heightmap;
import net.minecraft.world.level.levelgen.VerticalAnchor;
Expand Down Expand Up @@ -84,12 +85,12 @@ public static void bootstrap(BootstapContext<PlacedFeature> context) {
);

register(context, AURUM_PATCH, configs.getOrThrow(ReduxFeatureConfig.AURUM_PATCH),
ImprovedLayerPlacementModifier.of(Heightmap.Types.MOTION_BLOCKING, BiasedToBottomInt.of(0, 2), 4),
threshold,
ImprovedLayerPlacementModifier.of(Heightmap.Types.MOTION_BLOCKING, UniformInt.of(0, 2), 4),
RarityFilter.onAverageOnceEvery(8),
BiomeFilter.biome());

register(context, GOLDEN_CLOVERS_PATCH, configs.getOrThrow(ReduxFeatureConfig.GOLDEN_CLOVERS_PATCH),
threshold,
ImprovedLayerPlacementModifier.of(Heightmap.Types.MOTION_BLOCKING, BiasedToBottomInt.of(0, 1), 4),
RarityFilter.onAverageOnceEvery(2),
BiomeFilter.biome());
Expand Down

0 comments on commit dea4177

Please sign in to comment.