> ## Documentation Index
> Fetch the complete documentation index at: https://entities.lodemc.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Combat & Health

> Damage, healing, shields, potions, attributes and threat.

Hurting, healing and changing what an entity can take.

```yaml theme={null}
- damage{amount=6} +onAttack @trigger
- damage{a=10;ignorearmor=true} @playersInRadius{r=4}
- heal{amount=20} +onTimer:100 <50%
- potion{type=slowness;duration=5s;level=2} +onHurt @trigger
- taunt{amount=500} +onInteract @trigger
```

| Mechanic | Usage | What it does |
| :- | :- | :- |
| `attribute` <sub>also setattribute</sub> | `attribute{attribute=<name>;amount=<n>;duration=0}` | Sets an attribute's base value on the target, optionally for a duration. |
| `attributemodifier` | `attributeModifier{attribute=<name>;operation=ADD_NUMBER;amount=<n>;duration=0}` | Adds an attribute modifier to the target, optionally for a duration. |
| `basedamage` <sub>also bd, weapondamage, wd</sub> | `baseDamage{multiplier=1}` | Deals a multiple of the caster's own attack-damage stat. |
| `consume` | `consume{damage=1;heal=1}` | Damages the target and heals the caster. |
| `damage` <sub>also d</sub> | `damage{amount=<n>;ignorearmor=false;preventknockback=false;damagecause=ENTITY_ATTACK}` | Damages the target. Options for ignoring armor, skipping knockback or immunity frames, and the damage cause. |
| `damagepercent` <sub>also percentdamage</sub> | `damagePercent{percent=0.1;currentHealth=false}` | Deals a fraction of the target's max (or current) health. |
| `decapitate` <sub>also drophead</sub> | `decapitate` | Drops the target's head. |
| `feed` | `feed{amount=1;saturation=0;overfeed=false}` | Restores hunger (and saturation) on a player. |
| `heal` <sub>also h</sub> | `heal{amount=<n>;overheal=false;maxoverheal=1}` | Heals the target. `overheal` lets it go past max health, up to `maxoverheal`. |
| `healpercent` <sub>also percentheal, hp</sub> | `healPercent{multiplier=0.1}` | Heals a fraction of the target's max health. |
| `lightning` | `lightning{damage=<n>}` | Strikes real lightning at the target, optionally with set damage. |
| `modifydamage` <sub>also moddamage</sub> | `modifyDamage{amount=<n>;action=multiply;type=ALL}` | Changes the damage of the event that triggered the skill: multiply, add or set. |
| `oxygen` | `oxygen{amount=<n>}` | Gives a player air. |
| `physicaldamage` <sub>also meleehit, hit</sub> | `physicalDamage{multiplier=1}` | Deals a multiple of the caster's attack damage as a melee hit. |
| `potion` | `potion{type=<effect>;duration=10s;level=1}` | Applies a potion effect. `level=1` is level I. |
| `potionclear` <sub>also clearpotions, clearpotion, removeholding</sub> | `potionClear{types=<effect>,<effect>}` | Removes potion effects from the target: all of them, or only the listed types. |
| `rally` <sub>also callforhelp</sub> | `rally{radius=<n>;types=<ids>;overwritetarget=false}` | Calls nearby mobs of the listed types to attack the target. |
| `sethealth` <sub>also sethp</sub> | `setHealth{amount=<n>}` | Sets the target's health. |
| `setlevel` <sub>also modifylevel</sub> | `setLevel{action=SET;level=1}` | Changes the caster's level: set, add or subtract. |
| `setmaxhealth` <sub>also setmaxhp</sub> | `setMaxHealth{amount=<n>;mode=STATIC}` | Sets the target's max health. |
| `setnodamageticks` <sub>also setimmunityticks</sub> | `setNoDamageTicks{ticks=<n>}` | Sets how long the target is immune to damage. |
| `shield` | `shield{amount=<n>;maxshield=<n>}` | Gives the target absorption hearts, up to `maxshield`. |
| `shieldbreak` <sub>also disableshield</sub> | `shieldBreak{duration=100}` | Disables a player's shield for a while. |
| `shieldpercent` | `shieldPercent{multiplier=0.1}` | Gives absorption equal to a fraction of the target's max health. |
| `taunt` | `taunt{amount=<n>}` | Raises the caster's threat on the target and makes the target attack the caster. |
| `threat` <sub>also threatchange, threatmod</sub> | `threat{mode=add;amount=<n>}` | Changes the caster's threat toward the target: add, remove or set. See [Factions & Threat](https://entities.lodemc.net/factions-threat.md). |
| `threatclear` <sub>also clearthreat</sub> | `threatclear` | Wipes the caster's threat table. |

## Things that changed from older versions

* **Skill damage no longer fires the victim's `+onHurt`** unless the line says `triggerskills=true`, which is MythicMobs' default. `+onSkillDamage` fires either way.
* **`potion` levels start at 1.** `level=1` is level I. MythicMobs counts from 0; the [importer](https://entities.lodemc.net/mythicmobs.md) adds one for you.
* **`taunt` raises threat** and turns the target on the caster, as in MythicMobs. To just point the mob's AI at someone, use `settarget` ([Movement](https://entities.lodemc.net/mechanics-movement.md)).
* `feed` keeps LodeEntities' own defaults; an imported MythicMobs line gets MythicMobs' default written out.

Setting a mob's level is `setlevel`; nothing scales stats by level yet. See [Levels](https://entities.lodemc.net/mob-levels.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.