mojira.dev
MC-61702

@e Selector in /scoreboard "operation" Issues Error

Using the @e selector in place of "<selector>" in the following:

/scoreboard players operation <targetName> <targetObjective> <operation> <selector> <objective>

Will issue the "entity UUID provided is in an invalid format" error, so long as the selector is not targeting a player:

/scoreboard players operation @e OBJECTIVE += @e[type=!Player] OBJECTIVE

Essentially meaning you cannot apply scoreboard operations against entities using another entity's score, which worked in previous snapshots. If replacing "<targetName>" with a selector capable of only targeting a player will work as expected:

/scoreboard players operation @p OBJECTIVE += @e[type=!Player] OBJECTIVE

Comments 12

It seems to work for me... You maybe didn't have any entities in the loaded chunks...

I am standing directly in front of them and have them inserted into the scoreboard as a prep. What is the exact command set you're using? EDIT: very quick video example of it not working: https://www.youtube.com/watch?v=yOg8eW7hVas

Oh... I did it wrong... You're right It's not working

Confirmed in 1.8-pre2

Works for me in 1.8.1

2 more comments

Is this still an issue in the current Minecraft Snapshot 15w47c or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

It is fixed in 15w47c. HOWEVER, if you type in an @ selector wrong, it will still add it as a player instead of complaining about the selector being in the wrong format.

For example, @e[tag=SomeTag] works as a selector while @e[tag="SomeTag"] acts as if you are inputting a player name. It should throw the usual "The entity UUID provided is in an invalid format".

Fixed between 1.8.2 and 15w47c

I believe this is back in 1.11.2, but if @e[tag=something] finds a player it will work (only applying the operation on that player), but if it only finds other entities it won't. (tag=something could be anything inside those brackets, like score_objective=X)

It also works normally with fake players in one of the 'selector slots'

Skylinerw

(Unassigned)

Community Consensus

Minecraft 14w28b, Minecraft 14w29a, Minecraft 14w29b, Minecraft 14w30a, Minecraft 14w30b, ..., Minecraft 1.8-pre1, Minecraft 1.8-pre2, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1

Minecraft 15w47c

Retrieved