Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. 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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 23w06a, 23w07a
    • None
    • Confirmed
    • Commands, Mob behaviour
    • Low
    • Platform

      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.

        1. 2023-02-13_18.32.49.png
          2023-02-13_18.32.49.png
          793 kB
        2. 2023-02-13_18.32.54.png
          2023-02-13_18.32.54.png
          1.29 MB
        3. 2023-02-13_18.32.57.png
          2023-02-13_18.32.57.png
          1.65 MB
        4. 2023-02-13_18.33.12.png
          2023-02-13_18.33.12.png
          1.22 MB
        5. 2023-02-13_18.33.16.png
          2023-02-13_18.33.16.png
          1.39 MB
        6. 2023-02-13_18.33.17.png
          2023-02-13_18.33.17.png
          1.38 MB

            Unassigned Unassigned
            Les3awe [Mod] Les3awe
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: