Summary:
When you use text component content types like selector
, score
, and nbt
inside a dialog, they are not resolved (i.e., they are displayed literally or not at all). Instead of showing actual player names, positions, or scores, the dialog shows raw component data like @s
or nothing.
Steps to reproduce:
Create a dialog JSON file with the following contents:
{ "type": "minecraft:notice", "title": "Dialog Test", "body": [ { "type": "minecraft:plain_message", "contents": [ "All players: ", { "selector": "@a" } ] }, { "type": "minecraft:plain_message", "contents": [ "Current player: ", { "selector": "@s" } ] }, { "type": "minecraft:plain_message", "contents": [ "All entities: ", { "selector": "@e" } ] }, { "type": "minecraft:plain_message", "contents": [ "Your current position: ", { "entity": "@s", "nbt": "Pos" } ] } ] }
Use one of the following commands to show the dialog:
a./dialog show @s namespace:dialog
b./execute as @s run dialog show @s namespace:dialog
Expected result:
All players: PlayerA, PlayerB, PlayerC
Current player: PlayerA
All entities: PlayerA, PlayerB, PlayerC, Pig, Cow, Sheep, Zombie
Your current position: [20.0d, 76.0d, 33.0d]
Actual result:
All players: @a
Current player: @s
All entities: @e
Your current position:
Notes:
The same
selector
,nbt
, andscore
components resolve correctly in chat messages, signs, and books.This suggests dialogs currently do not support component resolution, which may be unintentional or a missing feature.
Linked issues
is duplicated by 7
relates to 2
Attachments
Comments 2
Thank you for your report!
After consideration, the issue is being closed as Invalid.
You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support (Technical Issues) β π§ Microsoft Support (Account Issues)
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki
Can confirm, and of course this can be reproduced by pasting that JSON into a command block preceded by
execute as @p run dialog show @s
and powering said command block. For comparison with tellraw, set up another command block withexecute as @p run tellraw @s
and paste one of the βcontentsβ lists from the JSON.