promotional bannermobile promotional banner

Ranged Damage Limit

Enable ranged damage protection for specific mobs. Ranged damage falloff can also be enabled. Highly Configurable!
How Dare You Not
Create your game server with affiliate logo
Create Server
affiliate banner image

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.

Ranged Damage Limit Team

profile avatar
  • 132
    Followers
  • 61
    Projects
  • 20.2M
    Downloads

More from hakujouchoView all

  • Caster Curios Bonus project image

    Caster Curios Bonus

    Add some interesting Curios accessories for Iron's Spells 'n Spellbooks!

    • 414.3K
    • November 26, 2026
  • Peyro's Scythes & Spells project image

    Peyro's Scythes & Spells

    An Iron's Spellbook Addon, adding Transformable Scythes and some Spells from one of my favourite light novel.

    • 655.2K
    • November 26, 2026
  • RPG Gods ReBelieve project image

    RPG Gods ReBelieve

    Port of RPG Gods. Flexible system to worship ancient gods and gain their favor! Add intergration also.

    • 32
    • November 21, 2026
  • OPack2Reload project image

    OPack2Reload

    Prevent Minecraft from reloading the resource packs if the player doesn't really change the selected packs. Also add a "Cancel" button to PackSelectionScreen.

    • 3.8M
    • November 9, 2026
  • Caster Curios Bonus project image

    Caster Curios Bonus

    Add some interesting Curios accessories for Iron's Spells 'n Spellbooks!

    • 414.3K
    • November 26, 2026
  • Peyro's Scythes & Spells project image

    Peyro's Scythes & Spells

    An Iron's Spellbook Addon, adding Transformable Scythes and some Spells from one of my favourite light novel.

    • 655.2K
    • November 26, 2026
  • RPG Gods ReBelieve project image

    RPG Gods ReBelieve

    Port of RPG Gods. Flexible system to worship ancient gods and gain their favor! Add intergration also.

    • 32
    • November 21, 2026
  • OPack2Reload project image

    OPack2Reload

    Prevent Minecraft from reloading the resource packs if the player doesn't really change the selected packs. Also add a "Cancel" button to PackSelectionScreen.

    • 3.8M
    • November 9, 2026