1

/execute store Issues

fhuu 3/7/20 10:10 pm
212
3/7/2020 10:29 pm
I was trying to store an item's name (ex. 20) to a scoreboard score. I use the command

/execute store result score test test run data get entity @s SelectedItem.tag.display.Name

and it comes out as the length of the raw JSON text (the length of '{"text":"20"}')
Is it possible to store an item's name to a scoreboard score?
Posted by
fhuu
Level 31 : Artisan Caveman
3

  Have something to say?

JoinSign in

1

HoboMaggot
03/07/2020 10:29 pm
Level 55 : Grandmaster Blob
Pretty sure the scoreboard scores only takes numerical/interger values, and the JSON text is always a string.
1

Welcome