Name
Checks whether the damage source has a specific name (essentially checking the type of damage).
Type ID: origins:name
Fields
| Field | Type | Default | Description |
|---|---|---|---|
name |
String | Name the damage source should have to pass the check. See List of Damage Sources for possible values. |
Examples
"damage_condition": {
"type": "origins:name",
"name": "inWall"
}
This example will check if the damage source name is inWall, meaning that the condition will evaluate to true if the entity is suffocating in a block.