Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-259967

/damage only works with a single entity target

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 23w07a, 1.19.4 Pre-release 1
    • Confirmed
    • Commands, Parity

      The target parameter of /damage only accepts one entity, requiring you to use limit=1 or similar. This means that to damage multiple things, you need to use /execute, which has the following consequences:

      • Worse performance as you are running N commands instead of just one
      • You can't use the original @s in the by parameter: obvious use cases like /execute as @e[type=pufferfish] at @s run damage @a[distance=..5] 1 thorns by @s are impossible

      This might be intended / feature request a la MC-121807 (it would be great if that one were changed too :/), but I think there are a couple reasons why this behavior is especially unexpected:

      • Bedrock's /damage command supports multiple entities just fine
      • /kill can apply damage to multiple entities just fine

            Unassigned Unassigned
            tryashtar [Mod] tryashtar
            Votes:
            9 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: