Advertisement
Guest User

Code Issues #1

a guest
Apr 9th, 2020
1,083
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.99 KB | None | 0 0
  1. package com.unfunnygooseman.randommod.world.gen;
  2.  
  3. import com.unfunnygooseman.randommod.init.BlockInit;
  4.  
  5. import net.minecraft.world.biome.Biome;
  6. import net.minecraft.world.gen.GenerationStage;
  7. import net.minecraft.world.gen.feature.Feature;
  8. import net.minecraft.world.gen.feature.OreFeatureConfig;
  9. import net.minecraft.world.gen.placement.ConfiguredPlacement;
  10. import net.minecraft.world.gen.placement.CountRangeConfig;
  11. import net.minecraft.world.gen.placement.Placement;
  12. import net.minecraftforge.registries.ForgeRegistries;
  13.  
  14. public class OreGen
  15. {
  16.     public static void generateOre()
  17.     {
  18.         for(Biome biome : ForgeRegistries.BIOMES)
  19.         {
  20.             ConfiguredPlacement customConfig = Placement.COUNT_RANGE.func_227446_a_(new CountRangeConfig(5, 6, 5, 15));
  21.             biome.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, BlockInit.ruby_ore.getDefaultState(), 1)).withPlacement(customConfig));
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement