promotional bannermobile promotional banner
premium banner
Difficulty is a function of distance. The further, the 'worser'!!!

Description

DIST × DIFF

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... 😡😡😡)

Core Features

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.

Player Damage Scaling

Hostile attacks scale in severity with distance. Only specific damage types are modified:

  • Mob melee attacks
  • Magic damage
  • Fire, burning, lava

Unscaled:

  • Fall damage
  • Explosion damage
  • Drowning
  • Starvation
  • PvP damage

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!

Distance-Based Mob Duplication

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:

  • Never duplicate themselves again
  • Retain normal behavioral patterns
  • Spawn around the original in a small radius
  • Obey a global safety cap defined in the config

This system increases enemy density without dramatically altering performance.

Configuration

The mod includes a configurable parameter accessible through the standard config file located in the config directory as:

dxd-common.toml

Available setting:

  • safeDistance

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.

Ideal Use Cases

  • Progressive exploration-based modpacks
  • Worlds with large continents or long-distance travel
  • Survival survers with tiered exploration zones
  • Packs seeking alternative difficulty progression without custom mobs

DIST × DIFF provides a simple but powerful ssystem for creating a living, expanding threat landscape that scales naturally alongside the player's journey.