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
- Summon a non-player mob(e.g., enderman).
- Summon an ender dragon.
- 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] - Found that the system prompts the damage has been applied to the ender dragon but not so, the ender dragon looks unharmed.
- Use the following command:
/damage @e[type=minecraft:ender_dragon,limit=1] 500 minecraft:generic by @p from @p - The command works normally when the source of damage is found to be the player.
2023-02-13, 10:34 AM
2024-03-22, 01:12 PM
2023-02-21, 08:02 AM
2
4
-