Misc
DamageEffects
Type information:
(Nullable) Array of the type:
ModelParticle with the following properties:
| Key | Type | Description |
|---|
| SystemId | StringReference to a ParticleSystem asset | |
| TargetEntityPart | Any one of the following String (defaults to Self):
EntityPart
| Name | Description |
|---|
"Self" | | "Entity" | | "PrimaryItem" | | "SecondaryItem" | |
| |
| TargetNodeName | (Nullable) String | |
| Color | (Nullable) A color in the form:
-
#RRGGBB
-
rgb(rrr, ggg, bbb)
| |
| Scale | Number defaults to: 1.0 | |
| PositionOffset | (Nullable)
Vector3f
Vector3f with the following properties:
| Key | Type | Description |
|---|
| X | Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | | | Y | Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | | | Z | Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | |
| |
| RotationOffset | (Nullable)
Direction
Direction with the following properties:
| Key | Type | Description |
|---|
| Yaw | (Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | | | Pitch | (Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | | | Roll | (Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | |
| |
| 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. |
Type information:
(Nullable) Array of the type: Particle System that can be spawned in the world.
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
Vector3f with the following properties:
| Key | Type | Description |
|---|
| X | Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | | | Y | Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | | | Z | Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | |
| The position offset from the spawn position. |
| RotationOffset | (Nullable)
Direction
Direction with the following properties:
| Key | Type | Description |
|---|
| Yaw | (Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | | | Pitch | (Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | | | Roll | (Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$ | |
| The rotation offset from the spawn rotation. |
Type information: (Nullable) String
Reference to a SoundEvent asset
Type information: (Nullable) String
Reference to a SoundEvent asset
The sound to play to a player receiving the damage.
Type information: (Nullable) String
Reference to a SoundEvent asset
Type information: Number defaults to: 75.0
Type information:
(Nullable) 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 | |
|
Type information:
(Nullable) Either String or CameraEffect
Reference to a CameraEffect asset
A multiplier to apply to any stamina drain caused by this damage.
Type information:
(Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$
Types referenced by this type
(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. |