promotional bannermobile promotional banner

Simple Damage Caps

Data-driven and fully customizable mod that allows you to put arbitrary per-hit damage caps on any mob.

Overview

A member of the Minecraft Pack Development discord was looking for a mod to cap the amount of damage an entity could recieve in a single blow, and other mods on offer weren't configurable or customizable enough. As such I quickly threw together this mod allowing you to set per-entity damage caps with Neoforge's Datamaps.

Configuration

Configuration of the mod is entirely done through datapacks.

  • Three shortcut tags exist for pack devs who just want a simple damage cap and aren't interested in configuration via datamaps. Entity Types tagged with #simpledamagecaps:default_flat_damage_cap, #simpledamagecaps:default_percentage_damage_cap, and #simpledamagecaps:invincible will be able to take no more than 15 damage per hit, 5% of max health per hit, and no damage at all, respectively. 
  • Damage types can be assigned to the damage type tag #simpledamagecaps:bypasses_damage_cap in order to completely bypass the damage cap on all mobs. This defaults to damage types that bypass invulnerability (such as /kill and void damage) in vanilla.
  • Damage caps for individual entities and entity type tags can be assigned through two simple datamaps located in {your_namespace}/data_maps/entity_type/. See the spoiler below for an example.
/// damage_caps_flat.json
{
    "values": [
        "minecraft:wither": 15,
        "#minecraft:raiders": 5,
        "{entity_or_entity_type_tag_in_quotes}": {damage cap here}
    ]
}

/// damage_caps_percentage.json
{
    "values": [
        "minecraft:wither": 0.15,
        "#minecraft:raiders": 0.05,
        "{entity_or_entity_type_tag_in_quotes}": {damage cap as decimal percentage of max health)
}

Ports

Will only happen to the lastest "community consensus" modding version, at my discretion. For this mod in particular, if someone PRs a 1.20.1 port I'm willing to support it, I just don't know how to mod on 1.20

The Simple Damage Caps Team

profile avatar
  • 7
    Projects
  • 3.7K
    Downloads

More from phoenix492View all

  • NightLock project image

    NightLock

    • 43
    • Mods

    "Locks" the day cycle during a configurable time of day and/or night.

    • 43
    • September 3, 2025
    • Mods
  • Quest Eleven project image

    Quest Eleven

    • 237
    • Mods

    Adds a way to repair Music Disc 11 to obtain a new disc with Volume Beta - Eleven. Silence the nightmare, fix the disc.

    • 237
    • September 1, 2025
    • Mods
  • Blood Magic: Sacrificial Orb project image

    Blood Magic: Sacrificial Orb

    • 66
    • Resource Packs

    Swaps out Blood Magic's Sacrificial Dagger for a magical orb.

    • 66
    • August 3, 2025
    • Resource Packs
    • +2
  • Sunset's Shiny Botania+ Pack project image

    Sunset's Shiny Botania+ Pack

    • 9
    • Modpacks

    A pack good for a first foray into modded minecraft, courtesy of Botania and a few extra surprises.

    • 9
    • September 26, 2024
    • Modpacks
    • +2
  • NightLock project image

    NightLock

    • 43
    • Mods

    "Locks" the day cycle during a configurable time of day and/or night.

    • 43
    • September 3, 2025
    • Mods
  • Quest Eleven project image

    Quest Eleven

    • 237
    • Mods

    Adds a way to repair Music Disc 11 to obtain a new disc with Volume Beta - Eleven. Silence the nightmare, fix the disc.

    • 237
    • September 1, 2025
    • Mods
  • Blood Magic: Sacrificial Orb project image

    Blood Magic: Sacrificial Orb

    • 66
    • Resource Packs

    Swaps out Blood Magic's Sacrificial Dagger for a magical orb.

    • 66
    • August 3, 2025
    • Resource Packs
    • +2
  • Sunset's Shiny Botania+ Pack project image

    Sunset's Shiny Botania+ Pack

    • 9
    • Modpacks

    A pack good for a first foray into modded minecraft, courtesy of Botania and a few extra surprises.

    • 9
    • September 26, 2024
    • Modpacks
    • +2