I've tried changing the NPC dialogue ui (npc_interact
) buttons and noticed that despite setting
"$button_text_size": [ "100%", "default" ],
"$button_text_max_size": [ "100%", "100%" ]
any label that binds #student_button_text
from student_buttons_collection
is still being cut off.
I also tried creating a custom label, no luck.
When i manually set the "text"
property to a string it won't be cut off.
[media]
Full example npc_interact_screen.json
:
"[email protected]_panel": {
"size": [ "100%", 20 ],
"controls": [
{
"button@common_buttons.light_text_button": {
"$button_type_panel": "npc_interact.student_button_label_panel",
"$pressed_button_name": "button.student_button",
"layer": 4,
"size": [ "100%", "100%" ],
"bindings": [
{ "binding_type": "collection_details", "binding_collection_name": "student_buttons_collection", "binding_collection_prefix": "student_buttons" }
]
}
}
],
"bindings": [
{ "binding_name": "#student_button_visible", "binding_type": "collection", "binding_name_override": "#visible", "binding_collection_name": "student_buttons_collection" }
]
},
"student_button_label": {
"type": "label",
"color": "$text_color",
"text": "#student_button_text",
// "text":"#student_button_text", //stops after ~100px
// "text":"HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD HELLO WORLD", //renders fully
"bindings": [
{ "binding_name": "#student_button_text", "binding_type": "collection", "binding_collection_name": "student_buttons_collection" }
,
{ "binding_name": "$visible_binding", "binding_type": "collection", "binding_name_override": "#visible", "binding_collection_name": "student_buttons_collection" }
]
}
Β
[media]Attachments
Comments 3

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Could you please provide an addon showcasing the issue?
This ticket will automatically reopen when you reply.
Quick Links:
π Issue Guidelines β π¬ Mojang Support β π Project Summary β π§ Suggestions β π Minecraft Wiki
Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed asΒ Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following theΒ Issue GuidelinesΒ which includes steps to reproduce the problem.
Quick Links:
πΒ Issue GuidelinesΒ β π¬Β Mojang SupportΒ β π§Β SuggestionsΒ β πΒ Minecraft Wiki