EntityStatType
Documentation for the EntityStatType asset type.
Location
Entity/Stats
Use in Your Files
Add this to your JSON files for IDE autocompletion and validation:
"$schema": "https://hytaledb.ginco.gg/schemas/EntityStatType.schema.json" Schema
InitialValue
NumberOrSpecial
Min
NumberOrSpecial
Max
NumberOrSpecial
Shared
boolean
Regenerating arraynull
Array items: Regenerating
MinValueEffects unknown
Any of
MaxValueEffects unknown
Any of
ResetType
stringnull
IgnoreInvulnerability
boolean
All of
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "EntityStatType.json",
"title": "EntityStatType",
"description": "EntityStatType asset type",
"type": "object",
"allOf": [
{
"$ref": "base.schema.json"
}
],
"properties": {
"InitialValue": {
"$ref": "base.schema.json#/$defs/NumberOrSpecial"
},
"Min": {
"$ref": "base.schema.json#/$defs/NumberOrSpecial"
},
"Max": {
"$ref": "base.schema.json#/$defs/NumberOrSpecial"
},
"Shared": {
"type": "boolean",
"default": false
},
"Regenerating": {
"type": [
"array",
"null"
],
"items": {
"$ref": "common.schema.json#/$defs/Regenerating"
}
},
"MinValueEffects": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/EntityStatEffects"
},
{
"type": "null"
}
]
},
"MaxValueEffects": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/EntityStatEffects"
},
{
"type": "null"
}
]
},
"ResetType": {
"type": [
"string",
"null"
],
"title": "EntityStatResetBehavior",
"enum": [
"InitialValue",
"MaxValue"
],
"default": "InitialValue"
},
"IgnoreInvulnerability": {
"type": "boolean",
"default": false
}
}
}