Tipped arrows with instant damaging effects do not work because of damage cooldown
The bug
Tipped arrows which have an effect that damages the hit mob do not apply their effect if the damage from the arrow hit is greater than the damage the potion would deal.
How to reproduce
With a bow
- Summon a zombie with a health of 10
/summon zombie ~ ~ ~ {Health:10f} - Shoot with a completely drawn back bow a tipped arrow of healing (level I) at it
→ The zombie is not dead despite the fact that the arrow dealt at least 6 points of damage and the potion effect should have dealt 6 points of damage as well
With a summoned arrow
- Summon a zombie with a health of 10
/summon zombie ~ ~ ~ {Health:10f} - Use the following command; the arrow deals with this motion 6 points of damage and the potion effect has the same amplifier as the healing tipped arrow has
/execute @e[type=zombie] ~ ~ ~ /summon arrow ~ ~2.5 ~ {Motion:[0d,-1d,0d],damage:6d,CustomPotionEffects:[{Id:6b,Duration:1,Amplifier:0b}]}
Linked Issues
Created Issue:
Tipped arrows with instant damaging effects do not work because of damage cooldown
The bug
Tipped arrows which have an effect that damages the hit mob do not apply their effect if the damage from the arrow hit is greater than the damage the potion would deal.
How to reproduce
With a bow
- Summon a zombie with a health of 10
/summon zombie ~ ~ ~ {Health:10f}- Shoot with a completely drawn back bow a tipped arrow of healing (level I) at it
→ The zombie is not dead despite the fact that the arrow dealt at least 6 points of damage and the potion effect should have dealt 6 points of damage as wellWith a summoned arrow
- Summon a zombie with a health of 10
/summon zombie ~ ~ ~ {Health:10f}- Use the following command; the arrow deals with this motion 6 points of damage and the potion effect has the same amplifier as the healing tipped arrow has
/execute @e[type=zombie] ~ ~ ~ /summon arrow ~ ~2.5 ~ {Motion:[0d,-1d,0d],damage:6d,CustomPotionEffects:[{Id:6b,Duration:1,Amplifier:0b}]}
Relates to:
The bug
Tipped arrows which have an effect that damages the hit mob do not apply their effect if the damage from the arrow hit is greater than the damage the potion would deal.
How to reproduce
With a bow
- Summon a zombie with a health of 10
/summon zombie ~ ~ ~ {Health:10f}- Shoot with a completely drawn back bow a tipped arrow of healing (level I) at it
→ The zombie is not dead despite the fact that the arrow dealt at least 6 points of damage and the potion effect should have dealt 6 points of damage as wellWith a summoned arrow
- Summon a zombie with a health of 10
/summon zombie ~ ~ ~ {Health:10f}- Use the following command; the arrow deals with this motion 6 points of damage and the potion effect has the same amplifier as the healing tipped arrow has
/execute @e[type=zombie] ~ ~ ~ /summon arrow ~ ~2.5 ~ {Motion:[0d,-1d,0d],damage:6d,CustomPotionEffects:[{Id:6b,Duration:1,Amplifier:0b}]}
Relates to:
The bug
Tipped arrows which have an effect that damages the hit mob do not apply their effect if the damage from the arrow hit is greater than the damage the potion would deal.
How to reproduce
With a bow
- Summon a zombie with a health of 10
/summon zombie ~ ~ ~ {Health:10f}- Shoot with a completely drawn back bow a tipped arrow of healing (level I) at it
→ The zombie is not dead despite the fact that the arrow dealt at least 6 points of damage and the potion effect should have dealt 6 points of damage as wellWith a summoned arrow
- Summon a zombie with a health of 10
/summon zombie ~ ~ ~ {Health:10f}- Use the following command; the arrow deals with this motion 6 points of damage and the potion effect has the same amplifier as the healing tipped arrow has
/execute @e[type=zombie] ~ ~ ~ /summon arrow ~ ~2.5 ~ {Motion:[0d,-1d,0d],damage:6d,CustomPotionEffects:[{Id:6b,Duration:1,Amplifier:0b}]}
duplicates
Arrows of harming (or healing for undead mobs) do not stack with bow damage, what ever damage source does more damage overrides the other damage source.
If the harming effect does more damage then the bow would with normal arrows then only the damage from the harming effect is applied.
If the bow damage with normal arrows is more damage then the harming effect then only the bow damage is applied.
This is determined before damage reduction, so a power V bow fully drawn and using an arrow of harming (instant damage II) against a target in diamond armor (just for example) will only do about 2 hearts of damage. If instead the bow is hardly drawn at all then it will do 6 hearts of damage, the damage from the instant damage II effect.
Demonstration: https://youtu.be/9OW9YXTFnTo
Steps to reproduce:
- /give @s crossbow
- /give @s minecraft:tipped_arrow{Potion:"minecraft:strong_harming"} 32
- /summon minecraft:blaze ~ ~ ~ {Health:16,NoAI:1b}
- Shoot the blaze with the crossbow
- /data get entity @e[type=blaze,limit=1,sort=nearest] Health
Expected behavior: The blaze would have died, having taken 7-11 damage from the arrow plus 12 from the instant damage effect for a total of 19-23 damage.
Observed behavior: The blaze survives with 4 health; the arrow damage was disregarded.
Reason: see MC-111626.
The game is not choosing between the arrow and the potion damage. Instead it is not applying the potion damage or is only applying it partwise because the mob or player is still on damage cooldown from the arrow damage, see MC-111626.