Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void doCommonStuff(final FMLCommonSetupEvent e) {
- // some other unimportant stuff that I need to check
- for (Biome biome : ForgeRegistries.BIOMES) {
- if (biome.getCategory() == Biome.Category.NETHER) {
- biome.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NETHERRACK, Blocks.triciumOreNether.getDefaultState(), 15), Placement.COUNT_RANGE, new CountRangeConfig(5, 5, 20, 120)));
- }
- if (biome.getCategory() == Biome.Category.THEEND) {
- biome.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(OreFeatureConfig.FillerBlockType.create(MODID, "end_stone", new Predicate<BlockState>() {
- @Override
- public boolean test(BlockState arg0) {
- return (arg0.getBlock() == net.minecraft.block.Blocks.END_STONE);
- }
- }), Blocks.triciumOreEnd.getDefaultState(), 15), Placement.COUNT_RANGE, new CountRangeConfig(5, 5, 20, 120)));
- }
- if (biome.getCategory() != Biome.Category.NETHER && biome.getCategory() != Biome.Category.THEEND) {
- biome.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, Blocks.ditiumOre.getDefaultState(), 5), Placement.COUNT_RANGE, new CountRangeConfig(5, 10, 20, 70)));
- biome.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, Blocks.miniumOre.getDefaultState(), 8), Placement.COUNT_RANGE, new CountRangeConfig(5, 15, 20, 30)));
- biome.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, Blocks.triciumOre.getDefaultState(), 9), Placement.COUNT_RANGE, new CountRangeConfig(5, 15, 20, 40)));
- biome.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, Blocks.rubyOre.getDefaultState(), 3), Placement.COUNT_RANGE, new CountRangeConfig(5, 5, 20, 20)));
- biome.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, Blocks.blueOre.getDefaultState(), 6), Placement.COUNT_RANGE, new CountRangeConfig(5, 10, 20, 40)));
- biome.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, Blocks.limestone.getDefaultState(), 30), Placement.COUNT_RANGE, new CountRangeConfig(5, 35, 45, 120)));
- biome.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(OreFeatureConfig.FillerBlockType.create(MODID, "limestone", new Predicate<BlockState>() {
- @Override
- public boolean test(BlockState arg0) {
- return (arg0.getBlock() == Blocks.limestone);
- }
- }), Blocks.ikeniumOre.getDefaultState(), 11), Placement.COUNT_RANGE, new CountRangeConfig(5, 20, 30, 80)));
- biome.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(OreFeatureConfig.FillerBlockType.create(MODID, "limestone", new Predicate<BlockState>() {
- @Override
- public boolean test(BlockState arg0) {
- return (arg0.getBlock() == Blocks.limestone);
- }
- }), Blocks.bastiumOre.getDefaultState(), 5), Placement.COUNT_RANGE, new CountRangeConfig(5, 15, 20, 50)));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement