#Client-side chunk generation (WIP)
20 messages · Page 1 of 1 (latest)
this chunk isn't real
i'm seeing how viable it is for my minigame mod, the world data is technically already on the client
Hmm so, you’re generating chunks on the client side that match the generator settings of the server?
Are you syncing block updates?
What happens if the server has custom world gen?
Looks cool!
there isn't client-side generation for regular servers, it's just client side for my minigame maps, since my maps are stored the the mod's JAR file, which needs to be present on the client as well as the server, the client already has all the info it needs to generate them itself
ah interesting
are the chunks getting evicted at some point ?
that will be done after i figure out why it's buggy
There should, they won't have the block updates, but just generating the terrain would be nice
i cant implement it for regular servers since it would involve replicating the random methods, which are really hard to create client-side
Couldn't you just get the seed and use the integrated server methods ?
here's the thing, there is no integrated server
nor is there a ServerLevel
I know, but the player still have the code, even if it's not running, so if the generation is vanilla you could use an accessor and use that to generate the terrain ig (all you need is the server's seed)
unfortunately you can't
a lot of the constructors require passing in a ServerLevel or a MinecraftServer
Okay