Formatting lines of text in the overlay label

Started by ЮрийКозлов on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Formatting lines of text in the overlay label

Hello everyone! It is necessary to print a text containing several spaces in the overlay label. For example:
"Hello                friends."  The text is contained in a string variable, let's call it str.
When we try to do this, we get: "Hello friends" with one space.

Control characters, paragraph sign, everything has been tried, nothing helps. Any extra spaces are removed by the system.

MCreator 2024.4 java forge mod