Dangerous Structures

Dangerous Structures does as the title implies: makes structures more dangerous. Fully configurable - hostile mobs now spawn in all detected structures by default and regardless of light level or day-night time.
Back to Files

Dangerous Structures 1.3.0 (Forge 1.20.1)

File namedangerousstructures-1.3.0.jar
Uploader
OtectusOtectus
Uploaded
Dec 6, 2026
Downloads
2
Size
163.1 KB
Mod Loaders
Forge
File ID
10090103
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:dangerous-structures-1493401:10090103")

Learn more about Curse Maven

What's new

[1.3.0] - 2026-12-05

Dangerous Structures adds datapack profiles, structure-native mob pools, and optional elite affixes. Structure discovery now runs when players begin watching chunks, spawn checks avoid loading distant chunks, and villages stay protected even where they overlap a dungeon.

Migration and configuration

  • Fire protection is now controlled by periodicSpawning.fireMode. The default, SUNLIGHT_ONLY, protects undead from daylight while leaving lava, fire, and Fire Aspect effective. Set fireMode = "FULL_FIRE_RESISTANCE" to restore full protection. If you customized the old sunlightImmunity or fireImmunity setting, set fireMode explicitly.
  • Armor now fills empty slots by default (armor.armorOverwriteExisting = false), preserving vanilla enchanted gear and equipment supplied by other mods. Default armor tiers and piece counts stay the same.
  • Dimension selection now defaults to other.dimensionMode = "DENYLIST", enabling modded dimensions automatically. Use ALLOWLIST with the Overworld, Nether, and End to retain vanilla-only coverage. Existing configs retain explicitly saved values for settings that still exist.
  • Elite bonus loot moved to dangerousstructures:gameplay/elite_bonus. Existing eliteSpawns.lootTable configs pointing to the old built-in ID redirect automatically. If a datapack replaces the bundled table, move its override to the new path. Custom table IDs continue to work as configured.

Structure profiles and mob selection

  • Added per-structure and per-tag JSON profiles at data/<namespace>/dangerousstructures/profiles/*.json. Profiles can disable a structure or override its spawn cap, interval, pack size, initial population, elite chance, open-air rules, and mob pool. They merge by priority, reload with /reload, and log invalid entries. Examples are in examples/profiles/.
  • Structure-native mob pools respect declared spawn lists and Forge structure modifiers. For example, Nether fortresses can draw from their own blaze and wither skeleton pool. With mobs.honorEmptySpawnOverrides = true (default), an explicitly empty MONSTER list keeps the structure peaceful. With mobs.dimensionSpecificMobs = true, biomes with no eligible monsters no longer fall back to the global pool.
  • openAirSpawns accepts NEVER, NIGHT_ONLY, or ALWAYS. Under NEVER, fully sky-exposed structures have no eligible periodic spawn positions. Natural spawn checks also honor the resolved profile’s open_air setting, and classification enforces enabled: false.
  • periodicSpawning.periodicSpawnType accepts NATURAL or REINFORCEMENT. Packs can use REINFORCEMENT to bypass boss-conversion hooks that target natural spawns while keeping Forge spawn events active.

Village and town protection

  • Village protection applies in automatic and manual structure-selection modes and takes precedence where a protected town overlaps a dangerous structure. structures.villagePoiBufferSections (default 4, range 0–8) also suppresses Dangerous Structures spawns and forced natural spawns in dungeon wings near active village points of interest.
  • Classification checks #minecraft:village, #dangerousstructures:never_dangerous, and configurable villageKeywords against the structure path. This protects towns from mods such as Towns & Towers, The Missing Villages, and Underground Villages while keeping pillager outposts, ancient cities, and end cities eligible. Optional tag references keep a broken third-party village tag from disabling the rest of the protection list.
  • Added all 17 Underwater Village structures to #dangerousstructures:never_dangerous, including underwater_village:dungeon, a room within the village. Packs can mark individual exceptions with #dangerousstructures:always_dangerous. Bundled exceptions cover hostile villages from When Dungeons Arise, Cataclysm, and Ancient Villages, plus Nova Structures’ ruined town.
  • preventNaturalSpawnsInVillages (default true) blocks natural hostile spawns inside protected towns. Raids, zombie sieges, pillager patrols, spawners, spawn eggs, and commands continue to work.

Spawn correctness and population

  • Fixed silent spawn failures for vanilla mobs including zombies, creepers, spiders, blazes, and slimes. MobFactory now distinguishes a valid null result from finalizeSpawn from an actual Forge event cancellation. It tracks inline entity replacements and preserves deferred Special Mobs replacements. /ds spawns counts genuine external vetoes.
  • Initial population now waits for a non-spectator player within 112 blocks, respects doMobSpawning, the profile’s spawn_interval, and spawn caps, and records a structure as populated only after a successful placement. Initial population still ignores minPlayerDistance. The spawner skips positions more than 128 blocks from active players and requires entity-ticking chunks.
  • Population tracking is thread-safe and keyed by dimension, structure ID, and origin chunk. Structures at matching coordinates in different dimensions populate independently, and world-persistent tracking can prevent repopulation after a server restart.
  • All three position searches apply the same sky-exposure rule, closing a gap that allowed pack members onto rooftops where their leader could not spawn. Nearby-floor searches now make up to eight attempts. Placement and collision checks prevent aquatic mobs from spawning on dry land and tall mobs from suffocating in ceilings.
  • Spawn interval jitter now varies by ±25% as configured. The night boost uses the current dimension’s clock and no longer applies in the Nether or the End.
  • Periodic and initial spawns receive armor and fire protection once. The natural spawn handler also skips the mod’s ds_periodic mobs during PositionCheck.

Elites and mod compatibility

  • Added 11 optional elite affixes, disabled by default. Vigorous, Brutal, Swift, Armored, Unyielding, Regenerating, Resilient, Blazing, Venomous, Withering, and Volatile have distinct effects. Selection uses weights, prevents duplicates, and supports configurable counts and individual exclusions.
  • Elites can now roll on vanilla spawns even when periodic spawning is disabled. They respect persistentMobs, and their damage bonus applies to ranged and explosive attacks. Stable attribute-modifier UUIDs preserve stat changes from Apotheosis, ApothicAttributes, Scaling Health, and similar mods.
  • Player-killed elites can roll a datapack-configurable bonus table when doMobLoot is enabled. Its new gameplay/ path prevents mob-drop injection from adding incompatible conditions, resolving Botania’s world-load validation warnings. Elite XP drops as orbs and works with normal XP handling and mods such as Clumps.
  • Boss filtering checks #dangerousstructures:never_spawn, #forge:bosses, #c:bosses, maximum health, and canSummon. Bundled exclusions cover Cataclysm, Bosses of Mass Destruction, Mowzie’s Mobs, Ice and Fire, and others. Use #dangerousstructures:never_enhance for mobs that may spawn but should receive neither armor nor elite status.
  • Startup logs and /ds compat report detected interactions with Apotheosis, Adaptive Performance Tweaks (Spawn), Anti Mob Farm, Respawning Structures, Mob Sunscreen, and Structure Essentials. With Apotheosis installed, Dangerous Structures disables its own elites by default. Override this with eliteSpawns.compatMode.
  • Fixed Forge’s displayTest declaration so clients can join a server running Dangerous Structures without installing the mod locally.

Performance

  • Replaced per-tick scans of loaded chunks and the full structure registry with chunk-watch events and a per-tick discovery budget. Indexing skips chunks without structure references, reads ChunkStatus.STRUCTURE_STARTS directly, and finds structures entirely above or below Y = 0. Out-of-range unloaded chunks no longer keep the discovery queue spinning.
  • Natural spawn checks inspect loaded chunk references and consult the structure index for large structures, avoiding synchronous loads of distant origin chunks. Spawn-position scans read from the loaded chunk once per column, stay within world height, and stop at configurable depth and hit limits.
  • Per-structure schedules spread spawning across ticks. Structure-piece weights are computed once per structure, population counts query only mobs, and /ds list uses a LinkedHashSet to deduplicate results.

Commands and diagnostics

  • Added /ds why, /ds profile, /ds compat, /ds affixes, /ds spawn, /ds purge, /ds forget, and /ds validate. /ds why explains local spawning and village protection, /ds list distinguishes protected villages from config exclusions, and /ds spawn reports more detail about spawn attempts.
  • /ds validate reruns config checks and reports unknown IDs, contradictory options, and unmet dependencies in chat. Validation and config comments clarify that useVanillaSpawnWeights requires dimensionSpecificMobs and that initial population ignores minPlayerDistance.
  • /ds debug without arguments reports its current state. The toggle survives config reloads and resets when the server stops. Debug logging now records periodic spawn-position failures, and /ds info reports the correct 64-block search radius.

Internal changes

  • Reduced TickSpawnHandler to a roughly 160-line dispatcher. Shared helpers now handle mob selection, placement, enhancement, and piece weighting. Spawn timing and cap calculations can be tested independently of config state.
  • Unified dangerous-structure caching so API registrations take effect consistently. The API exposes an unmodifiable registration set. Also documented spawn-stat thread safety, replaced six hardcoded values with named constants, and simplified ambient sound timing.
  • Expanded the test suite from 5 to 49 tests, covering distributed spawn positions, jitter bounds, cap scaling, piece weighting, affix selection, elite naming, population persistence, and profile parsing. Removed the unused datagen run configuration and generated-resources source directory.

This mod has no related projects