declareResource
declareResource(
entity,key):void
Gives entity the resource key, where its settings say it starts, as
<Resource>, the CharacterSpawn’s resources and a plugin’s resources do:
its maximum is the base of its max<Name> stat, which modifiers raise
and lower. Declare it before a save’s stats are restored, so a saved
stat wins.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
key |
ResourceKey |
Returns
Section titled “Returns”void