Line Break Text procedure block

Started by thomoski on

Topic category: Feature requests and ideas for MCreator

Last seen on 15:20, 19. Sep 2024
Joined Jan 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Line Break Text procedure block

I've seen quite a few posts about linebreaks and various issues raised about backwards compatability issues with changing the way raw "\n" text strings are handled. Currently, the generated code results in an additional escape character being added in the generated string:

My proposal is to simply add a new block under "Text" that is an unescaped "\n" string that can be included in string builders. This way, existing procedures would not be broken, the generating of escape characters to user-entered strings would not be affected, while including a way to add linebreaks without locking procedures and editing the code directly.

Something like this:

That generates a string like this:

Where would such a procedure…
Wed, 09/18/2024 - 15:52

Where would such a procedure block be used? For example, they don't work for items with special info.

You could use custom code procedure block to insert \n too