Mojira Archive
MC-74002

Entity 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:

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

Duplicate

lennart van hirtum

2014-11-03, 07:03 PM

2015-09-07, 10:16 AM

2014-12-07, 11:16 AM

6

2

Unconfirmed

JSON, entity, scoreboard, tellraw

Minecraft 1.8 - Minecraft 1.8.1Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1-pre4, Minecraft 1.8.1-pre5, Minecraft 1.8.1

-