mojira.dev
MC-135712

scoreboard players operation is not concurrent

The Bug

The scoreboard players operation command appears to apply operations in a loop as opposed to concurrently.

To reproduce:

1. Create a new empty world (void of entities) and create a new scoreboard objective test
2. spawn some entities
3. Set the test score of all entities to 1
4. Run /scoreboard players operation @e test += @e[limit=1] test
5. Run /execute as @e run scoreboard players list @s to see the scores

What I expected was that all scores would be 2, since that was the score of the first entity. However, every score apart from the player will appear as 3.

Now, this might be intended, however my hypothesis is this is an unintended side effect of scoreboard players operation allowing selectors that can return more than one entity.

Comments 3

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Can't quite reproduce it with the reproduction steps, however using @e[limit=1] for the 2nd selector in the operation command, reproduces it for me, indicating that I am processed last and you were not for some reason.

Ely G

(Unassigned)

Confirmed

Commands

Minecraft 1.13, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, ..., 1.18.2, 1.19, 1.19.1, 1.19.3, 1.19.4

Retrieved