Talk:Structure Block file format

palettes description
The description of the palettes field is not very clear. It says "a random palette gets selected based on coordinates and structure integrity" but it is not clear how.

So I've looked into the source code and found the following: In net.minecraft.world.level.levelgen.structure.templatesystem.StructurePlaceSettings it basically is palettes.get(getRandom(blockPos).nextInt(palettes.size)); And getRandom(blockPos) is just return Random(Mth.getSeed((Vec3i)blockPos));

So the palette is just picked at random (just the seed of the random is based on the position so it is deterministic...). Nowhere is there a degregation passed into this function that could be used and the palettes aren't marked as a specific type of degregation. The (random) choice of the palette might then cause the shipwreck degregation but that is not what is described here.

So I've edited the page to say "a random palette gets selected (seeded on coordinated)". However this edit was reverted by Dhranios. Have I missed something? --Jacobsjo (talk) 21:48, 2 February 2021 (UTC)
 * I think he reverted it becuase you removed something. Look at the diff, just readd your changes without removing that other thing, make sure you read the edit summary.Humiebee (talk) 21:51, 2 February 2021 (UTC)
 * Hm, must have changed since addition then; I asked mojang directly when it was added how it was determined, and they said it was also based on integrity seed. Guess that's outdated. Dhranios (talk) (Join the wiki videos project!) 21:52, 2 February 2021 (UTC)
 * Allright thanks, I just redid the changed. These things are more important since 1.16 with all this custom worldgen stuff... --Jacobsjo (talk) 22:25, 2 February 2021 (UTC)

Move to Structure Block file format
Style guide page title. Page is "Structure Block" + "file format" so should match that format.  Nixinova   T   C   21:59, 2 February 2021 (UTC)