get %e:ENTITY_POSSESSIVE% %attr:ATTRIBUTE% (effective|total) [value] — Expressions

get %e:ENTITY_POSSESSIVE% %attr:ATTRIBUTE% (effective|total) [value]
Attribute1.0.0

Description

Returns the effective (total with modifiers) value of an attribute on a living entity, or 0 if the entity does not have the attribute.

Examples

set totalHp to mob's max_health effective

All Possible Usages (4)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

get <e> <attr> effective
get <e> <attr> total
get <e> <attr> effective value
get <e> <attr> total value

Related (Attribute)