Command Block Error
I try to use a command in which a score is give to a player who has the inventory of a damaged sword in the first slot of the hotbar. Instead of giving the score when all the perimeters are met, it gives me this error message:
Could not parse dataTag, reason: Invalid tag encountered, expected '
/scoreboard players set @a[m=2] SupriorShrtswrd 1 {SelectedItemSlot:0,Inventory:[{Slot:0b,Damage:1s,tag:{display:
{Name:"Superior Shortsword"}}}]}
Environment
Mac Lion
Created Issue:
Command Block Error
I try to use a command in which a score is give to a player who has the inventory of a damaged sword in the first slot of the hotbar. Instead of giving the score when all the perimeters are met, it gives me this error message:
{Name:"Superior Shortsword"}
Could not parse dataTag, reason: Invalid tag encountered, expected '{' as first char.
Heres the command I was using:
/scoreboard players set @a[m=2] SupriorShrtswrd 1 {SelectedItemSlot:0,Inventory:[{Slot:0b,Damage:1s,tag:{display:}}]}
Environment
/scoreboard is not excepting inventory specifications
/scoreboard is not excepting inventory specifications
Mac Lion
I try to use a command in which a score is give to a player who has the inventory of a damaged sword in the first slot of the hotbar. Instead of giving the score when all the perimeters are met, it gives me this error message:
{Name:"Superior Shortsword"}
Could not parse dataTag, reason: Invalid tag encountered, expected '{' as first char.
Heres the command I was using:
/scoreboard players set @a [m=2] SupriorShrtswrd 1 {SelectedItemSlot:0,Inventory:[{Slot:0b,Damage:1s,tag:{display:}}]}
I try to use a command in which a score is give to a player who has the inventory of a damaged sword in the first slot of the hotbar. Instead of giving the score when all the perimeters are met, it gives me this error message:
{' as first char. Heres the command I was using: {code}
Could not parse dataTag, reason: Invalid tag encountered, expected '/scoreboard players set @a [m=2] SupriorShrtswrd 1 {SelectedItemSlot:0,Inventory:[{Slot:0b,Damage:1s,tag:{display:
{Name:"Superior Shortsword"}}}]}
I try to use a command in which a score is give to a player who has the inventory of a damaged sword in the first slot of the hotbar. Instead of giving the score when all the perimeters are met, it gives me this error message:
{' as first char. Heres the command I was using: {code}
Could not parse dataTag, reason: Invalid tag encountered, expected '/scoreboard players set @a[m=2] SupriorShrtswrd 1 {SelectedItemSlot:0,Inventory:[{Slot:0b,Damage:1s,tag:{display:
{Name:"Superior Shortsword"}}}]}



Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases. If this has been done, we can reopen the issue.
Keep in mind that the "Resolved"-Status on this ticket just means "Answered", and that we are waiting for further information on whether this issue still exists or not. We will reopen it as soon as the requested information has been delivered.
Cannot confirm in 1.8.1 / 1.8.2-pre1 with
/scoreboard players set @p test 2 {SelectedItemSlot:0,Inventory:[{Slot:0b,tag:{display:{Name:"Superior Shortsword"}}}]}Score test ist set to 2 while holding a sword of that name.
I see the issue, kumasasa's worked because he left out the damage tag, Josh's doesn't work because his sword may be incorectly damaged
I don't think this is the point here. There may or may not some tag Whatever:17s in the query, but that shouldn't trigger nvalid tag encountered, expected '{' as first char
true, is the command given, the exact command used too?
@user-f2760: What ?
@Josh: Please retype the command (Not copy-and-paste), sometimes there are invisible control sequences in the middle of somewhere copied strings, see
MC-49755Ticket resolved as incomplete, because no answer in a reasonable amount of time (1+ year), if it still happens, please update the ticket.