Beta
Beta
airBeta
catchBeta
critBeta
destroyReadonly
Beta
entityBeta
gravityThe gravity applied to the projectile. When the entity is not on the ground, subtracts this amount from the projectile’s change in vertical position every tick. The higher the value, the faster the projectile falls. If negative, the entity will rise instead of fall.
This property can't be edited in read-only mode.
Optional
Beta
hitOptional
Beta
hitOptional
Beta
hitBeta
lightningBeta
liquidBeta
onOptional
Beta
ownerBeta
shouldBeta
stopReadonly
Beta
typeStatic
Readonly
Beta
componentBeta
The 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