Distance x Difficulty Scaling for Minecraft 1.20.1 (Forge) & 1.21.1 (NeoForge)
DIST × DIFF is a dynamic world-scaling difficulty system that increases danger the farther a player travels from world spawn. Instead of relying solely on vanilla difficulty, the mod introduces a continuously increasing challenge curve based on distance, affecting both enemy strength and enemy population density. Designed for players who want exploration to feel progressively dangerous, and for modpacks that aim to create a true "concentric difficulty ring" world layout (or if you dont want people to escape spawn... 😡😡😡)
Every hostile mob gains increased maximum health the farther it spawns from world spawn. The scaling function is linear and predictable:
Multiplier = 1 + K × distance
This means mobs near spawn behave normally, while thousands of blocks out grow significantly stronger.
Hostile attacks scale in severity with distance. Only specific damage types are modified:
Unscaled:
This creates a natural survival curve without affecting core gameplay hazards unrelated to enemy combat, although explosions from creepers are quite weak considering... blame minecraft on that one!
Hostile mobs may spawn with additional duplicates depending on distance from world spawn. The further out a mob appears,s the higher chance it spawns with allies. Each duplication uses the mob's natural spawn initialization so vanilla AI and stats remain functional.
Duplicate mobs:
This system increases enemy density without dramatically altering performance.
The mod includes a configurable parameter accessible through the standard config file located in the config directory as:
dxd-common.toml
Available setting:
Which defines the distance at which difficulty effectively doubles (or quadruples on how you look at it!!!). The value is transformed internally into the slope constant used in all scaling formulas
Example:
safeDistance = 2500 [DEFAULT]
this produced a scaling consstant K = 1 / 2500 = 0.0004
The allowed range for safeDistance is 1 to 30,000,000. Low values increase difficulty extremely quickly, while high values create a very gradual difficulty curve across the world.
DIST × DIFF provides a simple but powerful ssystem for creating a living, expanding threat landscape that scales naturally alongside the player's journey.