minecraft:mob_effect_immunity
Dynamic value
Properties
This component has no properties in the official schema: add it as an empty object {} to switch the behaviour on.
Example from the game files
This is how vanilla Parched uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:mob_effect_immunity": {
"mob_effects": [
"weakness"
]
}
}Used by 6
Vanilla entities with minecraft:mob_effect_immunity in their definition: