Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Author

I mean, everything is void, and also, every structure from every dimension generated in overworld. For example, Nether structures generated in overworld.

Edited by ArianKG

that is your error, use the other constructor for the DimensionStructuresSettings
for the StructureMap you can take a look at the Default Map in DimensionStructuresSettings.DEFAULTS

  • Author

I did that, but nothing happened:

package com.kg.kgforge.factory;

import java.util.Optional;
import net.minecraft.util.registry.Registry;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.gen.ChunkGenerator;
import net.minecraft.world.gen.DimensionSettings;
import net.minecraft.world.gen.FlatChunkGenerator;
import net.minecraft.world.gen.FlatGenerationSettings;
import net.minecraft.world.gen.settings.DimensionStructuresSettings;
import net.minecraftforge.common.world.ForgeWorldType;

public class KGFactory implements ForgeWorldType.IChunkGeneratorFactory {
    @Override
    public ChunkGenerator createChunkGenerator(Registry<Biome> biomeRegistry, Registry<DimensionSettings> dimensionSettingsRegistry, long seed, String generatorSettings) {
        return new FlatChunkGenerator(new FlatGenerationSettings(new DimensionStructuresSettings(Optional.empty(), DimensionStructuresSettings.DEFAULTS), biomeRegistry));
    }
}

now you do exactly, what the first constructor does
in other word you haven't changed anything

take a look at the DimensionStructuresSettings#DEFAULTS copy the logic,
and do the same thing for the Structures you want to spawn

then copy the DimensionStructuresSettings#DEFAULTS into a new Map,
then remove the Structures which shouldn't generate and then use this Map in your DimensionStructuresSettings

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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.