This is a bit complicated to explain, but I'll try my best.
When opening a World to LAN, tag selectors no longer seem to work in commandblocks. I have the command
/testfor @e[tag=isCheating]
in a CommandBlock with
/stats block x y z set AffectedEntities @a PCC
In singelplayer using dummy ArmorStands everything behaves as expected but when opening to LAN every cokmmandblock using the tag selector seems no longer to work.
It's very weird.
Linked issues
duplicates 1
Comments 8
Here is a GIF showing that it's working fine on my side : http://gfycat.com/FocusedMeagerAlaskankleekai
The commands blocks contain the following commands:
/summon ArmorStand
/scoreboard players tag @e[type=ArmorStand] add isCheating
/scoreboard players tag @e[type=ArmorStand] remove isCheating
/testfor @e[tag=isCheating]
And some init command
/stats block x y z set AffectedEntities @a PCC (to the last command block)
/scoreboard players set @a PCC 0
/scoreboard objectives setdisplay sidebar PCC
Can you (again) provide a step by step to reproduce your bug, with the list of ALL the EXACT command used. You can even provide screenshots, a GIF, or a world download if you can. Keep in mind the more information you provide, the easier it will be for us to reproduce the bug.
The thing is, that using armor stands in single player works normally for me too
Only when LAN enabled with other players joining it gets weird
with other players joining
That a relevant information you didn't provide in your report in the first place, and that was why I had trouble to reproduce this bug. Anyways, this is a Duplicate of MC-69826
Not quite sure...
If multiple Entities means different Entities, then this is not the case. Players are the same entity.
Else the affected Entities would make no sense due to a maximum of 1
Players are the same entity
I'm not sure what you mean by that, but each players count for 1 entity.
When you execute this command :
/testfor @e[tag=isCheating]
The server will find X matching entity, and since the command block has a AffectedEntities commandstat in it, he will also try to put the score X into the score PCC of the player @a; as defined in :
/stats block x y z set AffectedEntities @a PCC
Since your LAN world has multiple players, the @a selector will return all these players. But as stated in MC-69826 , there must be only one matching entity, so the scores won't be updated. You don't even need to be on an LAN world to reproduce this bug, you just need multiple matching entity in the commandstat selector, e.g : @e[type=ArmorStand,tag=stat]
Cannot reproduce.
What do you mean by "not working", what is the expected behavior, and what is actually happening.