mojira.dev
MC-184634

Worldgen setting with seed 0 is interpreted as an ASCII code

The bug

Setting the worldgen_settings.json file to have "seed": 0 causes the game to interpret it as ASCII and automatically set the seed to literal 48 instead of a random seed upon generation.

Linked issues

Attachments

Comments 4

Iosiv Visokogorskiy

Can confirm for 1.16.1

StuleBackery

This really needs to be fixed, it makes it impossible to generate random seeds for a dimension datapack. It kind of ruins all datapacks that change the biome generation or make a new dimension.

W_V

Confirmed for 1.17.1

slicedlime

The systems have changed in upcoming versions making this repro case no longer valid. Please test if this is still an issue in any snapshot for Minecraft 1.19 (or later).

onnowhere

(Unassigned)

Confirmed

Low

Custom Worlds

worldgen-settings

20w21a, 1.16.2, 21w14a, 1.17.1, 1.18.1

Retrieved