Skip to content

Conditional: Entity Type

ricochet1k edited this page Feb 16, 2012 · 1 revision

Syntax: {entity}.type.{typealias}

Description: Returns true if the specified entity's type matches the element alias supplied. Note that a type can be matched to a parent type - see the Configuration Reference, section The ModDamage Elements Tree.

Example:

Spawn: #Humans spawn with slightly less health than usual.
    - 'if target.type.human': '-2'
Clone this wiki locally