Private
Public Access
1
0

Made common config into a variable.

This commit is contained in:
2026-05-25 22:38:51 +01:00
parent 5228bea7b9
commit e96cf26948

View File

@ -10,16 +10,16 @@ import net.minecraft.world.gen.blockstateprovider.SimpleBlockStateProvider;
import net.minecraft.world.gen.feature.*;
public class ModConfiguredFeatures {
public static final ConfiguredFeature<?, ?> CONFIGURED_PATCH_FIREFLY_BUSH = create("patch_firefly_bush", Feature.RANDOM_PATCH.configured(
new BlockClusterFeatureConfig.Builder(
private static final BlockClusterFeatureConfig.Builder CONFIG_PATCH_FIREFLY_BUSH = new BlockClusterFeatureConfig.Builder(
new SimpleBlockStateProvider(ModBlocks.FIREFLY_BUSH.get().defaultBlockState()), new SimpleBlockPlacer()
).tries(20).xspread(4).zspread(4).yspread(3).build()
).tries(20).xspread(4).yspread(3).zspread(4);
public static final ConfiguredFeature<?, ?> CONFIGURED_PATCH_FIREFLY_BUSH = create("patch_firefly_bush", Feature.RANDOM_PATCH.configured(
CONFIG_PATCH_FIREFLY_BUSH.build()
));
public static final ConfiguredFeature<?, ?> CONFIGURED_PATCH_FIREFLY_BUSH_NEAR_WATER = create("patch_firefly_bush", Feature.RANDOM_PATCH.configured(
new BlockClusterFeatureConfig.Builder(
new SimpleBlockStateProvider(ModBlocks.FIREFLY_BUSH.get().defaultBlockState()), new SimpleBlockPlacer()
).tries(20).xspread(4).zspread(4).yspread(3).needWater().build()
CONFIG_PATCH_FIREFLY_BUSH.needWater().build()
));
public static final ConfiguredFeature<?, ?> PLACED_PATCH_FIREFLY_BUSH_SWAMP = create("patch_firefly_bush_swamp", CONFIGURED_PATCH_FIREFLY_BUSH