ItemComponent - Damage Resistant (Expression) — SkBee
Addon: SkBee · Category: Expression · Since: 3.18.0
Syntax
damage resistant [component] of %itemstacks/itemtypes/slots%Description
Represents the damage resistant component of an item. **Requires Minecraft 26.1+** If specified, this item is invulnerable to the specified damage types when in entity form or equipped. See [**Damage Resistant**](https://minecraft.wiki/w/Data_component_format#damage_resistant) on McWiki for more details.
**Changers**: `set` = Will set the damage resistant component of the item (Accepts a DamageType TagKey or a list of DamageTypes). `delete` = Will delete the damage resistant component of this item. `reset` = Will reset the damage resistant component back to the original value.
Examples
set {_damageTypes::*} to damage resistent component of player's tool
set damage resistent component of player's tool to tag key "minecraft:is_fire" from damage_type registry
reset damage resistent component of player's tool
delete damage resistent component of player's tool