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 effectiveAll 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> effectiveget <e> <attr> totalget <e> <attr> effective valueget <e> <attr> total value