Closed Nolij closed 1 year ago
Uhhhh hold on this might not work with random seeds.
Has issues. Will re-open draft.
Can't this just be changed to a draft?
Can't this just be changed to a draft?
Couldn't find a way to do that. If you have a method please tell me.
No such button shows for me. Perhaps someone with write permissions to this repo can do that?
EDIT 2: I'm dumb. Draft now.
I find this ChunkStatus package net.minecraft.world.chunk; And it seems to control chunk gen and it use the seed from World::getSeed()
Due to this every world will spawn with same seed with overworld. And you can not modify seed in creating world. I try to use Mixin to modify that and its work. But I think We should have a database to save each seed for their world. `@Mixin(ServerWorld.class) public abstract class ServerWorldMixin {
@Overwrite
public long getSeed() {
ServerWorld world = ServerWorld.class.cast(this);
//TODO Check it is a fantasy world and read from file or database to return a seed that set in created.
return ServerWorld.class.cast(this).getServer().getSaveProperties().getGeneratorOptions().getSeed();
}
} `
1.19.3 brings necessary reworks. Will open new PR with new base branch.
In 1.19 the vanilla chunk generator now calls
World::getSeed()
to determine chunk generation seed. The default implementation simply uses the Overworld seed, not the configured seed for the given Fantasy world.RuntimeWorld
now overrides this method to return the configured seed.