mojira.dev
MCPE-19897

Command type "string" only allows strings that start with letters

For example, using command "transferserver", which arguments are server of type string and port of type int, you can write the address as "example.com" but you can't write it as a numeric address, like "192.168.5.1".

In the first screen the argument is valid, in the second is not.

Attachments

Comments 8

I confirm. We tried with some modified packets, ips (x.x.x.x) work fine for the packet.

You can solve this by putting the IP address in quotation marks.

Could this be reopened? This affects more than just the /transferserver command, including but not limited to scoreboard entries ('#hidden' is invalid, and requires quotation marks to work), tag names ('1' is invalid) and even target selector arguments ('tag=1' is invalid). This can also be contrasted to Java Edition where quotation marks are not required for these entries.

Agreed with @unknown Java allows string arguments to start with numbers in all those cases, whereas bedrock throws an exception (for seemingly no reason).
This should absolutely be reviewed. If not for ease of use, for parity.

For clarify, the following character set doesn't require quotes in java, anything else included and quotes are needes: a-zA-Z0-9._-

Thank you for your report!
However, this issue is Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version History -- Snapshot Version History -- Feature Requests and Suggestions

Quick Links:
πŸ““ Bug Tracker Guidelines -- πŸ’¬ Community Support -- πŸ“§ Mojang Support (Technical Issues) -- πŸ“§ Microsoft Support (Account Issues) -- πŸ““ Project Summary -- ✍️ Feedback and Suggestions -- πŸ“– Game Wiki

Mark White

(Unassigned)

1086824, 1086992

Confirmed

Tablet - Android - Other (Specify in description)

Android 7.1

1.0.3, 1.0.4.11, 1.0.5.3, 1.21.51 Hotfix

Retrieved