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:
Build a wall that is one block thick
Place an item frame on that wall
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:
Linked issues
is duplicated by 1
Attachments
Comments 7
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.
Thank you for whoever made a better description as a representation of what I was trying to convey. I really appreciate it!! (original poster)