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?
/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?
1
Pretty sure the scoreboard scores only takes numerical/interger values, and the JSON text is always a string.
