Skip to content

EntityEffect

← Back to Asset Types

Documentation for the EntityEffect asset type.

Location

Entity/Effects

Use in Your Files

Add this to your JSON files for IDE autocompletion and validation:

"$schema": "https://hytaledb.ginco.gg/schemas/EntityEffect.schema.json"

Schema

Name stringnull

The name of this entity effect that will be displayed in the UI. This must be a localization key.

ApplicationEffects unknown
Any of
ApplicationEffects
null
WorldRemovalSoundEventId stringnull
LocalRemovalSoundEventId stringnull
DamageCalculator unknown
Any of
DamageCalculator
null
DamageCalculatorCooldown NullableNumberOrSpecial
DamageEffects unknown
Any of
DamageEffects
null
StatModifierEffects unknown

Effects to play when stat modifiers are applied and updated.

Any of
DamageEffects
null
ModelOverride unknown
Any of
ModelOverride
null
ModelChange stringnull

A model to change the affected entity's appearance to.

RawStatModifiers objectnull
Additional properties: array
StatModifiers objectnull

Modifiers to apply to EntityStats.

Additional properties: number
ValueType string

Enum to specify if the StatModifiers must be considered as absolute values or percent. Default value is Absolute. When using ValueType.Absolute, '100' matches the max value.

Enum:"Percent""Absolute"
Default:"Absolute"
Duration NullableNumberOrSpecial

Value used by default unless specified otherwise in the method's call.

OverlapBehavior stringnull

Value used by default unless specified otherwise in the method's call.

Enum:"Extend""Overwrite""Ignore"
Default:"Ignore"
Infinite boolean

Value used by default unless specified otherwise in the method's call.

Default:false
Debuff boolean

Value used by default unless specified otherwise in the method's call.

Default:false
Locale stringnull

An optional translation key, used to display the damage cause upon death.

StatusEffectIcon stringnull

Value used by default unless specified otherwise in the method's call.

RemovalBehavior stringnull

Value used by default unless specified otherwise in the method's call.

Enum:"Complete""Infinite""Duration"
Default:"Complete"
Invulnerable boolean

Determines whether this effect applies the invulnerable component to the entity whilst active.

Default:false
DamageResistance objectnull
Additional properties: array
All of
base