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 vanilla damage source names. |
Example
"damage_condition": {
"type": "origins:name",
"name": "inWall"
}
This example checks if the damage source is inWall
, which means that the player is suffocating in a block.