Expected Behavior
If I set the pickup status to DISALLOWED, it should stay that way despite hitting something which deflects the projectile. This was the behavior in <=1.20.4
Observed Behavior
If the summoned arrow, hits a player and deflects off, once it hits the ground, it's pickup status has been changed to ALLOWED
Steps to Reproduce
Use the command and move out of the way of the arrow (replace the UUID with your own)
/summon arrow ~ ~10 ~ {pickup:0b,Owner:[I; -2072785729, 1902920055, -1858696354, -1725573379]}
A player in survival cannot pick it up
Run the command again (in creative mode) and let it hit you and then hit the ground
A player in survival can pick it up
Other Information
This is caused by the the logic which resets the owner of projectiles upon deflection. AbstractArrow overrides setOwner to change the pickup status, and Projectile#deflect calls setOwner.
Linked issues
relates to 2
Comments 4
Reopened as MC-270834 is about projectiles with the #minecraft:redirectable_projectile
tag, and affects projectiles shot by mobs.
Would MC-270834 describe your issue?
This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki