mojira.dev
MC-149437

Arrows shot by a piercing crossbow can go through walls if shot at an entity near a wall

The Bug:

If an arrow is shot from a crossbow which is enchanted with piercing towards an entity that is standing up against a wall, it is able to phase inside, or even through that wall.

How to reproduce:

  1. Build a wall that is one block thick

  2. Place an item frame on that wall

  3. Fire a piercing crossbow at the item frame

    /give @p minecraft:crossbow[minecraft:enchantments={levels:{"quick_charge":3, "piercing":3}},minecraft:charged_projectiles=[{id:"arrow"}]]

Observed Results:

The arrow will either phase through the wall, or land inside of the wall depending on the angle it is shot from.

Expected Results:

The arrow would kill the item frame entity, and land against the wall.

Screenshots/Videos:

Short version:

[media]

Long version: https://youtu.be/05IR4RXe2GQ

Notes

Related to other piercing crossbow issues:

MC-150215 MC-158892 MC-145557 MC-270966

Linked issues

Attachments

Comments 7

Thank you for whoever made a better description as a representation of what I was trying to convey. I really appreciate it!! (original poster)

Can confirm that this issue is still present in 20w51a.

Can confirm in 21w03a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 1.18.1

Can confirm for 1.18.2 and 1.19/1.19.1/1.19.2

This bug also applies to other entities (e.g. armor stands). I find for entities with a thicker hitbox, it works better to shoot the arrow slightly offset from the hitbox instead of directly at it.

I suspect the bug is due to the original arrow being deleted, then a new arrow spawned slightly ahead so the velocity is preserved.

Requesting ownership of this issue as the original poster has been inactive since 2019, and I would like to add some of the additional information stated by supsm

Jeremy

[Mod] Jingy

(Unassigned)

Confirmed

Items

collision, crossbow, piercing

Minecraft 1.14, 1.15.1, 20w51a, 21w03a, 1.16.5, ..., 1.20.4 Release Candidate 1, 1.20.4, 24w11a, 1.20.5, 1.21

Retrieved