1. Wiki
  2. /Entities
  3. /minecraft:combat_regeneration

minecraft:combat_regeneration

Don't want to write this by hand? GodCraft sets minecraft:combat_regeneration for you with a switch.Get GodCraft

Overview

minecraft:combat_regeneration is an entity component: it goes in the components object of a custom mob, or in one of its component groups. When this mob's target is killed, the killer gets Regeneration I and loses Mining Fatigue. Used by wolves to heal after a fight.

Fields

FieldTypeDefaultDescription
apply_to_familyBoolean"false"Also gives the buff to mobs of the same type that make the kill.
apply_to_selfBoolean"false"Gives the buff to this mob when it makes the kill.
regeneration_durationInteger"5"Seconds of Regeneration I, or "infinite".

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:combat_regeneration": {
    "apply_to_family": "false",
    "apply_to_self": "false",
    "regeneration_duration": "5"
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more