Advertisement
Guest User

java.lang.IllegalArgumentException: bound must be positive

a guest
Jan 3rd, 2020
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.76 KB | None | 0 0
  1. private void doCommonStuff(final FMLCommonSetupEvent e) {
  2.         // some other unimportant stuff that I need to check
  3.        
  4.         for (Biome biome : ForgeRegistries.BIOMES) {
  5.            
  6.             if (biome.getCategory() == Biome.Category.NETHER) {
  7.                 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)));
  8.             }
  9.             if (biome.getCategory() == Biome.Category.THEEND) {
  10.                 biome.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(OreFeatureConfig.FillerBlockType.create(MODID, "end_stone", new Predicate<BlockState>() {
  11.  
  12.                     @Override
  13.                     public boolean test(BlockState arg0) {
  14.                         return (arg0.getBlock() == net.minecraft.block.Blocks.END_STONE);
  15.                     }
  16.                    
  17.                 }), Blocks.triciumOreEnd.getDefaultState(), 15), Placement.COUNT_RANGE, new CountRangeConfig(5, 5, 20, 120)));
  18.             }
  19.             if (biome.getCategory() != Biome.Category.NETHER && biome.getCategory() != Biome.Category.THEEND) {
  20.                
  21.                 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)));
  22.                 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)));
  23.                 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)));
  24.                 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)));
  25.                 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)));
  26.                 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)));
  27.                 biome.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(OreFeatureConfig.FillerBlockType.create(MODID, "limestone", new Predicate<BlockState>() {
  28.  
  29.                     @Override
  30.                     public boolean test(BlockState arg0) {
  31.                         return (arg0.getBlock() == Blocks.limestone);
  32.                     }
  33.                    
  34.                 }), Blocks.ikeniumOre.getDefaultState(), 11), Placement.COUNT_RANGE, new CountRangeConfig(5, 20, 30, 80)));
  35.                 biome.addFeature(Decoration.UNDERGROUND_ORES, Biome.createDecoratedFeature(Feature.ORE, new OreFeatureConfig(OreFeatureConfig.FillerBlockType.create(MODID, "limestone", new Predicate<BlockState>() {
  36.  
  37.                     @Override
  38.                     public boolean test(BlockState arg0) {
  39.                         return (arg0.getBlock() == Blocks.limestone);
  40.                     }
  41.                    
  42.                 }), Blocks.bastiumOre.getDefaultState(), 5), Placement.COUNT_RANGE, new CountRangeConfig(5, 15, 20, 50)));
  43.                
  44.             }
  45.         }
  46.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement