Mobs that use projectiles as their weapon, such as Skeletons and Withers, cannot deal damage to the Ender Dragon but projectiles fired by a player does deal damage, such as an arrow.
Steps to Reproduce:
1. Make a new Creative world.
2. Construct an End Portal and enter it.
3. Spawn a Wither.
4. It may be difficult, but get the Wither to chase the Ender Dragon.
5. Notice that when a Wither Skull manages to directly hit the Ender Dragon, no damage is dealt. Sometimes, only the explosion damage is dealt.
Linked issues
is duplicated by 1
Attachments
Comments 6
Confirmed for 1.20.2. I was wondering why my skeletons kept missing...
Edit: If you need this fixed for map maker reasons, there is a workaround. Make every arrow belong to the player:
execute as @e[type=arrow] run data modify entity @s Owner set from entity @p UUID
Can confirm in 24w14a. I've written a more streamlined and reliable way to reproduce this:
Steps to Reproduce:
Place down a repeating command block (no redstone activation), with the following command
tp @e[type=minecraft:ender_dragon] ~ ~4 ~
Summon an ender dragon
/summon minecraft:ender_dragon
Spawn a skeleton nearby
Make it target the ender dragon (replace UUID field with the skeleton's UUID)
/damage [UUID] 1 minecraft:mob_attack by @e[type=minecraft:ender_dragon,sort=nearest,limit=1]
Expected Results:
The skeleton would damage the ender dragon.
Observed Result:
The arrow is removed, and does not damage the ender dragon.
the ender dragon is immune to bad effects, but not immune to explosions: Intended