Entity Attribute (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.5, 2.6.1 (final attribute value)
Syntax
[the] %attributetype% [(total|final|modified)] attribute [value] of %entities%Description
The numerical value of an entity's particular attribute. Note that the movement speed attribute cannot be reliably used for players. For that purpose, use the speed expression instead. Resetting an entity's attribute is only available in Minecraft 1.11 and above.
Examples
on damage of player:
send "You are wounded!" to victim
set victim's attack speed attribute to 2