41f8cfa3bc
Clean-room, from spec-yungsapi.md §2.1 and §3.1 (no mod source read). A `yungsapi:yung_jigsaw` structure lays out with the jigsaw assembler and YUNG's draws: the start pool's file entries shuffled, then the rotation, then a weighted pick in the shuffled order; each jigsaw's target pool is drawn by weight from its shuffled entries without replacement, an element whose `name` already has `max_count` pieces skipped at no other draw. `yungsapi:yung_single_element` places what a single element places; its pool entry carries the name and limit. tools/test_structure_layout_parity.py --profile betterdungeons reads the mod's own data from its jar into an overlay of the 26.3 resources and compares the mod world's pieces: 82 of 84 Better Dungeons starts match piece for piece (60 small, 11 skeleton, 11 zombie dungeons, up to 790 pieces); the other 2 sit in 26.3's sulfur_caves, which 1.21.1 lacks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>