Dangerous Structures: Elites and Equipment
On this page (6)
Mobs spawned by Dangerous Structures — as well as natural monsters that spawn inside dangerous structures — can be outfitted with randomized armor, sun-burn protection, and opt-in Elite status with 11 named affixes.
Entities listed in the #dangerousstructures:never_enhance tag (by default Slimes, Magma Cubes, Ghasts, Blazes, Phantoms, Shulkers, Vexes, Silverfish, Endermites, Guardians, Elder Guardians, Ender Dragon, Wither, and Warden) skip all armor, fire behavior, and elite enhancements (BossGuard.mayEnhance).
Armor system
Enabled by default (armor.armorEnabled = true). Whenever a qualifying mob spawns:
- Overall roll (
armorChance): Default1.0(100% of eligible mobs roll for armor). - Piece count (
armorPiecesMintoarmorPiecesMax): Default4to4pieces. When fewer than 4 pieces are rolled, armor slots (HEAD,CHEST,LEGS,FEET) are shuffled randomly so partial armor spreads across slots rather than always favoring helmets. - Preserve existing gear (
armorOverwriteExisting): Defaultfalse. Only empty armor slots receive Dangerous Structures gear, preserving vanilla Hard-difficulty enchanted armor and equipment added by other mods. Set totrueto replace existing armor. - Independent per-slot tier roll: Each equipped slot independently rolls a material from enabled tiers (
allowLeather,allowChainmail,allowIron,allowGold,allowDiamonddefaulttrue;allowNetheritedefaultsfalse) weighted byarmor.tierWeights.*(all1by default, so enabled tiers are equally likely; any tier with weight0is skipped). - Drop chance (
armorDropChance): Default0.085(8.5%, matching vanilla). Set0.0to prevent mobs from dropping generated armor.
Sunlight and fire handling
Controlled by periodicSpawning.fireMode (default SUNLIGHT_ONLY):
| Mode | Behavior |
|---|---|
NONE |
No fire protection; undead mobs burn in sunlight normally. Recommended if Mob Sunscreen is installed. |
SUNLIGHT_ONLY (default) |
Clears fire ticks on mod-spawned ( ds_periodic) mobs when it is daytime and their eye position sees the sky, unless they are in lava or standing in fire, soul_fire, lava, magma_block, campfire, or soul_campfire. Lava traps, fire blocks, and indoor/night/Nether Fire Aspect work normally. (Note: a mob standing in open daylight cannot distinguish Fire Aspect ticks from sun-burn ticks.) |
FULL_FIRE_RESISTANCE |
Grants permanent MobEffects.FIRE_RESISTANCE (ambient, hidden particles/icon) at spawn time to enhanced mobs on both periodic and vanilla-intercepted paths. |
Elite mobs (opt-in)
Elite spawns are disabled by default (eliteSpawns.enabled = false).
When enabled (and not standing down for Apotheosis under compatMode = AUTO), every eligible spawn rolls against eliteSpawns.spawnChance (default 0.02, or a structure profile’s elite_chance for periodic/initial spawns). Mobs that already have a custom name (mob.hasCustomName()) are skipped so elites never overwrite boss or named-mob titles from other mods.
Elite bonuses
- Health (
healthMultiplier, default2.0): Applied as a permanentMULTIPLY_BASEAttributeModifier(DS Elite Health, UUID2f5b8c74-9a10-4f3e-b6d1-7c0e5a9b1f01) so it composes cleanly with Apotheosis, ApothicAttributes, Scaling Health, and similar mods instead of overwriting base health. The mob is immediately healed to its new max health. - Damage (
damageMultiplier, default1.5): Multiplies outgoing damage inLivingHurtEventrather than altering theATTACK_DAMAGEattribute — so ranged mobs (Skeletons) and explosive mobs (Creepers) deal boosted damage too. - Glowing (
glowingEffect, defaulttrue): Sets the Glowing outline (mob.setGlowingTag(true)) visible through walls. - Name tag (
nameMode, defaultPREFIX): Plain-text literal custom name (never a translation key, so vanilla clients render it cleanly) withsetCustomNameVisible(nameVisible)(defaulttrue):NONE: No custom namePREFIX:<namePrefix> <Mob>, e.g.,Elite ZombieAFFIX:<Affixes...> <Mob>, e.g.,Blazing Swift ZombieAFFIX_AND_PREFIX:<namePrefix> <Affixes...> <Mob>, e.g.,Elite Blazing Zombie
- Bonus XP (
bonusXP, default20): Added toLivingExperienceDropEventso bonus XP drops as normal XP orbs (compatible with XP-merging mods such as Clumps). - Bonus loot (
lootTable, defaultdangerousstructures:gameplay/elite_bonus): Rolled when aServerPlayerkills an elite mob, usingLootContextParamSets.CHESTwith the killer’s Luck (killer.getLuck()). LeavelootTableblank ("") to disable bonus drops. (A legacy1.2.0config containingdangerousstructures:entities/elite_bonusautomatically redirects todangerousstructures:gameplay/elite_bonus.)
Default elite bonus loot table
Each player-killed elite rolls 1 entry from dangerousstructures:gameplay/elite_bonus (total weight 120):
| Drop | Count | Weight | Base chance |
|---|---|---|---|
Iron Ingot |
1–3 |
30 |
25.0% |
Gold Ingot |
1–3 |
20 |
16.7% |
Emerald |
1–2 |
20 |
16.7% |
Bottle o’ Enchanting |
1–3 |
12 |
10.0% |
Diamond |
1 |
8 |
6.7% |
Golden Apple |
1 |
5 |
4.2% |
(Nothing / empty) |
— |
25 |
20.8% |
Elite affixes (opt-in)
Enable affixes by setting both eliteSpawns.enabled = true and eliteSpawns.affixesEnabled = true. Each elite rolls between affixCountMin (1) and affixCountMax (2) distinct affixes using weighted selection without replacement (EliteAffix.select). Individual affixes can be excluded by ID via eliteSpawns.affixBlacklist, and all 11 affixes are listed in-game with /ds affixes.
Attribute modifiers use stable UUIDs and skip attributes an entity lacks (for example, BRUTAL skips Skeletons that lack ATTACK_DAMAGE). Affix membership is stored as entity scoreboard tags (ds_affix_<path>), so effects persist across world reloads.
| Affix ID | Display name | Weight | Effect |
|---|---|---|---|
dangerousstructures:vigorous |
Vigorous |
10 |
+50% base Max Health (MULTIPLY_BASE +0.5) and heals to full |
dangerousstructures:brutal |
Brutal |
10 |
+50% base Attack Damage (MULTIPLY_BASE +0.5, melee attribute mobs) |
dangerousstructures:swift |
Swift |
10 |
+25% base Movement Speed (MULTIPLY_BASE +0.25) |
dangerousstructures:armored |
Armored |
10 |
+8 Armor and +4 Armor Toughness (ADDITION) |
dangerousstructures:unyielding |
Unyielding |
8 |
+0.6 Knockback Resistance (ADDITION) |
dangerousstructures:regenerating |
Regenerating |
6 |
Permanent Regeneration I ( amplifier 0) |
dangerousstructures:resilient |
Resilient |
6 |
Permanent Resistance I ( amplifier 0) |
dangerousstructures:blazing |
Blazing |
5 |
Permanent Fire Resistance + sets hit targets on fire for 5 seconds |
dangerousstructures:venomous |
Venomous |
5 |
Inflicts Poison I for 5 seconds (100 ticks) on hit |
dangerousstructures:withering |
Withering |
4 |
Inflicts Wither I for 4 seconds (80 ticks) on hit |
dangerousstructures:volatile |
Volatile |
3 |
Explodes on death (radius/power 2.5, entity-only — never breaks structure blocks) |