mojira.dev
MC-298144

The initial value of minecraft:text input type is limited to 32 characters, regardless of max_length field

I would expect the initial string to display up to the max_length, however it cuts off at the default, 32.

Command to reproduce in command block:

25w21a:

dialog show @p {"type": "minecraft:simple_input_form","title": "Bug Report","body": {"type": "minecraft:plain_message","contents": "The intial field is this exact string which is 119 characters long, the max length is set to 256, and the width is 500."},"inputs": [{"type": "minecraft:text","key": "example","width": 500,"label": "Example","initial": "The intial field is this exact string which is 119 characters long, the max length is set to 256, and the width is 500.","max_length": 256}],"action": {"label": "Submit","id": "submit","on_submit": {"type": "minecraft:command_template","template": "execute run say $(example)"}}}

1.21.6 Pre-Release 1:

dialog show @p {"type": "minecraft:notice","title": "Bug Report","body": {"type": "minecraft:plain_message","contents": "The intial field is this exact string which is 119 characters long, the max length is set to 256, and the width is 500."},"inputs": [{"type": "minecraft:text","key": "example","width": 500,"label": "Example","initial": "The intial field is this exact string which is 119 characters long, the max length is set to 256, and the width is 500.","max_length": 256}],"action": {"label": "Submit","action": {"type": "minecraft:dynamic/run_command","template": "execute run say $(example)"}}}

Edit: Updated report with new example command after changes made in 1.21.6 Pre-Release 1. The issue persists; paste the command into a command block to try for yourself.

Attachments

Comments 0

No comments.

Doctor_Madd

boq

Plausible

Platform

Normal

Data Packs

25w21a, 1.21.6 Pre-Release 1

1.21.6 Pre-Release 2

Retrieved