D
Deleted member 5254
Request: support for the Attribute API. Would require an attribute expression representing each attribute from the Attribute enum, and should let you:
- Use the Attributable interface to get AttributeInstances from an entity by attribute type. e.g.
code_language.skript:set {_attackSpeedAttr} to attribute instance "GENERIC_ATTACK_SPEED" of player # or set {_attackSpeedAttr} to attribute instance attack speed of player
- Get various values from that instance using the AttributeInstance API, e.g.:
code_language.skript:set {_baseAttackSpeed} to base attribute value of {_attackSpeedAttr} set {_defaultAttackSpeed} to default attribute value of {_attackSpeedAttr} set {_finalAttackSpeed} to [final] attribute value of {_attackSpeedAttr} # final could be optional