mojira.dev
MC-201704

Leveling up a Cartographer to Master or searching for a Woodland Mansion, Nether Fossil, or End City with /locate causes a tick freeze if custom noise settings prevent the structure from generating

The bug

If a world using custom generation has Mansion generation enabled but has noise settings such that they cannot generate anywhere, then leveling up a cartographer to Master or typing the command /locate mansion causes a tick freeze that prevents debug crashes from working. The same applies with /locate nether_fossil in the Nether, and /locate end_city in the End.

How to reproduce

  1. Generate a world using the attached data pack [mediaInline]

  2. Execute the command /locate mansion, or level up a cartographer villager to Master
    → ❌ Entities and some other processes stop working, and trying to force a debug crash never finishes, similarly to the effects of MC-175269.

Note 1: In the attached world, teleporting to the coordinates where the same seed produces a known Woodland Mansion reveals there is no mansion in sight.

Note 2: I have tested all other structures to see which ones cause the issue.

  • Nether Fossils and End Cities do not generate and cause the same issue as Mansions when using /locate.

  • Buried Treasure does not generate a chest. Depending on the exact world generator settings used, /locate buried_treasure will either output "Could not find the structure nearby", or will point to where a buried treasure chest would be generated normally. In the former case, any treasure maps generated from Shipwreck or Ocean Ruin loot will be replaced by empty maps.

  • Mineshafts and Strongholds do not generate, and /locate mineshaft outputs "Could not find the structure nearby". Eyes of Ender do nothing.

  • Ocean monuments still generate, surrounded by a cuboid of water. Ocean explorer maps are not broken.

  • Ruined Portals generate in the Nether but not in the Overworld; /locate ruined_portal finds a location in both dimensions, but nothing is generated at said location in the Overworld.

  • Bastion Remnants float, with the bottom near y:31.

  • All other structures generate on top of the void and are findable via /locate as normal. Underground parts of certain structures, such as igloo basements, do not generate. In 20w46a, the bottom two blocks of buildings are missing; the lowest generated block is at y:1.

Linked issues

Attachments

Comments 5

I am unable to reproduce this issue in 1.17.

Can this still be reproduced in 1.18-pre3?

I'm assuming I would need a new datapack for 1.18 versions (haven't tested the existing one).

But I'm in uni and don't have the time to learn about the new changes to worldgen and datapacks at the moment.

I guess reassign this ticket to someone else with a lot of datapack and/or worldgen knowledge?

Can confirm in 1.19.3 and 23w03a

Are you still experiencing this issue in the newest version?
If so, could you provide more detailed repro steps?

JuniorJedi256

(Unassigned)

Confirmed

Platform

Important

Crash

crash

1.16.3, 1.16.4, 20w46a, 1.19.3, 23w03a, 24w12a, 26.1.2, 26.2 Snapshot 4

Retrieved