Mojira Archive
MC-259977

When the source of damage in the /damage command is not the player, the damage will not be applied to the ender dragon

The bug

When the source of damage in the /damage command is not the player, the damage will not be applied to the ender dragon.

Reproduce steps

  1. Summon a non-player mob(e.g., enderman).
  2. Summon an ender dragon.
  3. Use the following command:
    /damage @e[type=minecraft:ender_dragon,limit=1] 500 minecraft:generic by @e[type=minecraft:enderman,limit=1] from @e[type=minecraft:enderman,limit=1]
  4. Found that the system prompts the damage has been applied to the ender dragon but not so, the ender dragon looks unharmed.
  5. Use the following command:
    /damage @e[type=minecraft:ender_dragon,limit=1] 500 minecraft:generic by @p from @p
  6. The command works normally when the source of damage is found to be the player.

Works As Intended

[Mod] Les3awe

2023-02-13, 10:34 AM

2024-03-22, 01:12 PM

2023-02-21, 08:02 AM

2

4

Confirmed

Low

Platform

Commands, Mob behaviour

23w06a, 23w07a

-