promotional bannermobile promotional banner

[AN]Adaptive Nemesis

The dynamic difficulty balancing module specifically designed for integration packs aims to address the issue of difficulty imbalance in current mainstream integration packs, where the early game is too easy and the late game is too challenging.
Back to Files

adaptive_nemesis-1.0.4.jar

File nameadaptive_nemesis-1.0.4.jar
Uploader
LOVE_U987LOVE_U987
Uploaded
May 30, 2026
Downloads
39
Size
389.8 KB
Mod Loaders
NeoForge
File ID
8167601
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:an-adaptive-nemesis-1530829:8167601"

Learn more about Curse Maven

What's new



⚔️ Adaptive Nemesis v1.0.4 ⚔️

Every time you grow stronger, your Nemesis evolves


✨ New Features

🎯 Boss Identification System Refactor

Adopted Strategy Pattern + Chain of Responsibility for unified Boss identification logic:

Strategy Priority Description
Type-Based 1 instanceof check for vanilla Bosses
Name-Based 2 Keyword matching for modded Bosses
Health Threshold 3 Auto-identify when MaxHealth ≥ 200

New configs: bossIdentificationKeywords, bossHealthThreshold


🛡️ Dangerous Enchantment Protection

Added dangerous enchantment detection to prevent mobs from obtaining game-breaking enchants:

Detection Keywords Examples
English immune, invulnerable, god, divine_protection
Chinese 免伤, 无敌, 免疫

Auto-skips dangerous enchants, logs WARN message


🤝 Mod Compatibility Enhancement

L2Hostility Compatibility

Config Effect
modCompatL2HostilityEnabled Skips health/speed scaling to prevent HP explosion from ADD_MULTIPLIED_TOTAL mechanic

Epic Fight & Iron's Spells NaN/Infinity Protection

Protection Description
safeSetAttribute() Prevents NaN/Infinity attribute value propagation
safeDouble() Falls back to safe defaults on abnormal values

💎 Soul Stone Marker System

Solves duplicate scaling after soul stone capture/release:

Marker Method Persistence Purpose
NBT Marker ❌ Cleared by soul stone Standard detection path
LUCK Attribute Marker ✅ Retained by soul stone Secondary detection path

Uses characteristic value 0.0420 as cross-NBT clearing marker


📝 Debug Log File

Fixed config shell issue, implemented complete log file output:

[debug]
debugLogToFile = true
debugLogFilePath = "logs/adaptive_nemesis_debug.log"

🐛 Bug Fixes

Fix Description
Mob State Validation Clears Invulnerable flag, fixes invalid health/attack/armor attributes
Config Screen Update Added "Mod Compatibility" category with 4 toggleable switches
Localization Added Added EN/ZH translations for 6 new config options

⚙️ New Config Options

Config Key Type Default Description
bossIdentificationKeywords String boss,dragon,wither,warden Boss identification keywords
bossHealthThreshold Double 200.0 Boss health identification threshold
modCompatL2HostilityEnabled Boolean true L2Hostility compatibility
modCompatEpicFightEnabled Boolean true Epic Fight compatibility
modCompatIronsSpellsEnabled Boolean true Iron's Spells compatibility
modCompatApotheosisEnabled Boolean true Apotheosis compatibility

⚔️ As the Nemesis evolves, so do we ⚔️

GitHub

This mod has no additional files