The `\n` escape sequence does not work in the `tellraw` command in Minecraft Snapshot 25w02a. Instead of creating a new line, it throws an error stating "Invalid escape sequence '\n' in string."
Bug Title:
Invalid Escape Sequence \n in tellraw Command
Description:
In the Minecraft Snapshot version 25w02a, using the escape sequence \n in the tellraw command results in an error. Instead of interpreting the sequence correctly, the game throws a syntax error:
Error Message:
Invalid escape sequence '\n' in string at position 33
Example:
/tellraw @p ["Line 1",\{"text":"\n"},"Line 2"]
Expected Behavior:
The text should be correctly interpreted and displayed across two lines, like this:
Line 1
Line 2
Actual Behavior:
The command results in an error, and the escape sequence \n is not accepted. Instead, the error points to an invalid escape sequence in the JSON string.
Additional Information:
- Version: Minecraft Snapshot 25w02a
- Mode: Tested in singleplayer.
- Other Escape Sequences: It is unclear whether other escape sequences are also affected.
Steps to Reproduce:
- Open a world in Minecraft Snapshot version 25w02a.
- Execute the following command:
/tellraw @p ["Line 1",\{"text":"\n"},"Line 2"] - Observe that the error message appears and the command fails to execute.
Expected Result:
The game should process the escape sequence \n and display the text on two separate lines.
Actual Result:
The error message indicates an invalid escape sequence, and the command does not execute.
Note:
This may indicate that the tellraw JSON implementation does not support or correctly process escape sequences like \n.
2025-01-13, 10:06 PM
2025-01-14, 12:22 AM
2025-01-14, 12:17 AM
1
0
-