Jump to content

Jebadiah

Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Jebadiah's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hi Dan, I'm in the same boat as you. Trying to find a working custom ore generation for 1.15. It seems some things changed from 1.14 and you won't find a lot of the classes matching the names and fields used in the above examples. I spent some time looking around and seemed to have found a solution that works. Here's what I found to work so far: for(Biome biome : ForgeRegistries.BIOMES ) { CountRangeConfig myCustomOrePlacementConfig = new CountRangeConfig(/*frequency per chunk*/ 2, /*Min*/8,/*Offset*/ 8,/*Max*/ 22); biome.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE, ModBlocks.myCustomOreBlock.getDefaultState(), 4)).func_227228_a_(Placement.COUNT_RANGE.func_227446_a_(myCustomOrePlacementConfig))); } Put this in the Preinit function (normally called setup(final FMLCommonSetupEvent event) in the Forge example mod ) or you can also place it inside a method in a separate OreGeneration class and then call it from setup. If anyone has any corrections or better suggestions than this then definitely please let me know!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.