World mutationairWorld mutationcatchWorld mutationcritWorld mutationdestroyReadonlyentityWorld mutationgravityOptional World mutationhitOptional World mutationhitOptional World mutationhitReadonlyisWorld mutationlightningWorld mutationliquidWorld mutationonOptional World mutationownerWorld mutationshouldWorld mutationstopReadonlytypeStatic ReadonlycomponentWorld mutationThe velocity to fire the projectile. This controls both the speed and direction which which the projectile will be shot.
Optionaloptions: ProjectileShootOptionsOptional configuration for the shoot.
The projectile component controls the properties of a projectile entity and allows it to be shot in a given direction. This component is present when the entity has the minecraft:projectile component.
Example: shootArrow.ts