Jump to content

Nuroyun

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Nuroyun

  1. On 10/29/2020 at 8:34 PM, Pickle_Face5 said:

    1.16.2 ore generation is broken, and is very difficult to do ore generation in that version. In 1.16.3, there's a new event called BiomeLoadingEvent. Use that event, and inside the event make a ConfiguredFeature for your ore you want to generate (to see how to do this, look how Minecraft does it in minecraft\world\gen\feature\Features). Then in your event, do .getGeneration().withFeature(GenerationStage.Decoration.UNDERGROUND_ORES, <Configured Feature Name Here>

    Heres an Example from one of my mods:

    
    public static void generateOres(BiomeLoadingEvent event) {
            ConfiguredFeature<?, ?> ORE_SAPPHIRE = Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.field_241882_a, Registry.SAPPHIRE_ORE.get().getDefaultState(), 6)).withPlacement(Placement.field_242910_o.configure(new DepthAverageConfig(15, 16))).func_242728_a();
            event.getGeneration().withFeature(GenerationStage.Decoration.UNDERGROUND_ORES, ORE_SAPPHIRE);
        }

     

    i have 2 questions .withFeature didnt work and i couldnt find any folders in net\minecraft\world apart from \level

    EDIT: i found the gen\feture thing but i still dont know how to make it work

    EDIT2: nvm i figured it out

×
×
  • Create New...

Important Information

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