get %e:ENTITY_POSSESSIVE% %attr:ATTRIBUTE% [base] [value] — Expressions

get %e:ENTITY_POSSESSIVE% %attr:ATTRIBUTE% [base] [value]
Attribute1.0.0

Description

Returns the base value of an attribute on a living entity, or 0 if the entity does not have the attribute.

Examples

set hp to mob's max_health

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>
get <e> <attr> base
get <e> <attr> value
get <e> <attr> base value

Related (Attribute)