Posted October 31, 20213 yr I tried to make a world generation, but results are really weird. GitHub repository: https://github.com/ArianKG/KGForge
October 31, 20213 yr Author 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, 20213 yr by ArianKG
November 2, 20213 yr Author @Luis_ST OK, the void isn't weird, but, the Nether structures in overworld is really weird, and I want to fix that.
November 2, 20213 yr 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
November 2, 20213 yr 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)); } }
November 2, 20213 yr 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
November 3, 20213 yr 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.