Mineuniverse
Log in Register
Mods

Ranged Damage Limit

Enable ranged damage protection for specific mobs. Ranged damage falloff can also be enabled. Highly Configurable!
by hakujoucho
Download Claim this project
471,749 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Adventure and RPG Server Utility Utility & QoL

Modpack developers may want ranged damage restrictions to encourage close-quarters combat and prevent "sniping" gameplay. This mod provides configurable solutions to cap ranged damage, with support extending beyond projectile attacks.

Through the configuration file (config/RangedDamageLimit-Rules.json), you can enable ranged damage protection for specific mobs, which either caps the damage received at a specific value or completely nullifies attacks when they occur beyond a set distance.

{

    "mobId": Entity registry ID (e.g. 'minecraft:pig', 'twilightforest:kobold').
    
    "protectionDistance": Minimum distance (in blocks) required to trigger ranged damage protection mechanics.

    "damageCap": Maximum damage allowed when attack originates beyond protectionDistance.
    
    "noAggroBeyondCertainDistance": [Boolean] Whether to completely nullify attacks and prevent aggro beyond specified distance.
    
    "noAggroDistance": Distance threshold for attack nullification (must be ≥ protectionDistance when enabled).

}

You can add several mobs and apply different settings for them, like: 

[
  {
    "mobId": "minecraft:pig",
    "protectionDistance": 20.0,
    "damageCap": 2.0,
    "noAggroBeyondCertainDistance": false,
    "noAggroDistance": 25.0
  },

  {
    "mobId": "minecraft:zombie",
    "protectionDistance": 40.0,
    "damageCap": 2.0,
    "noAggroBeyondCertainDistance": true,
    "noAggroDistance": 64.0
  }
]

Additionally, damage falloff (it's linear) can be configured (in config/RangedDamageLimit-Falloff.json) for long-range attacks based on distance.

For instance, if you set the falloff to 0.5, the damage will lose 50% of its original value per block, which means the damage would be reduced to zero beyond 2 blocks. And if you set the falloff to 0.0, there will be no ranged damage falloff.

RangedDamageLimit-Forge-1.20.1-1.1.0-beta.jar
MC 1.20.1, Forge
Beta 2025-11-02 Get
RangedDamageLimit-Forge-1.20.1-1.0.0.jar
MC 1.20.1, Forge
Release 2025-03-02 Get

More from hakujoucho

Simple BBQ Unofficial
9,914
Headshot Bonus
91,452
Drink It! Refoxed
896
Quiet!
8,267
Kill Counter: Kill Streak Announcer + Mob Death Message
816
No Random Drop Offset
8,149

You Might Also Like

APTweaks: Items (11.x Classic)
Item clustering (fallen blocks, experience orbs, ...) and garbage cleanup.
9,884,514
VanillaDeathChest (Fabric)
Places containers when players die that contain their items.
994,762
Styled Nicknames
Simple, but configurable nicknaming mod allowing your server's players (and admins) to change their nickname with full formatting support
989,499
Tiquality
Make server lag the problem of the source player.
99,489
Blame (Fabric)
Those gosh darn crashlogs not saying which worldgen feature is crashing!
99,012
Weathering with You
Forecast Minecraft weather with a radar or a hat!
98,579