Entity Attribute (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.5, 2.6.1 (final attribute value)

Syntax

[the] %attributetypes% [((total|final|modified))] attribute[s] [value[s]] of %livingentities%

Description

The numerical value of an entity's particular attribute(s). 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 join:
	set player's scale attribute to 0.5
	set player's (max health and scale) attributes to 10

View source