VOOZH about

URL: https://minecraft.wiki/w/Projectile

โ‡ฑ Projectile โ€“ Minecraft Wiki


Projectile

From Minecraft Wiki
Jump to navigation Jump to search
๐Ÿ‘ Image
Various projectiles being fired from a dispenser.
๐Ÿ‘ Image
There is a category for this topic!
 
See Category:Projectiles for a list of pages relating to this topic.

A projectile is an entity that can be fired, shot, or thrown by mobs, other entities, dispensers, and players. Projectiles can also be summoned using /summon.

List of projectiles

[edit | edit source]
๐Ÿ‘ Image
"Throw" redirects here. For the entity created by throwing items, see Item (entity). For the mob that can toss up other mobs, see Iron Golem.

Inheritance

[edit | edit source]
This feature is exclusive to Java Edition.
 

Table

[edit | edit source]

Mobs and players equipped with bows and crossbows can use them to shoot arrows. The player can also throw various items as projectiles. Some mobs shoot projectiles directly as an attack.

Projectile Sources Damage Item form
๐Ÿ‘ Image
Ice Bomb
โ€Œ[edu only]
๐Ÿ‘ Image
Player
, when used
๐Ÿ‘ Image
Dispenser
, when shot
0 ๐Ÿ‘ Image
Ice Bomb
๐Ÿ‘ Image
Fireball
๐Ÿ‘ Image
Ghast
, as an attack
6HP๐Ÿ‘ โค๏ธ
๐Ÿ‘ โค๏ธ
๐Ÿ‘ โค๏ธ
[note 1]
None
๐Ÿ‘ Image
Small Fireball
๐Ÿ‘ Image
Blaze
, as an attack
๐Ÿ‘ Image
Dispenser
, when shooting a fire charge
๐Ÿ‘ Image
Ominous Trial Spawner
, when active
5HP๐Ÿ‘ โค๏ธ
๐Ÿ‘ โค๏ธ
๐Ÿ‘ ๐Ÿ’”
๐Ÿ‘ Image
Fire Charge
[note 2]
๐Ÿ‘ Image
Dragon Fireball
๐Ÿ‘ Image
Ender Dragon
, as an attack
0 None
๐Ÿ‘ Image
Launched Firework Rocket
๐Ÿ‘ Image
Player
, when used, and not gliding with an elytra
๐Ÿ‘ Image
Villager
, after winning in a Raid
๐Ÿ‘ Image
Crossbow
, when shot
๐Ÿ‘ Image
Dispenser
, when shot
0 ๐Ÿ‘ Image
Firework Rocket
๐Ÿ‘ Image
Llama Spit
๐Ÿ‘ Image
Llama
, as an attack
1HP๐Ÿ‘ ๐Ÿ’”
None
๐Ÿ‘ Image
Shot Arrow
๐Ÿ‘ Image
Bow
or ๐Ÿ‘ Image
Crossbow
, when shot
๐Ÿ‘ Image
Dispenser
, when shot
๐Ÿ‘ Image
Ominous Trial Spawner
, when active
8.5HP๐Ÿ‘ โค๏ธ
ร— 4.25
[note 3]
๐Ÿ‘ Image
Arrow
๐Ÿ‘ Image
Spectral Arrow
โ€Œ[JE only]
๐Ÿ‘ Image
Bow
or ๐Ÿ‘ Image
Crossbow
, when shot
๐Ÿ‘ Image
Dispenser
, when shot
๐Ÿ‘ Image
Spectral Arrow
๐Ÿ‘ Image
Tipped Arrow
๐Ÿ‘ Image
Bow
or ๐Ÿ‘ Image
Crossbow
, when shot
๐Ÿ‘ Image
Dispenser
, when shot
๐Ÿ‘ Image
Ominous Trial Spawner
, when active
๐Ÿ‘ Image
Tipped Arrow
๐Ÿ‘ Image
Shulker Bullet
๐Ÿ‘ Image
Shulker
, as an attack
4HP๐Ÿ‘ โค๏ธ
๐Ÿ‘ โค๏ธ
None
๐Ÿ‘ Image
Thrown Bottle o' Enchanting
๐Ÿ‘ Image
Player
, when used
๐Ÿ‘ Image
Dispenser
, when shot
0 ๐Ÿ‘ Image
Bottle o' Enchanting
๐Ÿ‘ Image
Thrown Egg
๐Ÿ‘ Image
Player
, when used
๐Ÿ‘ Image
Dispenser
, when shot
0 ๐Ÿ‘ Image
Egg
๐Ÿ‘ Image
Thrown Ender Pearl
๐Ÿ‘ Image
Player
, when used
0[note 4] ๐Ÿ‘ Image
Ender Pearl
๐Ÿ‘ Image
Thrown Eye of Ender
๐Ÿ‘ Image
Player
, when used
0 ๐Ÿ‘ Image
Eye of Ender
๐Ÿ‘ Image
Thrown Snowball
๐Ÿ‘ Image
Player
, when used
๐Ÿ‘ Image
Snow Golem
, as an attack
๐Ÿ‘ Image
Dispenser
, when shot
0[note 5] ๐Ÿ‘ Image
Snowball
๐Ÿ‘ Image
Thrown Splash Potion
๐Ÿ‘ Image
Player
, when used
๐Ÿ‘ Image
Witch
, as an attack
๐Ÿ‘ Image
Dispenser
, when shot
0 ๐Ÿ‘ Image
Splash Potion
๐Ÿ‘ Image
Lingering Potion
๐Ÿ‘ Image
Player
, when used
๐Ÿ‘ Image
Dispenser
, when shot
๐Ÿ‘ Image
Ominous Trial Spawner
, when active
0 ๐Ÿ‘ Image
Lingering Potion
๐Ÿ‘ Image
Thrown Trident
๐Ÿ‘ Image
Player
, when used
๐Ÿ‘ Image
Drowned
, as an attack
๐Ÿ‘ Image
Dispenser
, when shotโ€Œ[BE only]
8HP๐Ÿ‘ โค๏ธ
๐Ÿ‘ โค๏ธ
๐Ÿ‘ โค๏ธ
๐Ÿ‘ โค๏ธ
๐Ÿ‘ Image
Trident
๐Ÿ‘ Image
Wind Charge
๐Ÿ‘ Image
Player
, when used
๐Ÿ‘ Image
Breeze
, as an attack
๐Ÿ‘ Image
Dispenser
, when shot
๐Ÿ‘ Image
Ominous Trial Spawner
, when active
1HP๐Ÿ‘ ๐Ÿ’”
๐Ÿ‘ Image
Wind Charge
๐Ÿ‘ Image
Wither Skull
๐Ÿ‘ Image
Wither
, as an attack
8HP๐Ÿ‘ โค๏ธ
๐Ÿ‘ โค๏ธ
๐Ÿ‘ โค๏ธ
๐Ÿ‘ โค๏ธ
None
  1. โ†‘ Fireballs rebounded by the player deal 1000HP๐Ÿ‘ โค๏ธ
    ร— 500
    damage to a ghast upon direct hit, killing them.
  2. โ†‘ Only works with ๐Ÿ‘ Image
    Dispeners
    .
  3. โ†‘ Average damage when fired from a Bow with no Power enchantments. See Ranged attack ยง Projectile damage for more info.
  4. โ†‘ The thrower takes 5HP๐Ÿ‘ โค๏ธ
    ๐Ÿ‘ โค๏ธ
    ๐Ÿ‘ ๐Ÿ’”
    damage.
  5. โ†‘ ๐Ÿ‘ Image
    Blazes
    take 3HP๐Ÿ‘ โค๏ธ
    ๐Ÿ‘ ๐Ÿ’”
    damage.

Picking up

[edit | edit source]

An eye of ender has a 80% chance of surviving when thrown. If it survives, it drops as an item where it stopped, which can then by picked up.

A trident thrown by a player can be picked up (in its projectile form), as long as its on the ground, doesn't have Loyalty, and the player didn't throw it while in Creative mode.

All other projectiles are either destroyed, turned into something else, or exist as a projectile which despawns after some time, and cannot be picked up or grabbed in their projectile form.

Initial conditions

[edit | edit source]
This section is a work in progress.
 
Please help expand and improve it. The talk page may contain suggestions.

Shot from dispenser

[edit | edit source]

All projectiles use the following calculations to get shot by a dispenser:

  • To find the position, move out from the center of the block by DISTANCE and add Y OFFSET.
  • Get the unit vector straight out of the dispenser.
  • For each axis, add a random (64-bit) number between -0.0172275 * UNCERTAINTY and 0.0172275 * UNCERTAINTY, using a triangular distribution.
  • To find the velocity, scale by POWER.
Projectile dispenser values
Projectile Distance (double) Y Offset (double) Power (float) Uncertainty (float)
Default 0.7 0.1 1.1 6.0
Potion, Experience bottle 0.7 0.1 1.375 3
Wind charge, fire charge 1.0 0.0 1.0 6.6666665
Firework rocket 0.5000099999997474 0.0 0.5 1.0

Throwable projectiles (except eye of ender)

[edit | edit source]

The direction and velocity of throwable projectiles is slightly randomized and affected by the player's movement. More specifically, the game does these calculations in order:

  • Get the facing vector of the player, with length 1. For the pitch, this uses the player's pitch plus PITCH (where positive PITCH makes the vector point lower).
  • For each axis, add a random (64 bit) number between -0.0172275 and 0.0172275, using a triangular distribution.
  • Scale the velocity by POWER.
  • Add the player's velocity. If the player is on the ground, the Y component is unaffected.

The result is a shooting speed of around POWER towards where the player is facing, depending on randomness and the player's velocity.

Throwable projectile powers
Projectile Power (float) Pitch (float)
Snowball, ender pearl, egg 1.5 0
Potions 0.5 -20ยฐ
Experience bottle 0.7 -20ยฐ

Motion

[edit | edit source]
Kind Ticking order Gravity[note 1]

(m/tick/tick)

Drag

(vertical)

Drag

(horizontal)

Terminal velocity

(m/tick)[note 2]

Terminal velocity

(m/s)

Maximum horizontal travel distance

(m/(m/s))[note 3]


๐Ÿ‘ EntitySprite egg.png: Sprite image for egg in Minecraft
๐Ÿ‘ EntitySprite snowball.png: Sprite image for snowball in Minecraft
๐Ÿ‘ EntitySprite ender-pearl.png: Sprite image for ender-pearl in Minecraft
Thrown eggs, snowballs, and ender pearls
Acceleration, Drag, Position[note 4] -0.03 (double) 0.99 (float) 0.99 (float) 2.97 59.4 99
๐Ÿ‘ EntitySprite splash-potion.png: Sprite image for splash-potion in Minecraft
Thrown potions
-0.05 (double)


4.95 99.0
๐Ÿ‘ EntitySprite bottle-o'-enchanting.png: Sprite image for bottle-o'-enchanting in Minecraft
Thrown bottles o' enchanting
-0.07 (double)


6.93 138.6
๐Ÿ‘ EntitySprite fireball.png: Sprite image for fireball in Minecraft
๐Ÿ‘ EntitySprite wither-skull.png: Sprite image for wither-skull in Minecraft
๐Ÿ‘ EntitySprite dragon-fireball.png: Sprite image for dragon-fireball in Minecraft
Fireballs, small fireballs, wither skulls, and dragon fireballs
Acceleration, Drag, Position 0.10 (double)[note 1] 0.95 (float) 1.90 38.0 19
๐Ÿ‘ Image
Dangerous wither skulls
0.10 (double)[note 1] 0.73 (float) 0.2703703 5.407407 2.703703
๐Ÿ‘ Image
Wind charges
0.10 (double)[note 1] N/A[note 5] โˆž โˆž โˆž
๐Ÿ‘ Image
Llama Spit
Position, Drag, Acceleration -0.06 (double) 0.99 (float) 6.00 120.0 100
๐Ÿ‘ EntitySprite arrow.png: Sprite image for arrow in Minecraft
๐Ÿ‘ EntitySprite trident.png: Sprite image for trident in Minecraft
Fired arrows, and thrown tridents
-0.05 (double) 0.99 (float) 5.00 100.0 100
  1. โ†‘ a b c d Explosive projectiles and wind charges are not affected by gravity but instead get acceleration from getting damaged.
  2. โ†‘ Terminal velocity is given by if drag is before acceleration and otherwise.
  3. โ†‘ For axes with no acceleration, maximum travel distance is given by if position is before drag and otherwise. Table values are the number that, when multiplied by the initial velocity, gives the maximum travel distance.
  4. โ†‘ The order of throwable projectiles was changed in Java Edition 1.21.2, from "Position, Drag, Acceleration" to "Acceleration, Drag, Position".
  5. โ†‘ For boats and wind charges, the order between acceleration and drag doesn't matter: Boats have no vertical drag, and wind charges have no drag at all.
Initial conditions[calcnote 1]
1 Angle 0 Vector
X 0 VXYaw m/tick0 deg
Y 0 VYPitch m/tick-30 deg
Z 0 VZSpeed m/tick3 m/tick
Entity dynamics
Drag-H 0.99 Gravity -0.05 m/tick2
Drag-Y

0.99

Ticking order 1
TimeRadius

0 0 ticks 0 0 m
1 Time 0 Radius

Position

X = , Y = , Z =
Maximum height: m ( ticks)none
Horizontal range: m ( ticks)

Velocity

VX = , VY = , VZ = (m/tick)
Terminal speed: m/tick

Launch angle calculator[calcnote 1]
Given a target coordinate and an initial speed, calculate the entity launch angle to hit the target. Target is hit after ticks.
X 10 Yaw deg
Y 10 Pitch

degUnreachable
1 Direct hit

Z 10 Speed 3 m/tick
  1. โ†‘ a b Yaw and pitch follow the Minecraft's convention, thus zero yaw is directed at +Z (south) and looking upwards corresponds to negative values of pitch.

Collision

[edit | edit source]

Projectiles perform a raycast from their current position to their next position and check for blocks and entities that would get hit.

Entity collision

[edit | edit source]
This section is a work in progress.
 
Please help expand and improve it. The talk page may contain suggestions.

Throwable projectiles

[edit | edit source]

Throwable projectiles (Ender pearl, snowball, egg, potion, experience bottle, eye of ender) treat entities as being 0.6 blocks larger than they actually are in every axis (0.3 in every direction). They collide with all living entities, all minecart types, boats, end crystals, falling blocks, and tnt.

To calculate the collision, the game uses the following process:

  • Make a box from the current tick's position to next tick's position
  • Inflate it by 1 in every direction
  • Get every entity in the box
  • For each entity:
    • Inflate it by 0.3 in every direction
    • Check if it intersects the line connecting the current position and the next position
    • Keep the intersection if it's the closest to the projectile so far, otherwise throw it out

Abstract arrows and abstract hurting projectiles

[edit | edit source]

Abstract arrows (Arrow, tipped arrow, spectral arrow, trident) and abstract hurting projectiles (Fireball, dragon fireball, wind charge, wither skull, dangerous wither skull) use a raycast to calculate entity collisions, and don't inflate entities like ThrowableProjectiles.[verify]

Block collisions

[edit | edit source]

All blocks collisions are checked using a raycast from the projectile's current position to its next position, which hits the block's collision box, with a few special cases:

  • The top of scaffolding is only hit if the projectile begins its movement below it, because that collision box only exists for entities that are above it.
  • Walls, fences, moving pistons, the back of piston arms, and other blocks whose collision box extends beyond a full cube are only seen by the projectile if the raycast intersects the full cube space where the block is actually located.
  • End portal blocks and exit portal blocks have no hard hitbox, so projectiles will only enter if they tick inside the portal blocks.

Ender pearl specific block collisions

[edit | edit source]
๐Ÿ‘ An image split in half vertically, with the top half showing the Overworld and the bottom half showing the Nether, both from a top-down view. In both halves, there is an identical setup featuring a command block, 10 blocks placed diagonally up and right representing the velocity of the pearl, and a nether portal (facing such that you can enter from the left) intersecting the path. In the Overworld side the pearl is on the command block and hasn't ticked yet. In the nether side, the pearl is 10 blocks right of the command block, and aligned into the top frame of the portal. This is the position in which it enters the nether, and it will continue moving up-right from here.
An ender pearl is summoned over a command block in the Overworld with motion [10, 0, 10]. It finds a Nether portal in its path and is sent to the nether as if it had entered from its final position.
  • If a pearl hits a Nether portal, it is sent to the nether. If the pearl would have hit other blocks after the portal, that collision position is used as the position where the pearl entered the portal. Otherwise, the final position it would've ended at is used. See Nether portal for more details on how entities get placed after going through portals.
  • If a pearl hits an End gateway, it teleports the player as if the player had gone into the gateway. The pearl itself is deleted.

Data values

[edit | edit source]

Java Edition:

EntityIdentifier Translation key
๐Ÿ‘ EntitySprite fireball.png: Sprite image for fireball in Minecraft
Fireball
fireball entity.minecraft.fireball
๐Ÿ‘ EntitySprite small-fireball.png: Sprite image for small-fireball in Minecraft
Small Fireball
small_fireball entity.minecraft.small_fireball
๐Ÿ‘ EntitySprite dragon-fireball.png: Sprite image for dragon-fireball in Minecraft
Dragon Fireball
dragon_fireball entity.minecraft.dragon_fireball
๐Ÿ‘ EntitySprite firework-rocket.png: Sprite image for firework-rocket in Minecraft
Firework Rocket
firework_rocket entity.minecraft.firework_rocket
๐Ÿ‘ EntitySprite llama-spit.png: Sprite image for llama-spit in Minecraft
Llama Spit
llama_spit entity.minecraft.llama_spit
๐Ÿ‘ EntitySprite arrow.png: Sprite image for arrow in Minecraft
Arrow
arrow entity.minecraft.arrow
๐Ÿ‘ EntitySprite spectral-arrow.png: Sprite image for spectral-arrow in Minecraft
Spectral Arrow
spectral_arrow entity.minecraft.spectral_arrow
๐Ÿ‘ EntitySprite shulker-bullet.png: Sprite image for shulker-bullet in Minecraft
Shulker Bullet
shulker_bullet entity.minecraft.shulker_bullet
๐Ÿ‘ EntitySprite bottle-o'-enchanting.png: Sprite image for bottle-o'-enchanting in Minecraft
Thrown Bottle o' Enchanting
experience_bottle entity.minecraft.experience_bottle
๐Ÿ‘ EntitySprite egg.png: Sprite image for egg in Minecraft
Thrown Egg
egg entity.minecraft.egg
๐Ÿ‘ EntitySprite ender-pearl.png: Sprite image for ender-pearl in Minecraft
Thrown Ender Pearl
ender_pearl entity.minecraft.ender_pearl
๐Ÿ‘ EntitySprite eye-of-ender.png: Sprite image for eye-of-ender in Minecraft
Eye of Ender
eye_of_ender entity.minecraft.eye_of_ender
๐Ÿ‘ EntitySprite snowball.png: Sprite image for snowball in Minecraft
Snowball
snowball entity.minecraft.snowball
๐Ÿ‘ EntitySprite splash-potion.png: Sprite image for splash-potion in Minecraft
Splash Potion
splash_potion entity.minecraft.splash_potion
๐Ÿ‘ EntitySprite lingering-potion.png: Sprite image for lingering-potion in Minecraft
Lingering Potion
lingering_potion entity.minecraft.lingering_potion
๐Ÿ‘ EntitySprite trident.png: Sprite image for trident in Minecraft
Trident
trident entity.minecraft.trident
๐Ÿ‘ EntitySprite wind-charge.png: Sprite image for wind-charge in Minecraft
Wind Charge
wind_charge entity.minecraft.wind_charge
๐Ÿ‘ EntitySprite wind-charge.png: Sprite image for wind-charge in Minecraft
Wind Charge
breeze_wind_charge entity.minecraft.breeze_wind_charge
๐Ÿ‘ EntitySprite wither-skull.png: Sprite image for wither-skull in Minecraft
Wither Skull
wither_skull entity.minecraft.wither_skull

Bedrock Edition:

EntityIdentifierNumeric ID Translation key
๐Ÿ‘ EntitySprite ice-bomb.png: Sprite image for ice-bomb in Minecraft
Ice Bomb
ice_bomb106 entity.ice_bomb.name
๐Ÿ‘ EntitySprite fireball.png: Sprite image for fireball in Minecraft
Fireball
large_fireball85 entity.large_fireball.name
๐Ÿ‘ EntitySprite small-fireball.png: Sprite image for small-fireball in Minecraft
Small Fireball
small_fireball94 entity.small_fireball.name
๐Ÿ‘ EntitySprite dragon-fireball.png: Sprite image for dragon-fireball in Minecraft
Dragon Fireball
dragon_fireball79 entity.dragon_fireball.name
๐Ÿ‘ EntitySprite firework-rocket.png: Sprite image for firework-rocket in Minecraft
Firework Rocket
fireworks_rocket79 entity.fireworks_rocket.name
๐Ÿ‘ EntitySprite llama-spit.png: Sprite image for llama-spit in Minecraft
Llama Spit
llama_spit102 entity.llama_spit.name
๐Ÿ‘ EntitySprite arrow.png: Sprite image for arrow in Minecraft
Arrow
arrow80 entity.arrow.name
๐Ÿ‘ EntitySprite shulker-bullet.png: Sprite image for shulker-bullet in Minecraft
Shulker Bullet
shulker_bullet76 entity.shulker_bullet.name
๐Ÿ‘ EntitySprite bottle-o'-enchanting.png: Sprite image for bottle-o'-enchanting in Minecraft
Bottle o' Enchanting
xp_bottle68 entity.xp_bottle.name
๐Ÿ‘ EntitySprite egg.png: Sprite image for egg in Minecraft
Egg
egg82 entity.egg.name
๐Ÿ‘ EntitySprite ender-pearl.png: Sprite image for ender-pearl in Minecraft
Ender Pearl
ender_pearl87 entity.ender_pearl.name
๐Ÿ‘ EntitySprite eye-of-ender.png: Sprite image for eye-of-ender in Minecraft
Eye of Ender
eye_of_ender_signal70 entity.eye_of_ender_signal.name
๐Ÿ‘ EntitySprite snowball.png: Sprite image for snowball in Minecraft
Snowball
snowball81 entity.snowball.name
๐Ÿ‘ EntitySprite splash-potion.png: Sprite image for splash-potion in Minecraft
Splash Potion
splash_potion86 entity.splash_potion.name
๐Ÿ‘ EntitySprite lingering-potion.png: Sprite image for lingering-potion in Minecraft
Lingering Potion
lingering_potion101 entity.lingering_potion.name
๐Ÿ‘ EntitySprite trident.png: Sprite image for trident in Minecraft
Trident
thrown_trident73 entity.thrown_trident.name
๐Ÿ‘ EntitySprite wind-charge.png: Sprite image for wind-charge in Minecraft
Wind Charge
wind_charge_projectile143 entity.wind_charge_projectile.name
๐Ÿ‘ EntitySprite wind-charge.png: Sprite image for wind-charge in Minecraft
Wind Charge
breeze_wind_charge_projectile141 entity.breeze_wind_charge_projectile.name
๐Ÿ‘ EntitySprite wither-skull.png: Sprite image for wither-skull in Minecraft
Wither Skull
wither_skull89 entity.wither_skull.name
๐Ÿ‘ EntitySprite dangerous-wither-skull.png: Sprite image for dangerous-wither-skull in Minecraft
Wither Skull
wither_skull_dangerous91 entity.wither_skull_dangerous.name

History

[edit | edit source]

Java Edition

[edit | edit source]
Java Edition Classic
0.24_SURVIVAL_TESTAdded arrows.
Java Edition
1.915w31aProjectile motion has now been changed slightly.[1]
15w49aProjectiles now take the thrower's momentum into account when the player is falling, flying with elytra, or taking knockback; but not when the player is walking, riding an entity, or flying in Creative mode.
1.21.625w19aProjectiles now have a target tolerance margin that changes over time.

Bedrock Edition

[edit | edit source]
Pocket Edition Alpha
v0.3.3Added arrows.
Bedrock Edition
1.21.90Preview 1.21.90.26Projectiles now have a target tolerance margin that changes over time.

Legacy Console Edition

[edit | edit source]
Legacy Console Edition
Xbox 360Xbox OnePS3PS4PS VitaWii USwitch
TU46CU361.381.381.38Patch 151.0.1Projectiles now take the thrower's momentum into account.

Issues

[edit | edit source]

Issues relating to "Projectile" are maintained on the bug tracker. Issues should be reported and viewed there.

See also

[edit | edit source]

Notes

[edit | edit source]


References

[edit | edit source]

Navigation

[edit | edit source]
Retrieved from "https://minecraft.wiki/w/Projectile?oldid=3424874"

Navigation menu