Private
constructorReadonly
entityOptional
hitOptional
hitOptional
hitReadonly
isOptional
ownerReadonly
typeStatic
Readonly
componentThe velocity to fire the projectile. This controls both the speed and direction which which the projectile will be shot.
Optional
options: 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