ᴍɪɴᴇᴄʀᴀꜰᴛʀᴇꜱᴏᴜʀᴄᴇꜱ

Structure Layout Optimizer

Modrinth

Attempts to optimize the generation of Jigsaw Structures and NBT pieces

8.9M downloads401 followersUpdated 1mo ago

1.1.4+26.3-fabric · MC 26.3 · Fabric

View on Modrinth

Files

  • 1.1.4+26.3-fabric

    release

    Structure Layout Optimizer v1.1.4 (26.3 Fabric)

    26.3fabric

    2026-09-16 · 111K downloads

    structure_layout_optimizer-1.1.4+26.3-fabric.jar · 68 KB

  • 1.1.4+26.3-neoforge

    release

    Structure Layout Optimizer v1.1.4 (26.3 Neoforge)

    26.3neoforge

    2026-09-16 · 2.9K downloads

    structure_layout_optimizer-1.1.4+26.3-neoforge.jar · 67 KB

  • 1.1.5+1.21.9-neoforge

    release

    Structure Layout Optimizer v1.1.5 (1.21.9 Neoforge)

    1.21.101.21.9neoforge

    2026-06-17 · 577 downloads

    structure_layout_optimizer-1.1.5+1.21.9-neoforge.jar · 68 KB

  • 1.1.4+26.1-neoforge

    release

    Structure Layout Optimizer v1.1.4 (26.1 Neoforge)

    26.226.1.226.1.126.1neoforge

    2026-03-25 · 9.7K downloads

    structure_layout_optimizer-1.1.4+26.1-neoforge.jar · 68 KB

  • 1.1.4+26.1-fabric

    release

    Structure Layout Optimizer v1.1.4 (26.1 Fabric)

    26.226.1.226.1.126.1fabric

    2026-03-25 · 478.2K downloads

    structure_layout_optimizer-1.1.4+26.1-fabric.jar · 70 KB

  • 1.1.4+1.21.11-neoforge

    release

    Structure Layout Optimizer v1.1.4 (1.21.11 Neoforge)

    1.21.11neoforge

    2026-01-09 · 3.3K downloads

    structure_layout_optimizer-1.1.4+1.21.11-neoforge.jar · 68 KB

  • 1.1.4+1.21.11-fabric

    release

    Structure Layout Optimizer v1.1.4 (1.21.11 Fabric)

    1.21.11fabric

    2026-01-09 · 227.2K downloads

    structure_layout_optimizer-1.1.4+1.21.11-fabric.jar · 69 KB

  • 1.1.4+1.21.9-neoforge

    release

    Structure Layout Optimizer v1.1.4 (1.21.9 Neoforge)

    1.21.101.21.9neoforge

    2026-01-09 · 260 downloads

    structure_layout_optimizer-1.1.4+1.21.9-neoforge.jar · 68 KB

  • 1.1.4+1.21.9-fabric

    release

    Structure Layout Optimizer v1.1.4 (1.21.9 Fabric)

    1.21.101.21.9fabric

    2026-01-09 · 13K downloads

    structure_layout_optimizer-1.1.4+1.21.9-fabric.jar · 69 KB

  • 1.1.4+1.21.6-neoforge

    release

    Structure Layout Optimizer v1.1.4 (1.21.6 Neoforge)

    1.21.81.21.71.21.6neoforge

    2026-01-09 · 503 downloads

    structure_layout_optimizer-1.1.4+1.21.6-neoforge.jar · 68 KB

  • 1.1.4+1.21.6-fabric

    release

    Structure Layout Optimizer v1.1.4 (1.21.6 Fabric)

    1.21.81.21.71.21.6fabric

    2026-01-09 · 4.6K downloads

    structure_layout_optimizer-1.1.4+1.21.6-fabric.jar · 69 KB

  • 1.1.4+1.21.5-neoforge

    release

    Structure Layout Optimizer v1.1.4 (1.21.5 Neoforge)

    1.21.5neoforge

    2026-01-09 · 195 downloads

    structure_layout_optimizer-1.1.4+1.21.5-neoforge.jar · 68 KB

  • 1.1.4+1.21.5-fabric

    release

    Structure Layout Optimizer v1.1.4 (1.21.5 Fabric)

    1.21.5fabric

    2026-01-09 · 1.8K downloads

    structure_layout_optimizer-1.1.4+1.21.5-fabric.jar · 69 KB

  • 1.1.4+1.21.4-neoforge

    release

    Structure Layout Optimizer v1.1.4 (1.21.4 Neoforge)

    1.21.4neoforge

    2026-01-09 · 445 downloads

    structure_layout_optimizer-neoforge-1.1.4.jar · 68 KB

  • 1.1.4+1.21.4-fabric

    release

    Structure Layout Optimizer v1.1.4 (1.21.4 Fabric)

    1.21.4fabric

    2026-01-09 · 4.4K downloads

    structure_layout_optimizer-fabric-1.1.4.jar · 69 KB

  • 1.0.12+1.21.1-neoforge

    release

    Structure Layout Optimizer v1.0.12 (neoforge 1.21.1)

    1.21.1neoforge

    2026-01-09 · 966.1K downloads

    structure_layout_optimizer-neoforge-1.0.12.jar · 60 KB

  • 1.0.12+1.21.1-fabric

    release

    Structure Layout Optimizer v1.0.12 (fabric 1.21.1)

    1.21.1fabric

    2026-01-09 · 124.1K downloads

    structure_layout_optimizer-fabric-1.0.12.jar · 61 KB

  • 1.1.3+1.21.11-neoforge

    release

    Structure Layout Optimizer v1.1.3 (1.21.11 Neoforge)

    1.21.11neoforge

    2025-12-10 · 1.2K downloads

    structure_layout_optimizer-1.1.3+1.21.11-neoforge.jar · 68 KB

  • 1.1.3+1.21.11-fabric

    release

    Structure Layout Optimizer v1.1.3 (1.21.11 Fabric)

    1.21.11fabric

    2025-12-10 · 13.9K downloads

    structure_layout_optimizer-1.1.3+1.21.11-fabric.jar · 69 KB

  • 1.1.3+1.21.9-neoforge

    release

    Structure Layout Optimizer v1.1.3 (1.21.9 Neoforge)

    1.21.101.21.9neoforge

    2025-10-22 · 449 downloads

    structure_layout_optimizer-1.1.3+1.21.9-neoforge.jar · 68 KB

  • 1.1.3+1.21.9-fabric

    release

    Structure Layout Optimizer v1.1.3 (1.21.9 Fabric)

    1.21.101.21.9fabric

    2025-10-22 · 25K downloads

    structure_layout_optimizer-1.1.3+1.21.9-fabric.jar · 69 KB

  • 1.1.3+1.21.6-neoforge

    release

    Structure Layout Optimizer v1.1.3 (1.21.6 Neoforge)

    1.21.81.21.71.21.6neoforge

    2025-10-22 · 183 downloads

    structure_layout_optimizer-1.1.3+1.21.6-neoforge.jar · 68 KB

  • 1.1.3+1.21.6-fabric

    release

    Structure Layout Optimizer v1.1.3 (1.21.6 Fabric)

    1.21.81.21.71.21.6fabric

    2025-10-22 · 2.9K downloads

    structure_layout_optimizer-1.1.3+1.21.6-fabric.jar · 69 KB

  • 1.1.3+1.21.5-neoforge

    release

    Structure Layout Optimizer v1.1.3 (1.21.5 Neoforge)

    1.21.5neoforge

    2025-10-22 · 105 downloads

    structure_layout_optimizer-1.1.3+1.21.5-neoforge.jar · 68 KB

  • 1.1.3+1.21.5-fabric

    release

    Structure Layout Optimizer v1.1.3 (1.21.5 Fabric)

    1.21.5fabric

    2025-10-22 · 2.5K downloads

    structure_layout_optimizer-1.1.3+1.21.5-fabric.jar · 69 KB

  • 1.1.3+1.21.4-neoforge

    beta

    Structure Layout Optimizer v1.1.3 (1.21.4 Neoforge)

    1.21.4neoforge

    2025-10-22 · 129 downloads

    structure_layout_optimizer-neoforge-1.1.3.jar · 68 KB

  • 1.1.3+1.21.4-fabric

    beta

    Structure Layout Optimizer v1.1.3 (1.21.4 Fabric)

    1.21.4fabric

    2025-10-22 · 913 downloads

    structure_layout_optimizer-fabric-1.1.3.jar · 69 KB

  • 1.0.11+1.21.1-neoforge

    release

    Structure Layout Optimizer v1.0.11 (neoforge 1.21.1)

    1.21.1neoforge

    2025-10-22 · 21.2K downloads

    structure_layout_optimizer-neoforge-1.0.11.jar · 60 KB

  • 1.0.11+1.21.1-fabric

    release

    Structure Layout Optimizer v1.0.11 (fabric 1.21.1)

    1.21.1fabric

    2025-10-22 · 30.8K downloads

    structure_layout_optimizer-fabric-1.0.11.jar · 61 KB

  • 1.0.11+1.20.1-forge

    release

    Structure Layout Optimizer v1.0.11 (forge 1.20.1)

    1.20.1forge

    2025-10-22 · 1.3M downloads

    structure_layout_optimizer-forge-1.0.11.jar · 241 KB

  • 1.0.11+1.20.1-fabric

    release

    Structure Layout Optimizer v1.0.11 (fabric 1.20.1)

    1.20.1fabric

    2025-10-22 · 763K downloads

    structure_layout_optimizer-fabric-1.0.11.jar · 60 KB

  • 1.1.2+1.21.9-fabric

    release

    Structure Layout Optimizer v1.1.2 (1.21.9 Fabric)

    1.21.101.21.9fabric

    2025-10-04 · 2.5K downloads

    structure_layout_optimizer-1.1.2+1.21.9-fabric.jar · 69 KB

  • 1.1.1+1.21.6-neoforge

    release

    Structure Layout Optimizer v1.1.1 (1.21.6 Neoforge)

    1.21.101.21.91.21.81.21.7+1neoforge

    2025-06-17 · 782 downloads

    structure_layout_optimizer-1.1.1+1.21.6-neoforge.jar · 68 KB

  • 1.1.1+1.21.6-fabric

    release

    Structure Layout Optimizer v1.1.1 (1.21.6 Fabric)

    1.21.91.21.81.21.71.21.6fabric

    2025-06-17 · 55.1K downloads

    structure_layout_optimizer-1.1.1+1.21.6-fabric.jar · 69 KB

  • 1.1.1+1.21.5-neoforge

    release

    Structure Layout Optimizer v1.1.1 (1.21.5 Neoforge)

    1.21.5neoforge

    2025-03-27 · 742 downloads

    structure_layout_optimizer-neoforge-1.1.1.jar · 68 KB

  • 1.1.1+1.21.5-fabric

    release

    Structure Layout Optimizer v1.1.1 (1.21.5 Fabric)

    1.21.5fabric

    2025-03-27 · 24.9K downloads

    structure_layout_optimizer-fabric-1.1.1.jar · 69 KB

  • 1.1.1+1.21.4-neoforge

    beta

    Structure Layout Optimizer v1.1.1 (1.21.4 Neoforge)

    1.21.4neoforge

    2025-01-28 · 1.5K downloads

    structure_layout_optimizer-neoforge-1.1.1.jar · 68 KB

  • 1.1.1+1.21.4-fabric

    beta

    Structure Layout Optimizer v1.1.1 (1.21.4 Fabric)

    1.21.4fabric

    2025-01-28 · 13.9K downloads

    structure_layout_optimizer-fabric-1.1.1.jar · 69 KB

  • 1.0.10+1.21.4-neoforge

    release

    Structure Layout Optimizer v1.0.10 (1.21.4 Neoforge)

    1.21.4neoforge

    2025-01-26 · 117 downloads

    structure_layout_optimizer-neoforge-1.0.10.jar · 60 KB

  • 1.0.10+1.21.4-fabric

    release

    Structure Layout Optimizer v1.0.10 (1.21.4 Fabric)

    1.21.4fabric

    2025-01-26 · 802 downloads

    structure_layout_optimizer-fabric-1.0.10.jar · 61 KB

  • 1.0.10+1.21.1-fabric

    release

    Structure Layout Optimizer v1.0.10 (fabric 1.21.1)

    1.21.1fabric

    2025-01-26 · 291.7K downloads

    structure_layout_optimizer-fabric-1.0.10.jar · 61 KB

  • 1.0.10+1.21.1-neoforge

    release

    Structure Layout Optimizer v1.0.10 (neoforge 1.21.1)

    1.21.1neoforge

    2025-01-26 · 308.1K downloads

    structure_layout_optimizer-neoforge-1.0.10.jar · 60 KB

  • 1.0.10+1.20.1-fabric

    release

    Structure Layout Optimizer v1.0.10 (fabric 1.20.1)

    1.20.1fabric

    2025-01-26 · 672K downloads

    structure_layout_optimizer-fabric-1.0.10.jar · 60 KB

  • 1.0.10+1.20.1-forge

    release

    Structure Layout Optimizer v1.0.10 (forge 1.20.1)

    1.20.1forge

    2025-01-26 · 1.3M downloads

    structure_layout_optimizer-forge-1.0.10.jar · 241 KB

  • 1.0.10+1.19.2-fabric

    release

    Structure Layout Optimizer v1.0.10 (fabric 1.19.2)

    1.19.2fabric

    2025-01-26 · 980 downloads

    structure_layout_optimizer-fabric-1.0.10.jar · 56 KB

  • 1.0.10+1.19.2-forge

    release

    Structure Layout Optimizer v1.0.10 (forge 1.19.2)

    1.19.2forge

    2025-01-26 · 321.4K downloads

    structure_layout_optimizer-forge-1.0.10.jar · 237 KB

  • 1.0.10+1.18.2-fabric

    release

    Structure Layout Optimizer v1.0.10 (fabric 1.18.2)

    1.18.2fabric

    2025-01-26 · 836 downloads

    structure_layout_optimizer-fabric-1.0.10.jar · 56 KB

  • 1.0.10+1.18.2-forge

    release

    Structure Layout Optimizer v1.0.10 (forge 1.18.2)

    1.18.2forge

    2025-01-26 · 12K downloads

    structure_layout_optimizer-forge-1.0.10.jar · 237 KB

  • 1.0.10+1.16.5-fabric

    release

    Structure Layout Optimizer v1.0.10 (fabric 1.16.5)

    1.16.5fabric

    2025-01-26 · 3.5K downloads

    structure_layout_optimizer-fabric-1.0.10.jar · 56 KB

  • 1.0.10+1.16.5-forge

    release

    Structure Layout Optimizer v1.0.10 (forge 1.16.5)

    1.16.5forge

    2025-01-26 · 4.3K downloads

    structure_layout_optimizer-forge-1.0.10.jar · 274 KB

  • 1.0.10+1.16.1-fabric

    release

    Structure Layout Optimizer v1.0.10 (fabric 1.16.1)

    1.16.1fabric

    2025-01-26 · 538 downloads

    structure_layout_optimizer-fabric-1.0.10.jar · 61 KB

  • 1.0.10+1.16.1-forge

    release

    Structure Layout Optimizer v1.0.10 (forge 1.16.1)

    1.16.1forge

    2025-01-26 · 195 downloads

    structure_layout_optimizer-forge-1.0.10.jar · 278 KB

  • 1.0.7+1.16.5-forge

    release

    Structure Layout Optimizer v1.0.7 (forge 1.16.5)

    1.16.5forge

    2025-01-01 · 196 downloads

    structure_layout_optimizer-forge-1.0.7.jar · 274 KB

  • 1.0.7+1.18.2-forge

    release

    Structure Layout Optimizer v1.0.7 (forge 1.18.2)

    1.18.2forge

    2025-01-01 · 93 downloads

    structure_layout_optimizer-forge-1.0.7.jar · 237 KB

  • 1.0.7+1.19.2-forge

    release

    Structure Layout Optimizer v1.0.7 (forge 1.19.2)

    1.19.2forge

    2025-01-01 · 318 downloads

    structure_layout_optimizer-forge-1.0.7.jar · 237 KB

  • 1.0.9+1.20.1-forge

    release

    Structure Layout Optimizer v1.0.9 (forge 1.20.1)

    1.20.1forge

    2024-12-31 · 109.2K downloads

    structure_layout_optimizer-forge-1.0.9.jar · 241 KB

  • 1.0.8+1.20.1-forge

    release

    Structure Layout Optimizer v1.0.8 (forge 1.20.1)

    1.20.1forge

    2024-12-30 · 228 downloads

    structure_layout_optimizer-forge-1.0.8.jar · 241 KB

  • 1.0.6+1.21.4-neoforge

    release

    Structure Layout Optimizer v1.0.6 (1.21.4 Neoforge)

    1.21.4neoforge

    2024-12-30 · 98 downloads

    structure_layout_optimizer-neoforge-1.0.6.jar · 60 KB

  • 1.0.6+1.21.4-fabric

    release

    Structure Layout Optimizer v1.0.6 (1.21.4 Fabric)

    1.21.4fabric

    2024-12-30 · 673 downloads

    structure_layout_optimizer-fabric-1.0.6.jar · 61 KB

  • 1.0.6+1.21.1-neoforge

    release

    Structure Layout Optimizer v1.0.6 (neoforge 1.21.1)

    1.21.1neoforge

    2024-12-30 · 1.3K downloads

    structure_layout_optimizer-neoforge-1.0.6.jar · 60 KB

  • 1.0.6+1.21.1-fabric

    release

    Structure Layout Optimizer v1.0.6 (fabric 1.21.1)

    1.21.1fabric

    2024-12-30 · 1.2K downloads

    structure_layout_optimizer-fabric-1.0.6.jar · 61 KB

  • 1.0.6+1.20.1-fabric

    release

    Structure Layout Optimizer v1.0.6 (fabric 1.20.1)

    1.20.1fabric

    2024-12-30 · 1.7K downloads

    structure_layout_optimizer-fabric-1.0.6.jar · 60 KB

  • 1.0.6+1.19.2-forge

    release

    Structure Layout Optimizer v1.0.6 (forge 1.19.2)

    1.19.2forge

    2024-12-30 · 51 downloads

    structure_layout_optimizer-forge-1.0.6.jar · 235 KB

  • 1.0.6+1.19.2-fabric

    release

    Structure Layout Optimizer v1.0.6 (fabric 1.19.2)

    1.19.2fabric

    2024-12-30 · 68 downloads

    structure_layout_optimizer-fabric-1.0.6.jar · 56 KB

  • 1.0.6+1.18.2-forge

    release

    Structure Layout Optimizer v1.0.6 (forge 1.18.2)

    1.18.2forge

    2024-12-30 · 41 downloads

    structure_layout_optimizer-forge-1.0.6.jar · 235 KB

  • 1.0.6+1.18.2-fabric

    release

    Structure Layout Optimizer v1.0.6 (fabric 1.18.2)

    1.18.2fabric

    2024-12-30 · 69 downloads

    structure_layout_optimizer-fabric-1.0.6.jar · 56 KB

  • 1.0.6+1.16.5-forge

    release

    Structure Layout Optimizer v1.0.6 (forge 1.16.5)

    1.16.5forge

    2024-12-30 · 43 downloads

    structure_layout_optimizer-forge-1.0.6.jar · 274 KB

  • 1.0.6+1.16.5-fabric

    release

    Structure Layout Optimizer v1.0.6 (fabric 1.16.5)

    1.16.5fabric

    2024-12-30 · 90 downloads

    structure_layout_optimizer-fabric-1.0.6.jar · 56 KB

  • 1.0.5+1.21.4-neoforge

    release

    Structure Layout Optimizer v1.0.5 (1.21.4 Neoforge)

    1.21.4neoforge

    2024-12-27 · 46 downloads

    structure_layout_optimizer-neoforge-1.0.5.jar · 60 KB

  • 1.0.5+1.21.4-fabric

    release

    Structure Layout Optimizer v1.0.5 (1.21.4 Fabric)

    1.21.4fabric

    2024-12-27 · 144 downloads

    structure_layout_optimizer-fabric-1.0.5.jar · 60 KB

  • 1.0.5+1.21.1-neoforge

    release

    Structure Layout Optimizer v1.0.5 (neoforge 1.21.1)

    1.21.1neoforge

    2024-12-27 · 100 downloads

    structure_layout_optimizer-neoforge-1.0.5.jar · 60 KB

  • 1.0.5+1.21.1-fabric

    release

    Structure Layout Optimizer v1.0.5 (fabric 1.21.1)

    1.21.1fabric

    2024-12-27 · 125 downloads

    structure_layout_optimizer-fabric-1.0.5.jar · 60 KB

  • 1.0.5+1.20.1-forge

    release

    Structure Layout Optimizer v1.0.5 (forge 1.20.1)

    1.20.1forge

    2024-12-27 · 386 downloads

    structure_layout_optimizer-forge-1.0.5.jar · 239 KB

  • 1.0.5+1.20.1-fabric

    release

    Structure Layout Optimizer v1.0.5 (fabric 1.20.1)

    1.20.1fabric

    2024-12-27 · 157 downloads

    structure_layout_optimizer-fabric-1.0.5.jar · 59 KB

  • 1.0.5+1.20.1-fabric

    release

    Structure Layout Optimizer v1.0.5 (fabric 1.20.1)

    1.20.1fabric

    2024-12-27 · 56 downloads

    structure_layout_optimizer-fabric-1.0.5.jar · 59 KB

  • 1.0.4+1.21.4-fabric

    release

    Structure Layout Optimizer v1.0.4 (1.21.4 Fabric)

    1.21.4fabric

    2024-12-10 · 2.4K downloads

    structure_layout_optimizer-fabric-1.0.4.jar · 60 KB

  • 1.0.3+1.21.4-neoforge

    release

    Structure Layout Optimizer v1.0.3 (neoforge 1.21.4)

    1.21.4neoforge

    2024-12-09 · 76 downloads

    structure_layout_optimizer-neoforge-1.0.3.jar · 59 KB

  • 1.0.2

    release

    Structure Layout Optimizer 1.0.2

    1.21.1fabric

    2024-11-15 · 4K downloads

    structure_layout_optimizer-fabric-1.0.2.jar · 60 KB

  • 1.0.2

    release

    Structure Layout Optimizer 1.0.2

    1.20.1forge

    2024-11-15 · 122.9K downloads

    structure_layout_optimizer-forge-1.0.2.jar · 239 KB

  • 1.0.2

    release

    Structure Layout Optimizer 1.0.2

    1.20.1fabric

    2024-11-15 · 1.4M downloads

    structure_layout_optimizer-fabric-1.0.2.jar · 59 KB

  • 1.0.2

    release

    Structure Layout Optimizer 1.0.2

    1.19.2fabric

    2024-11-15 · 74 downloads

    structure_layout_optimizer-fabric-1.0.2.jar · 55 KB

  • 1.0.2

    release

    Structure Layout Optimizer 1.0.2

    1.19.2forge

    2024-11-15 · 72.4K downloads

    structure_layout_optimizer-forge-1.0.2.jar · 235 KB

  • 1.0.2

    release

    Structure Layout Optimizer 1.0.2

    1.18.2forge

    2024-11-15 · 79 downloads

    structure_layout_optimizer-forge-1.0.2.jar · 235 KB

  • 1.0.2

    release

    Structure Layout Optimizer 1.0.2

    1.18.2fabric

    2024-11-15 · 62 downloads

    structure_layout_optimizer-fabric-1.0.2.jar · 55 KB

  • 1.0.2

    release

    Structure Layout Optimizer 1.0.2

    1.16.5fabric

    2024-11-15 · 105 downloads

    structure_layout_optimizer-fabric-1.0.2.jar · 55 KB

  • 1.0.2

    release

    Structure Layout Optimizer 1.0.2

    1.16.5forge

    2024-11-15 · 171 downloads

    structure_layout_optimizer-forge-1.0.2.jar · 273 KB

  • 1.0.2+1.21.1

    release

    Structure Layout Optimizer v1.0.2 (1.21.1)

    1.21.1neoforge

    2024-09-13 · 4.2K downloads

    structure_layout_optimizer-1.0.2+1.21.1.jar · 54 KB

  • 1.0.1+1.21.1

    release

    Structure Layout Optimizer v1.0.1 (1.21.1)

    1.21.11.21neoforge

    2024-08-21 · 930 downloads

    structure_layout_optimizer-1.0.1+1.21.1.jar · 50 KB

  • 1.0.0+1.21.1

    beta

    Structure Layout Optimizer v1.0.0 (1.21.1)

    1.21.1neoforge

    2024-08-20 · 113 downloads

    structure_layout_optimizer-1.0.0+1.21.1.jar · 49 KB

Files are delivered unmodified from Modrinth's servers and verified against the SHA-512 hash published by the project. The project's license applies to every file; check it before redistributing.

About

Optimizes general Jigsaw structure generation as best I can. Essentially this mod aims to not change how structures look at all. It only works to try and make structures generate faster and more efficiently. That's it.

Here are the more technical details of the optimizations done. Please report any conflicts or issues that is discovered when running this mod in your modpacks!

  • Replaces VertexShape unoptimized calls with a BoxOctree to make pieces only check nearby pieces for intersections instead of entire structure.

    • By default, vanilla uses a VoxelShape to store the bounds of pieces it is assembling for the structure layout. When it goes to add a new piece, it needs to see if it will fit into the layout without intersection any other pieces.

      The issue is VoxelShape is not good for this purpose as when checking if a VoxelShape intersects another VoxelShape, ALL the vertices are compared. In Jigsaw structures with lots and lots of pieces, this intersection check slows down greatly the more valid pieces are added to the layout. Can cause a lag spike when generating high number of pieces for recursive Jigsaw structures.

      The optimization here replaces the normal VoxelShape with a dummy VoxelShape that holds a BoxOctree implementation inside in order to pass around the BoxOctree to where it needs to be. This BoxOctree, when checking for intersections, will check only the nearby pieces to the incoming bounding box. Thus preventing the runaway growth in intersection checking time as it'll ignore the majority of pieces as they are too far away to matter for the check.

  • Check if a Jigsaw Block is blocked off entirely to know when to skip checking child rigid pieces.

    • In vanilla, every single Jigsaw Block in the parent piece will check every single Jigsaw Block in a child piece to know when to attempt to connect the two pieces. The issue is if the parent piece's Jigsaw Block is facing the edge of the structure boundary OR is facing another separate piece, then that Jigsaw Block has no room to ever spawn a rigid structure piece. Therefore, we can tell the game to skip checking this rigid child piece and check the next piece instead. This saves us from doing lots of expensive Jigsaw Block match up checks. Especially in structures that have a huge number of Jigsaw Blocks.

  • (26.2 and below) Replaces Jigsaw target/facing match up with a slightly more optimized version.

    • Reduces the number of block properties grabbing by half. Vanilla calls getValue twice for each JigsawBlock to get top and front values from the same property when it could just grab it once and get all values it needs. Slightly improved the speed of getting the joints, targets, and name string values from the Jigsaw Blocks's NBT as well.

      Also simplify joint data checking to not need to be converted to an Enum with byName (not performant) and reordering checks to reduce amount of logic that needs to run often.

      This will help with Jigsaw structures that have a very high amount of Jigsaw Blocks in them as each Jigsaw Block runs through this matching code for all Jigsaw Blocks in the other structure pieces.

  • Made any giant structure NBT that has no finalizeProcessing StructureProcessor now load much faster.

    • When a NBT structure piece goes to generate in a chunk, the ENTIRE NBT piece is loaded into memory, and then iterated over all the positions multiple times for StructureProcessors to apply and then later ignores all the positions outside the currently generating chunk. This is not very efficient (really wasteful) and causes large load times for giant NBT files.

      This mod's optimization works by doing the bounds check early to strip out all positions that we don't need before passing it to the StructureProcessors. However, any StructureProcessor that overrides finalizeProcessing method could require all the NBT positions to function correctly so this optimization is disabled for any pieces with these kinds of StructureProcessors which will be very few structures. In vanilla, only Trail Ruins will not get this optimization due to its use of the Capped StructureProcessor that overrides finalizeProcessing method.

  • (1.21.1+) Replaced the Jigsaw Block list shuffling and prioritization logic in SinglePoolElement with a slightly faster version.

    • Main benefit is slightly faster selection_priority data grabbing from NBT by using a new method that grabs the entry once instead of twice. Vanilla does it twice to check the data type first before returning the value. A bit odd and wasteful.

      Also tried a new sorting system for the prioritization, but only helps the few structures that actually makes use of selection_priority like Trials Chamber. Overall, this is probably the weakest optimization but it does quite a bit of help for Jigsaw structures that has an absolutely ridiculous amount of Jigsaw Blocks. So it is worth keeping this optimization.

      Might break parity with vanilla seeds in regard to what order the Jigsaw Block are ran in, but I could not find evidence of this yet.

  • Skip running logic for SinglePoolElements we already checked and could not spawn at the current spot.

    • So this optimization comes from the fact that vanilla StructureTemplatePool holds a list of all the SinglePoolElements with duplicates of the elements based on their weight value. So if in a Template Pool, you specify weight 100 for a house, that house will be put into this list 100 times! And when generating the layout, the game will make a copy of this list, shuffle it, and iterate over the list to try and spawn the first piece it finds that fits. This means it will rerun the checking logic for duplicate entries in this list even if it was found to not fit before at the spot. The optimization I do is skip the logic for pieces we already checked before and continue to the next piece in the list. This gives a nice performance boost for structures that uses a lot of high weight values in their Template Pools.

    • Furthermore, you can turn on the deduplicateShuffledTemplatePoolElementList config option to get even more performance out of high weight elements in Template Pools. The issue is this config comes at a cost of changing the layout of the structure. The layout is still valid and good. It would just be different than if the config option is kept off. Basically it breaks seed parity for structure layouts specifically to get that extra performance boost.

    • *To be clear, seed parity is every time you use the seed 777 and there is a village at a spot with 2 blacksmith houses, every time you use that same seed, that village will remain at that spot with the two blacksmith houses. With this optimization config turned on and same seed, that village will still be at same spot. But it may have 1 blacksmith house this time. And every time you use the same seed with this config on, the village will continue to generate with the 1 blacksmith house. The layout is seed stable. But just no longer is the same as if the config is turned off.


  • (1.21.4 with v1.1.0+): Swap StructureTemplate$Palette's list of StructureBlockInfo objects to be a palette of StructureBlockInfo objects instead for reduced memory usage when not generating that cached StructureTemplate.

    • This optimization is a modified form from contaria's Glacier mod for 1.16.1. Special thanks to them for allowing me to use their code as a basis for this optimization!

    • Essentially in vanilla, every time a structure nbt file is loaded, it is converted to a StructureTemplate object and cached. Buried in that object is a list of ALL the positions from that nbt file paired with the blocks and nbt tag at each position. This is the biggest memory hog for StructureTemplate objects. What this mod will do is swap this list with a special palette data structure object under the hood that pretends to be a list. The memory size of the palette is significantly smaller than the list! Then when queried for worldgen, it will construct the list again as a WeakReference so worldgen remains fast and works properly. And when worldgen is done, this list will get garbage collected to free up memory again, allowing each StructureTemplate to only use the full amount of memory they need when doing worldgen but stay cached in a smaller form long term. The downside is this list cannot and should not be modified with add, remove, clear calls and will throw and exception if done. Luckily, I do not think any mod is modifying this list itself on StructureTemplate directly but if they do, please let me know.

    • ModernFix does have a mixin that will make the StructureTemplate objects themselves be a SoftReference and be removed completely from memory when the game gets full on memory. This is a valid solution and aims to stop the memory leak of loading structure nbts into a cache that never clears in long term gameplay. The downside of this is that the piece has to be loaded directly from the file again if it was cleared from memory. This mixin will work just fine alongside my mod's optimization. What will probably happen is my mod make StructureTemplate smaller in memory which allows ModernFix to keep more StructureTemplates in memory without them getting fully removed from memory. Which should allow more cache hits over long term. In theory.


Structure Layout Optimizer | MinecraftResources