The bug
When an /enchant command targets multiple entities, it can succeed for some but fail for others. In this case, the command’s result correctly returns the number of entities that were affected, but the feedback message incorrectly shows the number of entities that were targeted.
How to reproduce
Run
/summon armor_stand ~ ~ ~ {ShowArms:1b}three timesGive a sword to one of them
/enchant @e[type=armor_stand] sharpness
Expected result
Should say “Applied enchantment Sharpness I to Armor Stand’s item”
Observed result
Says “Applied enchantment Sharpness I to 3 entities”
Notes
If execute store is used, the result is properly 1, not 3. If no entities are affected, the command properly fails.
This issue was split from MC-122717
Comments 0
No comments.