DamageCause
Documentation for the DamageCause asset type.
Location
Entity/Damage
Use in Your Files
Add this to your JSON files for IDE autocompletion and validation:
"$schema": "https://hytaledb.ginco.gg/schemas/DamageCause.schema.json" Schema
Inherits
stringnull
DurabilityLoss
boolean
StaminaLoss
boolean
BypassResistances
boolean
DamageTextColor
stringnull
AnimationId
stringnull
DeathAnimationId
stringnull
All of
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "DamageCause.json",
"title": "DamageCause",
"description": "DamageCause asset type",
"type": "object",
"allOf": [
{
"$ref": "base.schema.json"
}
],
"properties": {
"Inherits": {
"type": [
"string",
"null"
]
},
"DurabilityLoss": {
"type": "boolean",
"default": false
},
"StaminaLoss": {
"type": "boolean",
"default": false
},
"BypassResistances": {
"type": "boolean",
"default": false
},
"DamageTextColor": {
"type": [
"string",
"null"
]
},
"AnimationId": {
"type": [
"string",
"null"
],
"default": "Hurt"
},
"DeathAnimationId": {
"type": [
"string",
"null"
],
"default": "Death"
}
}
}