When added, this movement control allows the mob to glide.
import { world } from "@minecraft/server";world.afterEvents.entitySpawn.subscribe(({ entity }) => { const movementGlide = entity.getComponent("movement.glide"); movementGlide.maxTurn; movementGlide.speedWhenTurning; movementGlide.startSpeed; movementGlide.startSpeed; movementGlide.isValid();}); Copy
import { world } from "@minecraft/server";world.afterEvents.entitySpawn.subscribe(({ entity }) => { const movementGlide = entity.getComponent("movement.glide"); movementGlide.maxTurn; movementGlide.speedWhenTurning; movementGlide.startSpeed; movementGlide.startSpeed; movementGlide.isValid();});
Readonly
The entity that owns this component. The entity will be undefined if it has been removed.
Maximum turn rate for this movement modality of the mob.
This property can throw when used.
Speed in effect when the entity is turning.
Start speed during a glide.
Identifier of the component.
Static
Whether the component is valid.
Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.
When added, this movement control allows the mob to glide.
Example: entityMovementGlide.js