Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-92175

Projectile Location Error



    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 15w45a, Minecraft 15w46a, Minecraft 15w47c, Minecraft 1.10.2, Minecraft 16w41a, Minecraft 16w42a, Minecraft 1.12, Minecraft 1.12.1, 20w07a
    • Windows 7
    • Confirmed
    • (Unassigned)


      The final calculated position of projectiles is incorrect; this is important for the Passengers tag, because it means that when a projectile breaks, the Passenger is placed in the wrong position relative to the impact.

      What I expected to happen:

      When a Projectile Entity such as snowballs or enderpearls are summoned with entities riding them(Passengers), I expected the Projectile to break on a solid surface or hitbox, and the Passengers to be located at that surface or mob. Example: AreaEffectCloud is centered at edge of mob hitbox.

      What actually happened:

      Projectiles visibly break before reaching target. When the Projectile breaks, the Passengers are located in front of the surface or mob hitbox, by a somewhat significant amount. Example: AreaEffectCloud is always far enough away that its hitbox never touches mob hitbox or wall, regardless of radius.

      Steps to Reproduce:

      1. Set up a Command Block on top of level ground with either of the following commands:
        summon Snowball ~ ~1 ~-1 {Motion:[0d,0d,3d],Passengers:[{id:Area_Effect_Cloud,Duration:150,ReapplicationDelay:45,WaitTime:5,Radius:1.5f,RadiusOnUse:-0.5f,RadiusPerTick:f,Particle:"smoke",Effects:[{Ambient:1,Amplifier:5,Id:20,ShowParticles:0,Duration:100}]}]}
        summon ender_pearl ~ ~1 ~-1 {Motion:[0d,0d,-3d],Passengers:[{id:Item}]}
      2. Use F3+B to activate Hitbox viewing, to aid visibility.
      3. Place a two block tall wall or two block tall mob with NoAI, in a direct line South of the command block.
      4. Activate Command Block.

      This occurs regardless of direction.


      Arrows fired from a bow that is not fully charged, or summoned with a command and given motion, will 'jump' slightly after they land. Fully charged arrows do not. It isn't clear whether this is related, but it may be because it looks like the position calculations correcting themselves.




            Unassigned Unassigned
            Chipperdoodle Alex Chipman
            6 Vote for this issue
            5 Start watching this issue