Escaped Characters Getting Removed from Blocky Editor when opening

Started by willk55 on

Topic category: Troubleshooting, bugs, and solutions

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Escaped Characters Getting Removed from Blocky Editor when opening

When a \ character is put in a text field in the Blocky editor, upon reopening it gets removed. This wouldn't usually be a problem because characters that would need to be escaped like " get the \ put in while interpreting the blocks to java code, but sometimes a Minecraft command needs a \ to be properly formated. The only way I found around this was to lock the code and fix it myself.

Before: https://drive.google.com/file/d/1xuq-5R_QfVDdChPQdjub_SKpBmTRVJNX/view?usp=sharing

After: https://drive.google.com/file/d/1AAaqTKuDKq5Fo2TSl2u6AsnAUKhG4sa9/view?usp=sharing

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just a thought that the '/'…
Sun, 11/08/2020 - 14:38

Just a thought that the '/' is the wrong way round.

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well, \ and / do different…
Mon, 11/09/2020 - 22:48

Well, \ and / do different things. / doesn't usually do anything special, but \ is used to create escape characters. I think the most common use for \ is to put " into strings. When making a string, you close it with a ", so you can't just put a ". Instead you put \", which tells the computer that you want to put " into the string and not close it.

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I also have the same problem…
Tue, 12/28/2021 - 16:59

I also have the same problem, I'm trying to place signs with text on them, and the command has backslashes, but they get removed.

The command is 

/setblock ~ ~ ~ minecraft:oak_sign[rotation=1]{Text1:"\"line #1\"",Text2:"\"line #2\""}