The use of predicate can be highly free to set the removal conditions for damage immunity.Let's take two examples below.
Ejection damage
The following predicate words are passed when the type of damage is not ejected:
{{"Condition": "Damage_source_properties",
"Predicate": {
"Is_projectile": false
}
}
In this way, the damage is damaged when the type of damage is injured, and the damage is not removed.
Pack download address
Player
The following predicate words are passed when the injured entity is not for players:
{{"Condition": "Inverted",
"Term": {{
"Condition": "Entity_properties",
"Entity": "This",
"Predicate": {
"Type": "Player"
}
}
}
In this way, when the injured entity is the player, the damage is not removed.
Pack download address
How to install a data packet
Original module installation guide