mojira.dev
MC-152589

Bad Omen effect doesn't trigger if the pillager captain dies by fire after being hit by the player (flame bow or fire aspect sword)

The Bug

In Minecraft 1.14.1, when you shoot a pillager leader with a power 5, flame bow, the pillager is knocked down to 5 hit points.  The damage from the flame is enough to kill it, but the player does not receive the bad omen effect. When testing this with a normal power 5 bow, it takes 2 shots to kill the pillager, and gives the player a level of the bad omen effect. After killing several leaders, you only receive the effect when you do the last hit point of damage.  

To Repeat:

  • Summon/find a pillager with the banner.

  • /give @p bow

  • /enchant @p power 5

  • /enchant @p flame

  • Draw the bow fully back, and then shoot the pillager once.  It will be knocked down to 5 health, and then will die from fire damage.  The player does not receive the bad omen effect.

Observed Behavior:

The bad omen effect isn't granted when pillager captains die from the effects of flame or fire aspect enchantments after being attacked by players.

Expected Behavior:

The bad omen effect would be granted when pillager captains die from the effects of flame or fire aspect enchantments after being attacked by players.

Linked issues

Attachments

Comments 10

Sounds like MC-151214, but with flame arrows instead of tipped arrows

Can confirm in 20w51a. I've attached a video demonstrating the issue.

Isn't this a duplicate of MC-118174?

Can confirm in 1.17.1.

Can confirm this in 1.18 Pre-release 5. This ticket relates to MC-82298. Here are some extra details regarding this problem.

The Bug:

The bad omen effect isn't granted when pillager captains die from the effects of flame or fire aspect enchantments after being attacked by players.

Steps to Reproduce:

  • Obtain a wooden sword enchanted with fire aspect.

/give @s minecraft:wooden_sword{Enchantments:[{id:"minecraft:fire_aspect",lvl:2}]}
  • Summon a pillager captain. (A command block is required in order to execute this command).

/summon minecraft:pillager ~ ~ ~ {Health:8f,PatrolLeader:1b,HandItems:[{id:"minecraft:crossbow",Count:1b},{}],ArmorItems:[{},{},{},{id:"minecraft:white_banner",Count:1b,tag:{HideFlags:32,BlockEntityTag:{Patterns:[{Pattern:"mr",Color:9},{Pattern:"bs",Color:8},{Pattern:"cs",Color:7},{Pattern:"bo",Color:8},{Pattern:"ms",Color:15},{Pattern:"hh",Color:8},{Pattern:"mc",Color:8},{Pattern:"bo",Color:15}],id:"minecraft:banner"},display:{Name:'{"color":"gold","translate":"block.minecraft.ominous_banner"}'}}}]}
  • Attack the pillager a singular time using the wooden sword and wait for it to die from the effects of the fire aspect enchantment.

  • Take note as to whether or not the bad omen effect is granted when pillager captains die from the effects of flame or fire aspect enchantments after being attacked by players.

Observed Behavior:

The bad omen effect isn't granted when pillager captains die from the effects of flame or fire aspect enchantments after being attacked by players.

Expected Behavior:

The bad omen effect would be granted when pillager captains die from the effects of flame or fire aspect enchantments after being attacked by players.

To add on, if it's alright, I'd like to request ownership of this report. The current reporter has been inactive since May of 2019 and I'm willing to keep this ticket updated. 🙂

I just experienced this in 23w14a.

Suggest close

  • Bad omen effect doesn't work like this any more

  • Isn't this worksasintended pretty much? You have to damage mobs within N seconds for it to count as a player kill.  Granted, it would make sense if that time was guaranteed to be slightly longer than the duration of Flame even with a few frames of lag ...   (I forget what N is, unfortunately)

It wouldn't be works as intended since it clearly drops experience, meaning that the effect wasn't granted even though it was a player kill

Interestingly 23w14a didn't fix this. I can, however, confirm it has been fixed since then, as 1.21.2-pre1 does not have this issue (the bottle is dropped as expected).

thecodingchicken

(Unassigned)

Confirmed

Entities

Minecraft 1.14.1, Minecraft 1.14.2, 1.15.2, 1.16.1, 20w28a, 20w51a, 1.17.1, 23w14a

Retrieved