minecraft:projectile allows the entity to be a thrown entity.
Parameters
Name
Default Value
Type
Description
anchor
0
Integer
Allows you to choose an anchor point for where the projectile is fired from. 0 = Original point, 1 = EyeHeight, and 2 = Middle or body height.
angle_offset
0.0
Decimal
Alters the angle at which a projectile is vertically shot. Many splash potions in the game use this to offset their angles by -20 degrees.
catch_fire
False
Boolean
If true, the entity hit will be set on fire.
crit_particle_on_hurt
False
Boolean
If true, when a projectile deals damage, whether or not to spawn in the critical damage particles.
destroy_on_hurt
False
Boolean
When this projectile deals damage, whether or not to immediately destroy this projectile.
filter
not set
String
Entity Definitions defined here can't be hurt by the projectile.
fire_affected_by_griefing
False
Boolean
If true, whether the projectile causes fire is affected by the mob griefing game rule.
gravity
0.05
Decimal
The gravity applied to this entity when thrown. When this entity is not on the ground, subtracts this amount from the entities change in vertical position every tick. The higher the value, the faster the entity falls.
hit_sound
not set
String
The sound that plays when the projectile hits something.
hit_ground_sound
not set
String
The sound that plays when the projectile hits the ground.
homing
False
Boolean
If true, the projectile homes in to the nearest entity.
inertia
0.99
Decimal
The fraction of the projectile's speed maintained every frame while traveling in air.
is_dangerous
False
Boolean
If true, the projectile will be treated as dangerous to the players.
knockback
True
Boolean
If true, the projectile will knock back the entity it hits.
lightning
False
Boolean
If true, the entity hit will be struck by lightning.
liquid_inertia
0.6
Decimal
The fraction of the projectile's speed maintained every frame while traveling in water.
multiple_targets
True
Boolean
If true, the projectile can hit multiple entities per flight.
offset
[0, 0, 0]
Vector [a, b, c]
The offset from the entity's anchor where the projectile will spawn.
on_fire_time
0.0
Decimal
Time in seconds that the entity hit will be on fire for.
on_hit
not set
JSON Object
Defines the behaviors that may execute on a projectile's hit, including impact damage, impact effect, and stuck in ground. See more on these parameters below.
particle
ironcrack
String
Particle to use upon collision.
power
1.3
Decimal
Determines the velocity of the projectile.
reflect_on_hurt
False
Boolean
If true, this entity will be reflected back when hit.
shoot_sound
not set
String
The sound that plays when the projectile is shot.
shoot_target
True
Boolean
If true, the projectile will be shot towards the target of the entity firing it.
should_bounce
False
Boolean
If true, the projectile will bounce upon hit.
splash_potion
False
Boolean
If true, the projectile will be treated like a splash potion.
splash_range
4
Decimal
Radius in blocks of the 'splash' effect.
stop_on_hurt
False
Boolean
Determines if the projectile stops when the target is hurt.
uncertainty_base
0
Decimal
The base accuracy. Accuracy is determined by the formula uncertaintyBase - difficultyLevel * uncertaintyMultiplier.
uncertainty_multiplier
0
Decimal
Determines how much difficulty affects accuracy. Accuracy is determined by the formula uncertaintyBase - difficultyLevel * uncertaintyMultiplier.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback.