lennart van hirtum
- lennartVH01
- lennartvh01
- Europe/Stockholm
- Yes
- No
* symbol in /scoreboard doesnot work* symbol in /scoreboard doesn't target pre 14w30a players
* symbol in /scoreboard doesn't target pre14w30a players* symbol in /scoreboard doesn't target pre-14w30a players
Entity scores do notwork properly in tellraw/any JSON formattingEntity scores do not display in tellraw/any JSON formatting
when using players(either with selector or name) scores to display in tellraw the scores display fine
if one instead tries to use an entity using a selector, the score will not display
Steps to reproduce:
Spawn a Pig
/scoreboard objectives add temp dummy
/scoreboard players set @e[type=Pig] temp 5
/scoreboard players set @p temp 5
/tellraw @a {score:{name:'@p',objective:'temp'}}
/tellraw @a {score:{name:'@e[type=Pig,c=1]',objective:'temp'}}The first tellraw outputs the number 5
The second tellraw outputs an empty linewhen using players(either with selector or name) scores to display in tellraw the scores display fine
if one instead tries to use an entity using a selector, the score will not display[b]Steps to reproduce:[/b]
Spawn a Pig
/scoreboard objectives add temp dummy
/scoreboard players set @e[type=Pig] temp 5
/scoreboard players set @p temp 5
/tellraw @a {score:{name:'@p',objective:'temp'}}
/tellraw @a {score:{name:'@e[type=Pig,c=1]',objective:'temp'}}The first tellraw outputs the number 5
The second tellraw outputs an empty line
when using players(either with selector or name) scores to display in tellraw the scores display fine
if one instead tries to use an entity using a selector, the score will not display
[b]Steps to reproduce:[/b]
Spawn a Pig
/scoreboard objectives add temp dummy
/scoreboard players set @e[type=Pig] temp 5
/scoreboard players set @p temp 5
/tellraw @a {score:{name:'@p',objective:'temp'}}
/tellraw @a {score:{name:'@e[type=Pig,c=1]',objective:'temp'}}The first tellraw outputs the number 5
The second tellraw outputs an empty linewhen using players(either with selector or name) scores to display in tellraw the scores display fine
if one instead tries to use an entity using a selector, the score will not display<b>Steps to reproduce:</b>
Spawn a Pig
/scoreboard objectives add temp dummy
/scoreboard players set @e[type=Pig] temp 5
/scoreboard players set @p temp 5
/tellraw @a {score:{name:'@p',objective:'temp'}}
/tellraw @a {score:{name:'@e[type=Pig,c=1]',objective:'temp'}}The first tellraw outputs the number 5
The second tellraw outputs an empty line
when using players(either with selector or name) scores to display in tellraw the scores display fine
if one instead tries to use an entity using a selector, the score will not display
<b>Steps to reproduce:</b>
Spawn a Pig
/scoreboard objectives add temp dummy
/scoreboard players set @e[type=Pig] temp 5
/scoreboard players set @p temp 5
/tellraw @a {score:{name:'@p',objective:'temp'}}
/tellraw @a {score:{name:'@e[type=Pig,c=1]',objective:'temp'}}The first tellraw outputs the number 5
The second tellraw outputs an empty linewhen using players(either with selector or name) scores to display in tellraw the scores display fine
if one instead tries to use an entity using a selector, the score will not displaySteps to reproduce:
Create a flat world, preferably redstoneready so that no animals can spawn
Spawn a Pig
/scoreboard objectives add temp dummy
/scoreboard players set @e[type=Pig] temp 5
/scoreboard players set @p temp 5
/tellraw @a {score:{name:'@p',objective:'temp'}}
/tellraw @a {score:{name:'@e[type=Pig,c=1]',objective:'temp'}}The first tellraw outputs the number 5
The second tellraw outputs an empty line
when using players(either with selector or name) scores to display in tellraw the scores display fine
if one instead tries to use an entity using a selector, the score will not displaySteps to reproduce:
Create a flat world, preferably redstoneready so that no animals can spawn
Spawn a Pig
/scoreboard objectives add temp dummy
/scoreboard players set @e[type=Pig] temp 5
/scoreboard players set @p temp 5
/tellraw @a {score:{name:'@p',objective:'temp'}}
/tellraw @a {score:{name:'@e[type=Pig,c=1]',objective:'temp'}}The first tellraw outputs the number 5
The second tellraw outputs an empty linewhen using players(either with selector or name) scores to display in tellraw the scores display fine
if one instead tries to use an entity using a selector, the score will not displaySteps to reproduce:
Create a flat world, preferably redstoneready so that no animals can spawn
Spawn a Pig
/scoreboard objectives add temp dummy
/scoreboard players set @e[type=Pig] temp 5
/scoreboard players set @p temp 5
/tellraw @a {score:{name:'@p',objective:'temp'}}
/tellraw @a {score:{name:'@e[type=Pig,c=1]',objective:'temp'}}The first tellraw outputs the number 5
The second tellraw outputs an empty line
I want to display a score of an entity via /tellraw but it doesn't show up in the chat.
How to reproduce:
1. I made a scoreboard objective (wood) and set the score for an entity with a custom name to 7 (for example).
2. via/say @e[score_wood_min=7]
i get back the Custom name of the entity. Everything ok.
3. Now i wanted to display its score (used commandblock because its to long for the chat):/tellraw @a {"text":"","extra":[{"score":{"name":"@e[score_wood_min=7]","objective":"wood"}}]}In the chat appears a "blank" line.
Also doesn't work with books and other json-related stuff where something is stored in entities and not in (Fake)Playernames.
When displaying an entity's score in chat, it will not display.
However, when using a player or a fake player, it works just fine.
What I expected to happen:
The chat would display "1" for the player, the fake player and the entityWhat actually happened:
The chat displays a "1" for the player and any fake player, but doesn't with selectors
When displaying an entity's score in chat, it will not display.
However, when using a player or a fake player, it works just fine.
What I expected to happen:
The chat would display "1" for theplayer, the fakeplayer and the entityWhat actually happened:
The chat displays a "1" for the player and any fake player, but doesn't with selectorsWhen displaying an entity's score in chat, it will not display.
However, when using a player or a fake player, it works just fine.
What I expected to happen:
The chat would display "1" for the player and the entityWhat actually happened:
The chat displays a "1" for the player and any fake player, but doesn't with selectorsSteps to reproduce:
Create a new flat world type "redstoneready", to make sure no mobs spawn
Spawn a Pig/scoreboard objectives add test dummy /scoreboard objectives setdisplay sidebar test /scoreboard players set @e test 1Now you should have two players in the sidebar that have a score of 1 for objective test
After this, do the following tellraws:/tellraw @a {score:{name:'@p',objective:test}} /tellraw @a {score:{name:'@e[type=Pig]',objective:test}}This displays "1" for the first tellraw, but displays a blank line for the second tellraw
You can do another tellraw to test if the @e selector specifically is broken:/tellraw @a {score:{name:'@e[type=Player]',objective:test}}Displays "1" aswell, showing that this is actually a problem with entity's specifically.
When displaying an entity's score in chat, it will not display.
However, when using a player or a fake player, it works just fine.
What I expected to happen:
The chat would display "1" for the player and the entityWhat actually happened:
The chat displays a "1" for the player and any fake player, but doesn't with selectorsSteps to reproduce:
Create a new flat world type "redstoneready", to make sure no mobs spawn
Spawn a Pig/scoreboard objectives add test dummy /scoreboard objectives setdisplay sidebar test /scoreboard players set @e test 1Now you should have two players in the sidebar that have a score of 1 for objective test
After this, do the following tellraws:/tellraw @a {score:{name:'@p',objective:test}} /tellraw @a {score:{name:'@e[type=Pig]',objective:test}}This displays "1" for the first tellraw, but displays a blank line for the second tellraw
You can do another tellraw to test if the @e selector specifically is broken:/tellraw @a {score:{name:'@e[type=Player]',objective:test}}Displays "1" aswell, showing that this is actually a problem with entity's specifically.
From Marcono1234's comment:
I used MCP to decompile Minecraft and had a look in the corresponding class and I think I found the problem.
For some reason the game creates two net.minecraft.util.ChatComponentScore, one that contains the raw input and then one that contains the parsed name and then uses the second one to display the score.However for the parsed one it uses the getName() method. This means for an ArmorStand for example it will return "Armor Stand" which is of course neither a valid player name nor a valid UUID.
To fix this some code would be needed to make the game use the UUID instead of the name when an entity is selected.
Possible fix (1.8)List var6 = PlayerSelector.func_179656_b(p_179985_0_, var5, Entity.class); if (var6.size() != 1) { throw new EntityNotFoundException(); } Entity selectorEntity = ((Entity)var6.get(0)); if (selectorEntity instanceof EntityPlayerMP) { var5 = selectorEntity.getName(); } else { var5 = selectorEntity.getUniqueID().toString(); }This is the only code change needed. The wildcard parsing will work the way it currently is (if I understand it correctly), as the recipient can currenlty only be a player (for entities it fails as it would then use the name again). However for the future it might be a good idea to change this as well.
When displaying an entity's score in chat, it will not display.
However, when using a player or a fake player, it works just fine.
What I expected to happen:
The chat would display "1" for the player and the entityWhat actually happened:
The chat displays a "1" for the player and any fake player, but doesn't with selectorsSteps to reproduce:
Create a new flat world type "redstoneready", to make sure no mobs spawn
Spawn a Pig/scoreboard objectives add test dummy /scoreboard objectives setdisplay sidebar test /scoreboard players set @e test 1Now you should have two players in the sidebar that have a score of 1 for objective test
After this, do the following tellraws:/tellraw @a {"score":{"name":"@p","objective":"test"}} /tellraw @a {"score":{"name":"@e[type=Pig]","objective":"test"}}This displays "1" for the first tellraw, but displays a blank line for the second tellraw
You can do another tellraw to test if the @e selector specifically is broken:/tellraw @a {"score":{"name":"@e[type=Player]","objective":"test"}}Displays "1" aswell, showing that this is actually a problem with entity's specifically.
From Marcono1234's comment:
I used MCP to decompile Minecraft and had a look in the corresponding class and I think I found the problem.
For some reason the game creates two net.minecraft.util.ChatComponentScore, one that contains the raw input and then one that contains the parsed name and then uses the second one to display the score.However for the parsed one it uses the getName() method. This means for an ArmorStand for example it will return "Armor Stand" which is of course neither a valid player name nor a valid UUID.
To fix this some code would be needed to make the game use the UUID instead of the name when an entity is selected.
Possible fix (1.8)List var6 = PlayerSelector.func_179656_b(p_179985_0_, var5, Entity.class); if (var6.size() != 1) { throw new EntityNotFoundException(); } Entity selectorEntity = ((Entity)var6.get(0)); if (selectorEntity instanceof EntityPlayerMP) { var5 = selectorEntity.getName(); } else { var5 = selectorEntity.getUniqueID().toString(); }This is the only code change needed. The wildcard parsing will work the way it currently is (if I understand it correctly), as the recipient can currenlty only be a player (for entities it fails as it would then use the name again). However for the future it might be a good idea to change this as well.
Extremely high GPU usage when looking downt
@lennart van hirtum: I made you the reporter of this ticket, so you may update the version and edit the description.
@Sebastian K: Please complain, if you have a problem with that.




The repeater does get blocked when pointing into it with a comparator and powering the comparator, it just doesn't show graphically
Please don't just mark it as resolved while you haven't properly looked at it yet
is there any way of contacting him so that we can get his attention back here?
After further testing i discovered that the * symbol does partially work, but that custom "players" such as #BlueKills, #RedKills, ect, created before the update of 14w30a do not get targeted, while players created after 14w30a do get shown on the scoreboard.
"/scoreboard players set * kills 5" for example would show all the players that have ever joined, all the players that i created within 14w30a but not players created before 14w30a
modifying the scores of the previous players doesn't help to add them to the scoreboard.
a * in a command targets all listed objects with a score value, score:{} parameter can only accept a single player, it will result in an error, after some testing i discovered that just using a selector causes the said bug, when using a direct name the problem is resolved, so to get around this you would just copy @p's score to a dummy player and use it instead
make sure you use the correct syntax, i usually just edit the part in the middle were it sais "minecraft:bedrock,2*minecraft:dirt,minecraft:grass" also, before leaving the screen where you input your preset, make sure you copy your preset first, as it gets reset when you come back to the page
confirmed
have been able to reproduce with other entity's
It is still the case in the current version, see https://bugs.mojang.com/browse/MC-74002 for a duplicate of this one with some more explanation
reproduced in 1.8.1-pre4
reproduced in 1.8.1-pre5
reproduced in Minecraft 1.8.1
The How to reproduce is incorrect, it should be:
Create a flat world, preferably redstoneready so that no animals can spawn
Spawn a Pig
/scoreboard objectives add temp dummy /scoreboard players set @e[type=Pig] temp 5 /scoreboard players set @p temp 5 /tellraw @a {score:{name:'@p',objective:'temp'}} /tellraw @a {score:{name:'@e[type=Pig,c=1]',objective:'temp'}}The first tellraw outputs the number 5
The second tellraw outputs an empty line
As you can see it works with selectors, but it just works for players and not for other entity's
Also, this is still an issue in the latest version of minecraft: (Minecraft-1.8.1)
confirmed for MC 1.8.1
Please reopen as this is still an issue in the current version of minecraft: 1.8.1
Confirmed for minecraft 1.8.1
Not yet fixed, dupe of
MC-50166Still an issue in the current version of minecraft: Minecraft 1.8.2-pre1
I have the same problem, but only if i put my render distance to 6 or higher
Still an issue in the current version of minecraft: 1.8.2-pre4
Still an issue in the current version of minecraft: 1.8.2-pre6
Still an issue in minecraft 1.8.3
The whole point of the /trigger comand is to allow a non OP player to set certain scores to trigger other systems through books/chat. Also there is no security risk as in order for a player to be able to run the command, the scoreboard must be of the type trigger and the player must also first be enabled.
Before you make a bugreport, please first make sure that your command is indeed correct, remove the quote behind the first selector
Updated for 15w47c & updated tellraws to strict JSON