/damage only works with a single entity target
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
2023-02-12, 09:16 PM
2024-05-29, 07:24 AM
2023-02-24, 08:18 AM
9
7
-