Extracting Commands

Started by LueLusten on

Topic category: Help with MCreator software

Joined Nov 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Extracting Commands

I am trying to extract 

/give @p written_book 1 0 {pages:["{\"text\":\"Test\"}"],title:"Test Book",author:"Test Author",display:{Lore:["This is a test"]}}

I know we need to comment out the \ and " but I not doing it right I am sure.

"give @p written_book 1 0 {pages:[\"{\\\"text\\\":\\\"Test\"}\"],title:\"Test Book\",author:\"Test Author\",display:{Lore:[\"This is a test\"]}}"

But when I do this I get a MC error

Client thread/INFO]: [CHAT] Data tag parsing failed: Unbalanced curly brackets {}: {pages:["{\"text\":\"Test"}"],title:"Test Book",author:"Test Author",display:{Lore:["This is a test"]}}

 

What have I over looked

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unbalanced curly brackets...
Wed, 08/23/2017 - 14:03

Unbalanced curly brackets...

I've looked through your commnad and I have not seen any bracket errors.

Go to this website, paste in your command and check it:

https://mrgarretto.com/checkbrackets

Joined Nov 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is no error with the
Wed, 08/23/2017 - 14:39

There is no error with the code it's self its to do with JAVA and rapping the command

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes that just happens
Wed, 08/23/2017 - 14:59

Yes that just happens sometimes with commands, try just writing the command for hand and putting other text in it. Redoing the command always works for me in these situations.