mojira.dev
MC-150486

"minecraft.killed:minecraft.<ENTITY>" sometimes doesn't increase when entities are killed by the effects of tipped arrows

The Bug:

"minecraft.killed:minecraft.<ENTITY>" sometimes doesn't increase when entities are killed by the effects of tipped arrows.

Please note that this issue cannot be reproduced all of the time. Occasionally, scoreboards will track entities that are killed by the effects of tipped arrows, and other times they won't.

Steps to Reproduce:

  1. Create a scoreboard objective for tracking when you kill a vindicator and set it to display on the sidebar by using the commands provided below.  

    /scoreboard objectives add KillVindicator minecraft.killed:minecraft.vindicator
    /scoreboard objectives setdisplay sidebar KillVindicator
  2. Obtain a bow, some regular arrows, and summon a vindicator.

  3. Kill the vindicator using your bow and arrows and take note of how the scoreboard increases.

  4. Obtain some arrows of harming, summon another vindicator, and kill the vindicator using these arrows.

  5. Take note as to whether or not "minecraft.killed:minecraft.<ENTITY>" sometimes doesn't increase when entities are killed by the effects of tipped arrows.

Observed Behavior:

"minecraft.killed:minecraft.<ENTITY>" sometimes doesn't increase when entities are killed by the effects of tipped arrows.

Expected Behavior:

"minecraft.killed:minecraft.<ENTITY>" would always increase when entities are killed by the effects of tipped arrows.

Linked issues

Attachments

Comments 10

Cannot reproduce. The scoreboard value is increased upon killing the respective mob with a crossbow.

I've just checked and it does update, but for normal arrows only. It doesn't work when shooting tipped arrows though

Interesting, yeah, I did some testing myself and can confirm that a mob doesn't count as killed by the player if it is killed by the effect of the tipped arrow that the player shot at it. Very interesting.

This doesn't only affect scoreboards, but also the statistics in the Statistics screen.

I updated the report a bit to reflect the new findings a bit better.

Can confirm that this is an issue in 20w51a.

Can confirm in 21w06a.

Can confirm in 21w07a.

Can confirm in 1.16.5 and 21w08b.

Can confirm in 21w10a. I've attached an updated video.

Can confirm this in 21w43a. I'd like to request ownership of this ticket since the current reporter has been inactive since May of 2019.

Kuba Okoń

Avoma

(Unassigned)

Confirmed

Entities

Minecraft 1.14, 1.15.2, 20w18a, 20w51a, 1.16.5, ..., 1.21, 1.21.3, 1.21.4, 25w08a, 1.21.7

Retrieved