Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.agento.init.BlockInit;
- import net.minecraft.world.biome.Biome;
- import net.minecraft.world.gen.GenerationStage;
- import net.minecraft.world.gen.feature.Feature;
- import net.minecraft.world.gen.feature.OreFeatureConfig;
- import net.minecraft.world.gen.placement.ConfiguredPlacement;
- import net.minecraft.world.gen.placement.CountRangeConfig;
- import net.minecraft.world.gen.placement.Placement;
- import net.minecraftforge.registries.ForgeRegistries;
- public class ModOreGen
- {
- public static void generateOre()
- {
- for(Biome allbiome : ForgeRegistries.BIOMES)
- {
- ConfiguredPlacement customConfig = Placement.COUNT_RANGE.configure(new CountRangeConfig(50, 5,0, 100));
- allbiome.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, BlockInit.ruby_ore_block.getDefaultState(), 5)).withPlacement(customConfig));
- }
- }
- }
Add Comment
Please, Sign In to add comment