Made common config into a variable.
This commit is contained in:
@ -10,16 +10,16 @@ import net.minecraft.world.gen.blockstateprovider.SimpleBlockStateProvider;
|
|||||||
import net.minecraft.world.gen.feature.*;
|
import net.minecraft.world.gen.feature.*;
|
||||||
|
|
||||||
public class ModConfiguredFeatures {
|
public class ModConfiguredFeatures {
|
||||||
|
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).yspread(3).zspread(4);
|
||||||
|
|
||||||
public static final ConfiguredFeature<?, ?> CONFIGURED_PATCH_FIREFLY_BUSH = create("patch_firefly_bush", Feature.RANDOM_PATCH.configured(
|
public static final ConfiguredFeature<?, ?> CONFIGURED_PATCH_FIREFLY_BUSH = create("patch_firefly_bush", Feature.RANDOM_PATCH.configured(
|
||||||
new BlockClusterFeatureConfig.Builder(
|
CONFIG_PATCH_FIREFLY_BUSH.build()
|
||||||
new SimpleBlockStateProvider(ModBlocks.FIREFLY_BUSH.get().defaultBlockState()), new SimpleBlockPlacer()
|
|
||||||
).tries(20).xspread(4).zspread(4).yspread(3).build()
|
|
||||||
));
|
));
|
||||||
|
|
||||||
public static final ConfiguredFeature<?, ?> CONFIGURED_PATCH_FIREFLY_BUSH_NEAR_WATER = create("patch_firefly_bush", Feature.RANDOM_PATCH.configured(
|
public static final ConfiguredFeature<?, ?> CONFIGURED_PATCH_FIREFLY_BUSH_NEAR_WATER = create("patch_firefly_bush", Feature.RANDOM_PATCH.configured(
|
||||||
new BlockClusterFeatureConfig.Builder(
|
CONFIG_PATCH_FIREFLY_BUSH.needWater().build()
|
||||||
new SimpleBlockStateProvider(ModBlocks.FIREFLY_BUSH.get().defaultBlockState()), new SimpleBlockPlacer()
|
|
||||||
).tries(20).xspread(4).zspread(4).yspread(3).needWater().build()
|
|
||||||
));
|
));
|
||||||
|
|
||||||
public static final ConfiguredFeature<?, ?> PLACED_PATCH_FIREFLY_BUSH_SWAMP = create("patch_firefly_bush_swamp", CONFIGURED_PATCH_FIREFLY_BUSH
|
public static final ConfiguredFeature<?, ?> PLACED_PATCH_FIREFLY_BUSH_SWAMP = create("patch_firefly_bush_swamp", CONFIGURED_PATCH_FIREFLY_BUSH
|
||||||
|
|||||||
Reference in New Issue
Block a user