Damage Caps banner
Damage Caps icon

Damage Caps

A mod that makes so mobs that are listed on a white list will be able to be set different types of damage caps: First type should make so the listed mob will...

00Free
fabricServer1.20.1mod

Damage Caps

Overview

This mod lets server owners protect special mobs from taking too much damage at once. You can set a limit on how much damage specific mobs can take per hit - either a flat number or a percentage of their health.

Features

  • Flat Damage Cap: Limit mobs to take no more than a specific amount of damage per hit (default: 15)
  • Percentage Cap: Limit mobs to take no more than a percentage of their max health per hit (default: 5%)
  • Whitelist System: Choose exactly which mobs get damage protection
  • Kill Command Safe: The /kill command still works instantly on protected mobs

How to Use

  1. Start your server once to generate the config file at config/damagecaps.properties
  2. Open the config file with any text editor
  3. Add mob IDs to either [flatCapEntities] or [percentCapEntities] sections
  4. Adjust flatDamageCap and percentHealthCap values in the [settings] section
  5. Restart your server or reload for changes to take effect

Example Config

[settings]
flatDamageCap = 15.0
percentHealthCap = 5.0

[flatCapEntities]
minecraft:wither
minecraft:ender_dragon

[percentCapEntities]
minecraft:warden

Tips & Tricks

  • Use the flat cap for bosses with high health to make fights last longer
  • Use the percentage cap for mobs where you want damage to scale with their health
  • You can find mob IDs by enabling debug info (F3) and looking at targeted entities
  • The mod works on modded mobs too - just use their full ID (like modid:custom_mob)

Known Limitations

  • The damage cap applies per hit, so rapid attacks can still deal significant damage over time
  • Changes to the config require a server restart to take effect