No Structure Overlap

Quick rating

Community listing page, reviews may not be monitored by the author.

No Structure Overlap

By ankin

No reviews yet

Mod to prevent structures from spawning inside each other.

Mod Loaders
Minecraft

About

Description

NoStructureOverlap 3.0.0

Prevents different structures from generating inside each other during world generation.

Uses vanilla StructureStart bounding boxes after piece layout (including jigsaw) and before blocks are placed. Same structure type may still overlap; pieces within one structure are never treated as conflicts.

Works with vanilla and modded structures that use the normal NeoForge / Minecraft structure pipeline.


Features

  • Accurate bounding boxes — compares real StructureStart boxes, not guessed sizes or center distances
  • Different IDs only — blocks overlaps between different structure registry ids (e.g. village vs mansion)
  • 3D or 2D checks — full 3D AABB by default; optional X/Z-only mode so underground and surface structures can coexist when their boxes do not meet
  • Clean cancel — returns an invalid start before the structure is stored or built
  • Per-structure filters — whitelist, blacklist, and per-id enable/disable
  • Modpack friendly — tested with large numbers of structure mods

How it works

  1. Vanilla picks a candidate chunk and runs structure generation
  2. Pieces are built and the structure’s bounding box is known
  3. If that box intersects another tracked start with a different registry id, placement is cancelled
  4. Blocks are only placed later for starts that remain valid

Configuration

File: config/nostructureoverlap-common.toml

Option Default Description
enableOverlapPrevention true Master switch
use3DOverlapDetection true true = full 3D; false = X/Z only
logBlockedStructures true Log blocked placements
structureWhitelist [] If set, only these ids are checked
structureBlacklist [] These ids skip checks
structureSpecificEnabled [] Overrides, e.g. ["minecraft:mineshaft=false"]

Use real registry ids such as minecraft:village_plains.


Commands

  • /nostructureoverlap status — enabled state, tracked count, detection mode
  • /nostructureoverlap info — detailed status
  • /nostructureoverlap structures — show active filters

Installation

  1. Install NeoForge for Minecraft 1.21.1
  2. Download the mod JAR
  3. Place it in your mods folder
  4. Start the game or server

Compatibility

  • Minecraft 1.21.1
  • NeoForge 21.1.x
  • Vanilla and modded structures using Structure.generate / StructureStart
  • Does not cover custom worldgen that places blocks without structure starts

Links