mojira.dev
MC-243458

Worldgen data packs don't work on servers at first launch

Datapacks which overwrites the default world generation do not work on servers. If you put the datapack in the world/datapacks/ folder before the server is started and the world is generated, it will not generate the specified biomes, which are specified in the datapack. After stopping the server, deleting all region files (world/region/*) and starting the server again the correct world generation is used. This can't be intedend, if this is the only way to load a worldgen-datapack on a server.

 

Steps to Reproduce:

  1. Place the server.jar in an empty folder.

  2. Create the folders /world/datapacks/.

  3. Place the testpack.zip inside the datapacks folder.

  4. Accept Eula and start the server.

  5. Join the server.

Observed Results:

The server generates a normal world ignoring the worldgen settings of the datapack. After stopping the server, deleting all the regions files and starting the server again the world is generating as defined in the datapack.

 

Expected Results:

The server should generate the world respecting all worldgen settings from the datapack (like it works in singleplayer).

 

Notes:

The testpack.zip generates a world with a testbiome, which is a copy of the plains biome, but with red skylight.

Attachments

Comments 3

Cannot repeat on 1.18.2

Can confirm in 1.18.2 and 22w18a

It seems like this is caused by the game loading in safe mode when level.dat file is missing.

MrKinau

boq

Confirmed

Important

Custom Worlds, Data Packs, Dedicated Server

1.18, 1.18.1 Release Candidate 1, 1.18.1 Release Candidate 2, 1.18.1, 22w03a, ..., 1.19 Pre-release 2, 1.19 Release Candidate 1, 1.19 Release Candidate 2, 1.19, 22w24a

22w42a

Retrieved