Dangerous Structures
Discord | Documentation | GitHub
Every structure is a dungeon now.
Walk into a desert temple at high noon and find armored zombies waiting in the dark. Clear a stronghold room only for fresh hordes to fill it minutes later. Stumble into a woodland mansion where glowing elite mobs hit twice as hard and drop bonus loot when you finally take them down.
Dangerous Structures turns every generated structure in Minecraft — temples, fortresses, strongholds, monuments, mansions, and any modded structures — into permanently hostile territory. Mobs spawn inside them around the clock regardless of light level, time of day, or how many torches you place. Structures are no longer empty shells you loot once and forget. They're threats.
Built to survive a 300-mod pack: structure discovery is event-driven and budgeted, boss mobs are kept out of the spawn pool, and the mod detects and stands down for other mods that do similar things.
How It Works
Immediate Population — The moment you discover a structure, a group of hostile mobs is already waiting inside, spread across its rooms and corridors. No empty temples. No quiet strongholds.
Spawn Interception — Vanilla spawn rules are overridden inside structures. Hostile mobs bypass light level and time-of-day checks, so torches and daylight won't save you. Placement rules are still respected, so you won't find guardians flopping around a dry hallway.
Periodic Reinforcement — Each discovered structure gets its own spawn schedule. Kill everything in a room and more will appear. The structure fights back.
Structure-Aware Spawning
Mobs are chosen from the structure's own declared spawn list — the same mechanism that makes vanilla nether fortresses favour blazes and wither skeletons. Modded dungeons get the mobs their authors intended, with no configuration at all.
Failing that, it falls back to the biome list, then to a filtered global pool.
- Structure piece-aware — mobs spawn inside actual rooms and corridors, weighted toward larger spaces
- Pack spawning — mobs appear in groups matching vanilla pack sizes
- Placement validation — water mobs stay in water, tall mobs don't suffocate in ceilings
- Hazard avoidance — no spawning in lava or water
- Difficulty scaling — fewer mobs on Easy, more on Hard
- Night boost — optional faster spawn rate at night
Armored Hostiles
Mod-spawned mobs come equipped with randomized armor drawn from a configurable tier pool — leather, chainmail, iron, gold, diamond, or netherite. Each slot rolls independently, so you might face a zombie in mismatched iron and gold.
Tier weights, how many pieces a mob gets, and the overall chance of being armored are all configurable. By default armor fills only empty slots, so vanilla enchanted gear and equipment from other mods survives.
Sunlight handling has three modes: none, sunlight-only (the default — undead won't burn in daylight, but lava, fire and Fire Aspect all still work on them), or full fire immunity.
Elite Mobs (opt-in)
Enable elite spawns for a chance that any mob becomes an enhanced Elite variant:
- Boosted health and damage, applied as attribute modifiers so they stack correctly with RPG and difficulty mods rather than overwriting them
- Glowing effect — visible through walls
- Custom name tag
- Bonus loot and XP on kill, with the loot table overridable by datapack
Elite Affixes (opt-in)
Elites can roll named affixes with distinct abilities:
Vigorous · Brutal · Swift · Armored · Unyielding · Regenerating · Resilient · Blazing · Venomous · Withering · Volatile
Weighted selection, configurable count, each individually blacklistable. A Blazing Withering Zombie is a very different fight from a Swift Vigorous one.
Villages Stay Safe
Dungeons are dangerous. Towns are home.
By default the mod never spawns anything in a village or town — and it goes further, blocking vanilla's own night spawns inside them too. Come back from a fortress and your village is still standing.
It recognises towns three ways, because most village mods tag nothing: the vanilla #minecraft:village tag, a shipped datapack tag covering the town tags that sit outside it (Towns & Towers, The Missing Villages, Underground Villages, Underwater Village), and a name heuristic for everything else. The heuristic reads the structure name, not the mod name — so a mod called "Towns & Towers" still gets dangerous pillager outposts.
Village-named content that is meant to be hostile — bandit villages, occupied villages, ruined villages — is handled by an override tag, shipped pre-populated for When Dungeons Arise, Cataclysm and Ancient Villages. Both settings are one config flip if you want dangerous towns.
Structure Profiles
Tune any structure individually with a datapack file — no config editing, no Java:
{
"structures": ["minecraft:fortress"],
"priority": 10,
"spawn_cap": 14,
"elite_chance": 0.06,
"mobs": [
{ "entity": "minecraft:wither_skeleton", "weight": 6, "min_count": 1, "max_count": 3 },
{ "entity": "minecraft:blaze", "weight": 4 }
]
}
Match by structure ID or by structure tag. Override spawn cap, interval, pack size, elite chance, open-air behaviour, initial population size, or the mob pool itself. Profiles merge by priority, reload with /reload, and report their own mistakes in the log.
Atmospheric Effects (opt-in)
- Darkness effect — the same pulsing vision from the Warden, while inside a dangerous structure
- Ambient sounds — ominous cave sounds at configurable intervals
Built for Modpacks
Boss protection. Modded bosses are often registered as ordinary monsters. Three independent guards keep them out of the spawn pool: a datapack-editable entity tag shipping with defaults for Cataclysm, Bosses of Mass Destruction, Mowzie's Mobs and Ice and Fire; a max-health threshold that catches unknown bosses automatically; and a summonability check.
Conflict detection. On startup the mod checks for Apotheosis, Adaptive Performance Tweaks, Anti Mob Farm, Respawning Structures, Mob Sunscreen and Structure Essentials, logs what it found, and adjusts. With Apotheosis installed the elite system stands down by default rather than stacking two elite systems on the same mobs.
Visible diagnostics. Spawn limiters cancel spawns through the same event this mod fires. Those are counted and shown in /ds spawns, so "the mod isn't working" resolves in one command instead of a support thread.
/ds why explains exactly why spawning is or is not happening where you stand: dimension, difficulty, structure detection, sky exposure, mob cap, and external interference.
Full Control
80+ config options in the server config, plus datapack profiles and entity tags:
- Auto-detect all structures with no setup, or manually whitelist/blacklist by ID or tag
- Mob filtering by ID or by datapack tag
- Dimension filtering — allowlist, denylist, or all (modded dimensions work out of the box)
- Spawn tuning — interval, cap, pack size, player distance, position attempts
- Performance tuning — discovery budget, scan depth, chunk-loading policy
Quick Config Examples
Only specific structures:
[general]
autoDetectStructures = false
[structures]
structureWhitelist = ["minecraft:fortress", "minecraft:stronghold", "minecraft:monument"]
The full experience:
[eliteSpawns]
enabled = true
spawnChance = 0.05
affixesEnabled = true
[environmentalEffects]
applyDarknessEffect = true
playAmbientSounds = true
Surface-heavy packs — without this, open-air villages and towns get no periodic spawns:
[periodicSpawning]
openAirSpawns = "NIGHT_ONLY"
Admin Commands
All require OP level 2. Use /dangerousstructures or the shorthand /ds.
| Command | What it does |
|---|---|
/ds why |
Explain why spawning is or is not happening here |
/ds status |
Current configuration at a glance |
/ds info |
Which structures contain your position |
/ds list |
Nearby structures with coordinates |
/ds profile |
The datapack profile resolved for this structure |
/ds compat |
Detected conflicting mods and what was done |
/ds spawns |
Spawn statistics, including spawns blocked by other mods |
/ds affixes |
Every elite affix and its weight |
/ds spawn |
Force a spawn cycle here, for testing |
/ds purge [radius] |
Remove mobs this mod spawned |
/ds forget [radius] |
Clear population records so structures repopulate |
/ds validate |
Re-run config validation |
/ds reload |
Rebuild caches and the structure index |
/ds debug [on/off] |
Toggle per-spawn debug logging |
Mod API
DangerousStructuresAPI.registerDangerousStructure(
new ResourceLocation("mymod", "my_dungeon"));
boolean dangerous = DangerousStructuresAPI.isPositionDangerous(level, pos);
Server-Side Only
No client mod needed. Install on a dedicated server or in singleplayer and it just works. Players connect and play — no extra downloads required.
Requirements
- Minecraft 1.20.1
- Forge 47.2.0+
- Java 17+
