Structure Layout Optimizer Mod (26.3, 1.20.1) – Explore Dungeons Lag-Free
Structure Layout Optimizer Mod speeds up Jigsaw structure and NBT piece generation in Minecraft and keeps their vanilla look. In vanilla Minecraft, big structures often cause lag spikes because the game checks every vertex across the whole build and tests the same pieces over and over. This mod uses a faster BoxOctree check that looks only at nearby pieces, skips blocked Jigsaw Blocks, and ignores repeat pieces that do not fit. It also removes unneeded block positions early when giant structure files load and shrinks cached structure data to use less memory. The mod works smoothly with ModernFix too, so the game keeps more structures in memory during long play sessions.
![]()
Features:
- Replaces vanilla VoxelShape checks with a BoxOctree inside a dummy VoxelShape. Instead of comparing every vertex across the whole structure, this mod checks only nearby pieces around a new piece’s bounds to cut down lag spikes during big recursive Jigsaw generation.
- Skips rigid child piece checks whenever a parent Jigsaw Block faces the structure boundary or another piece. Since there is no room to place a piece there, the game avoids running slow Jigsaw Block matchup checks.
- Cuts Jigsaw Block property checks in half by grabbing top and front values in one call instead of two. It also reads joints, targets, and name strings from NBT faster, avoids slow Enum lookups, and reorders checks so structures with many Jigsaw Blocks generate faster.
- Removes unneeded block positions outside the current chunk before StructureProcessors run when giant NBT files load. This speeds up load times for huge structures and turns off automatically for pieces whose StructureProcessor overrides finalizeProcessing, such as vanilla Trail Ruins with its Capped processor.
- Improves Jigsaw Block shuffling and priority sorting by reading selection_priority from NBT once instead of twice. A faster sorting method also helps structures that use selection_priority, like Trial Chambers, along with builds packed with Jigsaw Blocks.
- Skips rechecking repeat SinglePoolElements that already failed to fit at the current spot. In vanilla, a high-weight piece (such as weight 100) appears many times in a Template Pool list and gets tested over and over, so skipping repeats speeds up generation, and an optional config can remove duplicates from the list for extra speed.
- Swaps each cached StructureTemplate’s heavy StructureBlockInfo list for a smaller palette to lower memory use when structures are not generating. During world generation, this mod builds the full list as a WeakReference for fast access and lets garbage collection free it afterward, though other mods cannot call add, remove, or clear directly on that list.
- Works smoothly alongside ModernFix’s SoftReference cache clearing. Because cached structures take up less memory, ModernFix can keep more StructureTemplates in memory before clearing them, giving more cache hits over long play sessions.
- Keeps structures looking the same as vanilla by default, focusing only on faster generation and lower memory use.
Configuration:
deduplicateShuffledTemplatePoolElementList: Removes duplicate entries from shuffled Template Pool lists for extra speed with high-weight pieces. It is off by default because it breaks vanilla seed parity for structure layouts. For example, a village on seed 777 may spawn with 1 blacksmith house instead of 2, though the new layout stays valid and spawns the same way every time you use that seed.
Screenshots:











How to Install:
New to Minecraft? Follow our step-by-step guide to install Mods on your PC.View Guide
Requirements:
Structure Layout Optimizer Mod Download Links
For Minecraft 26.3
For Minecraft
26.2,
26.1.2,
26.1.1
All Versions Covered
26.2
26.1.2
26.1.1
26.1
For Minecraft 26.1.2, 26.1.1, 26.1
For Minecraft 1.21.11
For Minecraft 1.21.10, 1.21.9
For Minecraft 1.21.8, 1.21.7, 1.21.6
For Minecraft 1.21.5
For Minecraft 1.21.4
For Minecraft 1.21.1, 1.21
For Minecraft 1.20.1
For Minecraft 1.19.2
For Minecraft 1.18.2
For Minecraft 1.16.5
What do you prefer for world generation in a modded playthrough?
31 responses · See the full results →
0



























This post has no comments yet. Be the first — your comment will appear here.