Problem:
Dialogs fail to display some text components like score and storage.
To Replicate:
Create a dummy scoreboard named test_objective
/scoreboard objectives add test_objective dummy
Set the score of test_player to 1 in test_objective
/scoreboard players set test_player test_objective 1
Set data.value to 1 in a storage named minecraft:test_storage
/data modify storage minecraft:test_storage data.value set value 1
Run this command in a command block to show the dialog
/dialog show @p { "type": "minecraft:notice", "title": "Show score", "body": { "type": "minecraft:plain_message", "contents": [ { "text": "test_player's score is " }, { "score": { "objective": "test_objective", "name": "test_player" } }, { "text": " and storage value is " }, { "storage": "minecraft:test_storage", "nbt": "data.value" } ] } }
Expected Results:
The dialog should have a body that displays “test_player’s score is 1 and storage value is 1”
Actual Results:
The dialog has a body that displays “test_player’s score is and storage value is “
The correct results will show if the body contents of the dialog are executed in other commands like tellraw.
/tellraw @p [ { "text": "test_player's score is " }, { "score": { "objective": "test_objective", "name": "test_player" } }, { "text": " and storage value is " }, { "storage": "minecraft:test_storage", "nbt": "data.value" } ]
Linked issues
duplicates 1
Attachments
Comments 0
No comments.