1. Wiki
  2. /Items
  3. /minecraft:damage_absorption

minecraft:damage_absorption

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

Overview

minecraft:damage_absorption is an item component: it goes in the components object of a custom item. Lets armor take some kinds of damage instead of the wearer. The item must be worn in an armor slot and needs minecraft:durability, because the soaked up damage wears the item down.

Fields

FieldTypeDefaultDescription
absorbable_causesstring[]noneDamage causes this item soaks up, for example "entity_attack". Nothing is absorbed if the list is empty.

Example

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

BP/items/<name>.json
{
  "minecraft:damage_absorption": {
    "absorbable_causes": []
  }
}

Items: Behavior pack

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