Misc
TargetedDamage
Type information:
(Nullable)
DamageCalculator with the following properties:
| Key | Type | Description |
|---|
| Type | (Nullable) Any one of the following String (defaults to Absolute):
Type
| Name | Description |
|---|
"Dps" | | "Absolute" | |
| |
| Class | Any one of the following String (defaults to Unknown):
DamageClass
| Name | Description |
|---|
"Unknown" | | "Light" | | "Charged" | | "Signature" | |
| The class of the damage being created, used by the damage system to apply modifiers based on equipment of the source. |
| BaseDamage | (Nullable) Map of the following:
Map of string to float
| |
| SequentialModifierStep | (Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | |
| SequentialModifierMinimum | (Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | |
| RandomPercentageModifier | (Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | |
Type information:
(Nullable) Map of the following:
| Key | Type |
|---|
any String | TargetEntityEffect
TargetEntityEffect with the following properties:
|
Type information:
(Nullable)
DamageEffects with the following properties:
| Key | Type | Description |
|---|
| ModelParticles | (Nullable) Array of the type:
ModelParticle
ModelParticle with the following properties:
| Key | Type | Description |
|---|
| SystemId | StringReference to a ParticleSystem asset | | | TargetEntityPart | EntityPart | | | TargetNodeName | (Nullable) String | | | Color | (Nullable) A color in the form:
-
#RRGGBB
-
rgb(rrr, ggg, bbb)
| | | Scale | Number defaults to: 1.0 | | | PositionOffset | (Nullable) Vector3f | | | RotationOffset | (Nullable) Direction | | | DetachedFromModel | Boolean defaults to: false | To indicate if the spawned particle should be attached to the model and follow it, or spawn in world space. | | ClearParticlesOnRemove | Boolean defaults to: false | When the owning entity is removed, clear this effect's already-emitted particles instantly instead of letting them finish their lifespan. |
| |
| WorldParticles | (Nullable) Array of the type:
WorldParticle
WorldParticle with the following properties:
| Key | Type | Description |
|---|
| SystemId | StringReference to a ParticleSystem asset | The id of the particle system. | | Color | (Nullable) A color in the form:
-
#RRGGBB
-
rgb(rrr, ggg, bbb)
| The colour used if none was specified in the particle settings. | | Scale | (Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The scale of the particle system. | | PositionOffset | (Nullable) Vector3f | The position offset from the spawn position. | | RotationOffset | (Nullable) Direction | The rotation offset from the spawn rotation. |
| |
| LocalSoundEventId | (Nullable) StringReference to a SoundEvent asset | |
| WorldSoundEventId | (Nullable) StringReference to a SoundEvent asset | |
| PlayerSoundEventId | (Nullable) StringReference to a SoundEvent asset | The sound to play to a player receiving the damage. |
| ViewDistance | Number defaults to: 75.0 | |
| Knockback | (Nullable) Type Selector | |
| CameraEffect | (Nullable) Either String or CameraEffectReference to a CameraEffect asset | |
| StaminaDrainMultiplier | (Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | A multiplier to apply to any stamina drain caused by this damage. |
The interactions to run when this interaction succeeds.
Type information:
(Nullable) Either String or Interaction
Reference to a Interaction asset
Types referenced by this type
(Nullable) Map of the following:
(Nullable) Any one of the following String (defaults to Ignore):
| Name | Description |
|---|
"Extend" | |
"Overwrite" | |
"Ignore" | |
Any one of the following String (defaults to Self):
| Name | Description |
|---|
"Self" | |
"Entity" | |
"PrimaryItem" | |
"SecondaryItem" | |
Any of these:
Key: Type | Type |
|---|
default case: Directional | DirectionalKnockback
DirectionalKnockback with the following properties:
| Key | Type | Description |
|---|
| Type | (Nullable) String | This field controls the type, it must be set to the constant value "Directional" to function as this type. | | Force | Number defaults to: 0.0 | | | Duration | (Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The duration for which the knockback force should be continuously applied. If 0, force is applied once. | | VelocityType | (Nullable) ChangeVelocityType | | | VelocityConfig | (Nullable) VelocityConfig | | | RelativeX | Number defaults to: 0.0 | | | VelocityY | Number defaults to: 0.0 | | | RelativeZ | Number defaults to: 0.0 | |
|
| Force | ForceKnockback
ForceKnockback with the following properties:
| Key | Type | Description |
|---|
| Type | Constant value: Force | This field controls the type, it must be set to the constant value "Force" to function as this type. | | Force | Number defaults to: 0.0 | | | Duration | (Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The duration for which the knockback force should be continuously applied. If 0, force is applied once. | | VelocityType | (Nullable) ChangeVelocityType | | | VelocityConfig | (Nullable) VelocityConfig | | | Direction | Vector3d | |
|
| Point | PointKnockback
PointKnockback with the following properties:
| Key | Type | Description |
|---|
| Type | Constant value: Point | This field controls the type, it must be set to the constant value "Point" to function as this type. | | Force | Number defaults to: 0.0 | | | Duration | (Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | The duration for which the knockback force should be continuously applied. If 0, force is applied once. | | VelocityType | (Nullable) ChangeVelocityType | | | VelocityConfig | (Nullable) VelocityConfig | | | VelocityY | Number defaults to: 0.0 | | | RotateY | Integer defaults to: 0 | | | OffsetX | Integer defaults to: 0 | | | OffsetZ | Integer defaults to: 0 | |
|
(Nullable) Any one of the following String (defaults to Add):
| Name | Description |
|---|
"Add" | Adds the velocity to any existing velocity |
"Set" | Changes the velocity to the given value. Overriding existing values. |