When upgrading a world from before 24w21a, structures saved by structure blocks are not accessible anymore.
How to reproduce
Open a world in 1.20.6 or 23w20a (or any other version)
Use a structure block to save a structure
✔ Verify that you can load the structure using a structure block or the /place template command
Update to 24w21b
Try to load the structure using a structure block or the /place template command
❌ The structure doesn't exist
Cause
24w21a changes the folder of structures from structures
to structure
. This change also affects the generated
folder in a world. (The changelog only mentions this change for data pack content, not for the generated
folder.) When upgrading a world, the saved structures do not get moved to the new folder.
I can confirm this issue.
Code analysis (Yarn mappings)
The
StructureTemplateManager
class contains aSTRUCTURES_DIRECTORY
constant, which was changed fromstructures
tostructure
in Minecraft snapshot 24w21a. This affected loading from both resources (data packs) and files, as presumably this constant is used in all usages ofstructure
in the rest of the class.