Jump to content

OreFeatureConfig.FillerBlockType Custom


Recommended Posts

So I was wondering, how do I create a custom FillerBlockType for OreFeautureConfig so that I can generate this into the biomes. I am wanting it to be endstone if that helps. This is my code so far:

public static void generateOre() {
        for (Biome biome : ForgeRegistries.BIOMES) {
            if (biome == Biomes.END_BARRENS || biome == Biomes.THE_END || biome == Biomes.END_HIGHLANDS ||
                    biome == Biomes.END_MIDLANDS || biome == Biomes.SMALL_END_ISLANDS) {
                ConfiguredPlacement customConfig = Placement.COUNT_RANGE.configure(new CountRangeConfig(20, 5, 5, 25));
                biome.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.NATURAL_STONE,
                        ModBlocks.END_ONYX_ORE.getDefaultState(), 10)).withPlacement(customConfig));


Link to comment
Share on other sites

Have you looked at the FillerBlockType class, or tried anything?

2 second check shows it's an extensible enum, so should be easy to add a new one, pretty sure I saw a create method in there. :)


You should investigate and try stuff! That's half the fun of programming :D

If you run into errors, come back, post code (pref a github repo of the project, makes it easier to find bugs/see the big picture), and the full debug.log

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

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