minecraft:immune_to_damage

The minecraft:immune_to_damage data component is used as an override for the damage type tag in the minecraft:immune_to_damage item component. Its value is a damage type tag.

Example

{
  "minecraft:immune_to_damage": "minecraft:is_explosion"
}
[minecraft:immune_to_damage="minecraft:is_explosion"]