HytaleDocs
Misc

ApplyForceInteraction

Applies a force to the user, optionally waiting for a condition to met before continuing.

Type

This field controls the type, it must be set to the constant value "ApplyForce" to function as this type.

Type information: Constant value: ApplyForce

Parent

When set this asset will inherit properties from the named asset.

When inheriting from another ApplyForceInteraction most properties will simply be copied from the parent asset to this asset. In the case where both child and parent provide a field the child field will simply replace the value provided by the parent, in the case of nested structures this will apply to the fields within the structure. In some cases the field may decide to act differently, for example: by merging the parent and child fields together.

Type information: String

ViewDistance

Configures the distance in which other players will be able to see the effects of this interaction.

Type information: Number defaults to: 96.0

Effects

Sets effects that will be applied whilst the interaction is running.

Type information:

(Nullable)

InteractionEffects with the following properties:

KeyTypeDescription
Particles(Nullable) Array of the type:
ModelParticle

ModelParticle with the following properties:

KeyTypeDescription
SystemIdString

Reference to a ParticleSystem asset

TargetEntityPartEntityPart
TargetNodeName(Nullable) String
Color(Nullable) A color in the form:

  • #RRGGBB

  • rgb(rrr, ggg, bbb)

ScaleNumber defaults to: 1.0
PositionOffset(Nullable) Vector3f
RotationOffset(Nullable) Direction
DetachedFromModelBoolean defaults to: false

To indicate if the spawned particle should be attached to the model and follow it, or spawn in world space.

ClearParticlesOnRemoveBoolean defaults to: false

When the owning entity is removed, clear this effect's already-emitted particles instantly instead of letting them finish their lifespan.

Particles to play when triggering this interaction.

FirstPersonParticles(Nullable) Array of the type:
ModelParticle

ModelParticle with the following properties:

KeyTypeDescription
SystemIdString

Reference to a ParticleSystem asset

TargetEntityPartEntityPart
TargetNodeName(Nullable) String
Color(Nullable) A color in the form:

  • #RRGGBB

  • rgb(rrr, ggg, bbb)

ScaleNumber defaults to: 1.0
PositionOffset(Nullable) Vector3f
RotationOffset(Nullable) Direction
DetachedFromModelBoolean defaults to: false

To indicate if the spawned particle should be attached to the model and follow it, or spawn in world space.

ClearParticlesOnRemoveBoolean defaults to: false

When the owning entity is removed, clear this effect's already-emitted particles instantly instead of letting them finish their lifespan.

Particles to play when triggering this interaction while in first person.

WorldSoundEventId(Nullable) String

Reference to a SoundEvent asset

Sound to play when triggering this interaction.

LocalSoundEventId(Nullable) String

Reference to a SoundEvent asset

Sound to play when triggering this interaction but only to the player that triggered it.

Trails(Nullable) Array of the type:
ModelTrail

ModelTrail with the following properties:

KeyTypeDescription
TrailId(Nullable) Either String or Trail

Reference to a Trail asset

TargetEntityPart(Nullable) EntityPart (1)
TargetNodeName(Nullable) String
PositionOffset(Nullable) Vector3f
RotationOffset(Nullable) Direction
FixedRotationBoolean defaults to: false

The model trails to create when triggering this interaction

WaitForAnimationToFinishBoolean defaults to: false

Whether this interaction should hold until the animation is finished before continuing. Generally this overrides the runtime of the interaction.

ItemPlayerAnimationsId(Nullable) Either String or ItemPlayerAnimations

Reference to a ItemPlayerAnimations asset

The item animations set to use while this interaction is active

ItemAnimationId(Nullable) String

The item animation to play when triggering this interaction.

ClearAnimationOnFinishBoolean defaults to: false

Whether any animations triggered by this interaction should be cleared when this interaction finishes.

ClearSoundEventOnFinishBoolean defaults to: false

Whether any sound events triggered by this interaction should be cleared when this interaction finishes.

CameraEffect(Nullable) Either String or CameraEffect

Reference to a CameraEffect asset

The camera effects to trigger while this interaction is active.

HideFirstPersonHeldItemBoolean defaults to: false

Whether to hide the held item from the local player's own first-person view while this interaction is active. Other players still see the item. Default false.

MovementEffects(Nullable)
MovementEffects

MovementEffects with the following properties:

KeyTypeDescription
DisableAllBoolean defaults to: false

Determines whether all movement input is disabled

DisableForwardBoolean defaults to: false

Determines whether forwards movement input is disabled

DisableBackwardBoolean defaults to: false

Determines whether backwards movement input is disabled

DisableLeftBoolean defaults to: false

Determines whether left-strafe movement input is disabled

DisableRightBoolean defaults to: false

Determines whether right-strafe movement input is disabled

DisableSprintBoolean defaults to: false

Determines whether sprint input is disabled

DisableJumpBoolean defaults to: false

Determines whether jump input is disabled

DisableCrouchBoolean defaults to: false

Determines whether crouch input is disabled

SpeedMultiplier(Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$

The multiplier applied to the entity's movement speed

The movement effects to apply while this interaction is active.

Zoom(Nullable) ZoomConfig

Optional zoom configuration driving the shared client-side zoom system while this interaction step is active. See ZoomConfig for the available fields.

By default the zoom clears when this step finishes; set PersistZoom to keep it applied for the rest of the chain (until the chain ends or a later step's zoom supersedes it).

PersistZoomBoolean defaults to: false

Whether this step's Zoom keeps applying after the step finishes, covering the rest of the chain. Ignored when Zoom is absent.

StartDelay(Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$

An optional delay on applying any interaction effects.

HorizontalSpeedMultiplier

The multiplier to apply to the horizontal speed of the entity whilst this interaction is running.

Type information:

(Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$

RunTime

The time in seconds this interaction should run for.

If Effects.WaitForAnimationToFinish is set and the length of the animation is longer than the runtime then the interaction will run for longer than the set time.

Type information:

(Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$

OnItemChangeBehavior

What should happen to the interaction when the entity's held item changes.

Type information:

(Nullable) Any one of the following String (defaults to Cancel):

NameDescription
"Cancel"
"Fail"
"Finish"
"Ignore"

CancelOnItemChange

Deprecated field for whether the interaction will be cancelled when the entity's held item changes.

Type information: Boolean

Rules

A set of rules that control when this interaction can run.

Type information:

InteractionRules with the following properties:

KeyTypeDescription
BlockedBy(Nullable) Array of the type: Any one of the following String:
InteractionType
NameDescription
"Primary"
"Secondary"
"Ability1"
"Ability2"
"Ability3"
"Ability4"
"Use"
"Pick"
"Pickup"
"CollisionEnter"
"CollisionLeave"
"Collision"
"EntityStatEffect"
"SwapTo"
"SwapFrom"
"Death"
"Wielding"
"ProjectileSpawn"
"ProjectileHit"
"ProjectileMiss"
"ProjectileBounce"
"Held"
"HeldOffhand"
"Equipped"
"Dodge"
"GameModeSwap"
"OnBreak"
"OnBreakImpact"

A collection of interaction types that should block this interaction from starting. If not set then a set of default rules will be applied based on the interaction type that theinteraction is fired with. This is only effective when used on the root interaction of a chain.

BlockingArray of the type: Any one of the following String:
InteractionType
NameDescription
"Primary"
"Secondary"
"Ability1"
"Ability2"
"Ability3"
"Ability4"
"Use"
"Pick"
"Pickup"
"CollisionEnter"
"CollisionLeave"
"Collision"
"EntityStatEffect"
"SwapTo"
"SwapFrom"
"Death"
"Wielding"
"ProjectileSpawn"
"ProjectileHit"
"ProjectileMiss"
"ProjectileBounce"
"Held"
"HeldOffhand"
"Equipped"
"Dodge"
"GameModeSwap"
"OnBreak"
"OnBreakImpact"

A collection of interaction types that this interaction blocks from starting whilst running. Defaults to an empty set (blocking nothing).

InterruptedBy(Nullable) Array of the type: Any one of the following String:
InteractionType
NameDescription
"Primary"
"Secondary"
"Ability1"
"Ability2"
"Ability3"
"Ability4"
"Use"
"Pick"
"Pickup"
"CollisionEnter"
"CollisionLeave"
"Collision"
"EntityStatEffect"
"SwapTo"
"SwapFrom"
"Death"
"Wielding"
"ProjectileSpawn"
"ProjectileHit"
"ProjectileMiss"
"ProjectileBounce"
"Held"
"HeldOffhand"
"Equipped"
"Dodge"
"GameModeSwap"
"OnBreak"
"OnBreakImpact"

A collection of interaction types that should stop this interaction while it's running. This is only effective when used on the root interaction of a chain.

Interrupting(Nullable) Array of the type: Any one of the following String:
InteractionType
NameDescription
"Primary"
"Secondary"
"Ability1"
"Ability2"
"Ability3"
"Ability4"
"Use"
"Pick"
"Pickup"
"CollisionEnter"
"CollisionLeave"
"Collision"
"EntityStatEffect"
"SwapTo"
"SwapFrom"
"Death"
"Wielding"
"ProjectileSpawn"
"ProjectileHit"
"ProjectileMiss"
"ProjectileBounce"
"Held"
"HeldOffhand"
"Equipped"
"Dodge"
"GameModeSwap"
"OnBreak"
"OnBreakImpact"

A collection of interaction types that this interaction should stop when it starts.

BlockedByBypass(Nullable) String

A tag that if matched will bypass the BlockedBy rules.

BlockingBypass(Nullable) String

A tag that if matched will bypass the Blocking rules.

InterruptedByBypass(Nullable) String

A tag that if matched will bypass the InterruptedBy rules.

InterruptingBypass(Nullable) String

A tag that if matched will bypass the Interrupting rules.

Settings

Per a gamemode settings.

Type information:

(Nullable) Map of the following:

KeyTypeDescription
AdventureInteractionSettings
CreativeInteractionSettings

Camera

Configures the camera behaviour for this interaction.

Type information:

(Nullable)

InteractionCameraSettings with the following properties:

KeyTypeDescription
FirstPerson(Nullable) Array of the type:
InteractionCamera

InteractionCamera with the following properties:

KeyTypeDescription
Time(Nullable) Either Number defaults to: 0.10000000149011612 or String that matches the pattern: ^(-?Infinity|NaN)$
PositionVector3f
RotationDirection
ThirdPerson(Nullable) Array of the type:
InteractionCamera

InteractionCamera with the following properties:

KeyTypeDescription
Time(Nullable) Either Number defaults to: 0.10000000149011612 or String that matches the pattern: ^(-?Infinity|NaN)$
PositionVector3f
RotationDirection

Next

The interactions to run when this interaction succeeds.

Type information:

(Nullable) Either String or Interaction

Reference to a Interaction asset

Failed

The interactions to run when this interaction fails.

Type information:

(Nullable) Either String or Interaction

Reference to a Interaction asset

Direction

The direction of the force to apply.

Type information:

(Nullable)

Vector3d with the following properties:

KeyTypeDescription
XNumber defaults to: 0.0
YNumber defaults to: 0.0
ZNumber defaults to: 0.0

AdjustVertical

Whether the force should be adjusted based on the vertical look of the user.

Type information: Boolean

Force

The size of the force to apply.

Type information: Number

Forces

A collection of forces to apply to the user. Replaces Direction, AdjustVertical and Force if used.

Type information:

Array of the type:

Force with the following properties:

KeyTypeDescription
Direction
Vector3d

Vector3d with the following properties:

KeyTypeDescription
XNumber defaults to: 0.0
YNumber defaults to: 0.0
ZNumber defaults to: 0.0

The direction of the force to apply.

AdjustVerticalBoolean defaults to: false

Whether the force should be adjusted based on the vertical look of the user.

ForceNumber defaults to: 1.0

The size of the force to apply.

Duration

The duration for which force should be continuously applied. If 0, force is applied on first run.

Type information:

(Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$

VerticalClamp

The angles in degrees to clamp the look angle to when adjusting the force

Type information:

(Nullable) Fixed size array of the following:

Type
Either Number or String that matches the pattern: ^(-?Infinity|NaN)$
Either Number or String that matches the pattern: ^(-?Infinity|NaN)$

WaitForGround

Determines whether or not on ground should be checked

Type information: Boolean defaults to: true

WaitForCollision

Determines whether or not collision should be checked

Type information: Boolean defaults to: false

RaycastDistance

The distance of the raycast for the collision check

Type information:

(Nullable) Either Number defaults to: 1.5 or String that matches the pattern: ^(-?Infinity|NaN)$

RaycastHeightOffset

The height offset of the raycast for the collision check (default 0)

Type information:

(Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$

RaycastMode

The type of raycast performed for the collision check

Type information:

(Nullable) Any one of the following String (defaults to FollowMotion):

NameDescription
"FollowMotion"
"FollowLook"

GroundCheckDelay

The delay in seconds before checking if on ground

Type information:

(Nullable) Either Number defaults to: 0.10000000149011612 or String that matches the pattern: ^(-?Infinity|NaN)$

CollisionCheckDelay

The delay in seconds before checking entity collision

Type information:

(Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$

ChangeVelocityType

Configures how the velocity gets applied to the user.

Type information:

(Nullable) Any one of the following String (defaults to Set):

NameDescription
"Add"

Adds the velocity to any existing velocity

"Set"

Changes the velocity to the given value. Overriding existing values.

VelocityConfig

Specific configuration options that control how the velocity is affected.

Type information:

(Nullable)

VelocityConfig with the following properties:

KeyTypeDescription
GroundResistance(Nullable) Either Number defaults to: 0.8199999928474426 or String that matches the pattern: ^(-?Infinity|NaN)$
GroundResistanceMax(Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$
AirResistance(Nullable) Either Number defaults to: 0.9599999785423279 or String that matches the pattern: ^(-?Infinity|NaN)$
AirResistanceMax(Nullable) Either Number defaults to: 0.0 or String that matches the pattern: ^(-?Infinity|NaN)$
Threshold(Nullable) Either Number defaults to: 1.0 or String that matches the pattern: ^(-?Infinity|NaN)$

The threshold of the velocity's length before resistance starts to transition to the Max values (if set)

Style(Nullable) Any one of the following String (defaults to Linear):
VelocityThresholdStyle
NameDescription
"Linear"
"Exp"

Whether the transition from min to max resistance values should be linear or not

GroundNext

The interaction to run if on-ground is apparent.

Type information:

(Nullable) Either String or Interaction

Reference to a Interaction asset

CollisionNext

The interaction to run if collision is apparent.

Type information:

(Nullable) Either String or Interaction

Reference to a Interaction asset

UseTargetBlockForDirection

Determines whether to align the direction to the target block of the interaction chain. The interaction ignores Direction and Forces if this is used, only the settings in the root of the interaction will be used.

Type information: Boolean defaults to: false

Tags

Tags are a general way to describe an asset that can be interpreted by other systems in a way they see fit.

For example you could tag something with a Material tag with the values Solid and Stone, And another single tag Ore.

Tags will be expanded into a single list of tags automatically. Using the above example with Material and Ore the end result would be the following list of tags: Ore, Material, Solid, Stone, Material=Solid and Material=Stone.

Type information:

(Nullable) Map of the following:

KeyType
any StringArray of String

Notes:

Types referenced by this type

EntityPart

Any one of the following String (defaults to Self):

NameDescription
"Self"
"Entity"
"PrimaryItem"
"SecondaryItem"

EntityPart (1)

(Nullable) Any one of the following String (defaults to Self):

NameDescription
"Self"
"Entity"
"PrimaryItem"
"SecondaryItem"

On this page