ArianKG Posted October 31, 2021 Share Posted October 31, 2021 I tried to make a world generation, but results are really weird. GitHub repository: https://github.com/ArianKG/KGForge Quote Link to comment Share on other sites More sharing options...
Luis_ST Posted October 31, 2021 Share Posted October 31, 2021 what did you mean by 'really weird' Quote Link to comment Share on other sites More sharing options...
ArianKG Posted October 31, 2021 Author Share Posted October 31, 2021 (edited) I mean, everything is void, and also, every structure from every dimension generated in overworld. For example, Nether structures generated in overworld. Edited November 2, 2021 by ArianKG Quote Link to comment Share on other sites More sharing options...
Luis_ST Posted November 1, 2021 Share Posted November 1, 2021 when you do what, since you haven't so much world generation stuff? Quote Link to comment Share on other sites More sharing options...
ArianKG Posted November 2, 2021 Author Share Posted November 2, 2021 @Luis_ST OK, the void isn't weird, but, the Nether structures in overworld is really weird, and I want to fix that. Quote Link to comment Share on other sites More sharing options...
Luis_ST Posted November 2, 2021 Share Posted November 2, 2021 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 Quote Link to comment Share on other sites More sharing options...
ArianKG Posted November 2, 2021 Author Share Posted November 2, 2021 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)); } } Quote Link to comment Share on other sites More sharing options...
Luis_ST Posted November 2, 2021 Share Posted November 2, 2021 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 Quote Link to comment Share on other sites More sharing options...
ArianKG Posted November 2, 2021 Author Share Posted November 2, 2021 Then, modded structures will not work anymore. Quote Link to comment Share on other sites More sharing options...
Luis_ST Posted November 3, 2021 Share Posted November 3, 2021 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.