mojira.dev
MC-50382

Scoreboard NBT Masks always fail to match Entity type specific data

The new NBT selection masks on the "/scoreboard player" functions never matches Entity type Specific data. For Example, logically the following command should match all powered Creepers and set their Test score to 1:

/scoreboard players set @e[type=Creeper] Test 1 {powered:1}

However, the command block indicates that the data does not match:

[23:16:56] The dataTag does not match for 83b57768-bbfe-4d8e-a617-38658a4769cc

This happens regardless of whether I am the owner or not. Also tested on "Fuse" and neither of those match regardless of the actual values

Comments 18

Does the horse actually have "nicka101" as its owner, or does it have your UUID as its owner? Check it with an NBT editor.

I feel it is somewhat irrelevant as I thought of this and also tested the Entity specific data on a creeper. Not sure how I can run an NBT editor on a single horse when I don't know where it's stored

Is this still a concern in the current Minecraft version 14w19a / Launcher version 1.3.11 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.

This problem still exists in 14w21b.

This issue still exists in 14w26b, but it looks like the original reporter stopped updating this long ago.

8 more comments

You have to define the tag-type (which is not necessary for all commands and tags, though is prominent in /testfor and /scoreboard):

/scoreboard players set @e[type=Creeper] OBJECTIVE 1 {powered:1b}

Mojang has stated they don't intend on fixing this. See: https://bugs.mojang.com/browse/MC-30976?focusedCommentId=113895&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-113895

Thank you, Skylinerw. I know I tried that, but I must have had a typo somewhere that stopped it from working, which was my mistake.

I can confirm it in 1.8

I should restate that this is not a bug (or at least working as intended). The command provided simply has not been structured as needed by assigning the tag its proper tag-type, as is seen in quite a few reports where people run into this issue. The link I've provided in my last comment explains that it's working as intended.

I have filled the nbt wrong... XD
I doesn't noticed it.

Nick Anstee

(Unassigned)

Community Consensus

command, mob

Minecraft 14w10b, Minecraft 14w27b, Minecraft 14w28a, Minecraft 1.8

Retrieved