Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MysticFeatures {
- public static void registerConfiguredFeatures() {
- }
- public static void registerPlacedFeatures() {
- }
- public static final Holder<ConfiguredFeature<TreeConfiguration, ?>> JACARANDA = FeatureUtils.register("jacaranda", Feature.TREE, new TreeConfiguration.TreeConfigurationBuilder(BlockStateProvider.simple(MysticBlocks.JACARANDA_LOG.get()), new StraightTrunkPlacer(4, 2, 0), BlockStateProvider.simple(MysticBlocks.JACARANDA_BLOSSOMS.get()), new BlobFoliagePlacer(ConstantInt.of(2), ConstantInt.of(0), 3), new TwoLayersFeatureSize(1, 0, 1)).build());
- public static final Holder<ConfiguredFeature<RandomPatchConfiguration, ?>> LAVENDER = FeatureUtils.register("lavender", Feature.RANDOM_PATCH, FeatureUtils.simpleRandomPatchConfiguration(32, PlacementUtils.onlyWhenEmpty(Feature.SIMPLE_BLOCK, new SimpleBlockConfiguration(BlockStateProvider.simple(MysticBlocks.LAVENDER.get())))));
- /** What's placed in the world generation. */
- public static final Holder<PlacedFeature> TREES_JACARANDA = PlacementUtils.register("trees_jacaranda", JACARANDA, VegetationPlacements.treePlacement(RarityFilter.onAverageOnceEvery(60)));
- public static final Holder<PlacedFeature> FLOWERS_LAVENDER = PlacementUtils.register("flowers_lavender", VegetationFeatures.PATCH_GRASS, VegetationPlacements.worldSurfaceSquaredWithCount(2));
- private static <FC extends FeatureConfiguration> void register(String name, ConfiguredFeature<FC, ?> feature) {
- BuiltinRegistries.register(BuiltinRegistries.CONFIGURED_FEATURE, new ResourceLocation(MysticsBiomes.modId, name), feature);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement