addStatModifier
addStatModifier(
writer,entity,name,modifier):void
Adds a modifier to a stat. A stat it has not declared starts at a base of zero. A timed one is held with the tick it ends on: one of N steps added on tick T applies on ticks T to T + N − 1.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
EntityAuthority |
entity |
Entity |
name |
string |
modifier |
StatModifier |
Returns
Section titled “Returns”void