Affects Version/s: Minecraft 1.14, 1.15.2, 20w18a
Fix Version/s: None
A mob that is killed by the effect of a tipped arrow (Arrow of Harming, or Arrow of Healing) won't count towards the statistics of the player who has shot that arrow.
- Run /scoreboard objectives add VindicatorKills minecraft.killed:minecraft.vindicator
- Run /scoreboard objectives setdisplay sidebar VindicatorKills
- Spawn a vindicator
- Kill it with a normal arrow
- The score will increase
- Spawn another vindicator
- Shoot it with a bow and an arrow of harming (Instant Damage II)
- The score won't increase
This bug can also be observed by checking the Statistics screen.
Scoreboard objective with criteria "minecraft.killed" doesn't show correct value when specified mob has been killed with crossbow.
What I expected to happen was...:
Objective with criteria "minecraft.killed" updates when specified mob is killed with crossbow
What actually happened was...:
Previously mentioned objective doesn't update (video)
Steps to Reproduce:
I added an objective called "vindicators" with criteria set to "minecraft.killed:minecraft.vindicator". It should update each time any vindicator is killed by a player with any kind of weapon. It doesn't work only with crossbow.
[EDIT]: It actually works but with normal arrows. It doesn't work for tipped arrows.
[2ND EDIT]: I've tried several of them and it turns out that only tipped arrows of harming II doesn't work. Most likely it's because it takes only two shots to kill a vindicator (in this example) instead of 3+ shots with other arrows. I also tried that with pig which requires only 1 shot with crossbow and tipped arrow of harming II, and it worked, so this situation debunks my previous hypothesis. I don't know why, but when mobs are killed with exactly two shots from crossbow, the specific scoreboard doesn't update. And this applies only for illagers (and maybe for villagers too). I know, it's weird and a bit unclear.