mojira.dev
MC-161602

can't make triple or more nested quotation marks, in commands

Solved

 

If I make a command for Command Block 1, that then summons a Command Block 2 that should summon Command Block 3.

But the problem is the escape quote, \"

I can't make it so that the backslash doesn't disappear in the second Command Block.

 

/summon falling_block ~ ~ ~2 {BlockState:{Name:"minecraft:command_block"},TileEntityData:{Command:"/summon falling_block ~ ~ ~2 {BlockState:{Name:\"minecraft:command_block\"},TileEntityData:{Command:\"/summon falling_block ~ ~ ~2 {BlockState:{Name:\"minecraft:command_block\"},TileEntityData:{Command:\"say here\"},Time:1}\"},Time:1}"},Time:1}

And if i place two \ in the second command 

/summon falling_block ~ ~ ~2 {BlockState:{Name:"minecraft:command_block"},TileEntityData:{Command:"/summon falling_block ~ ~ ~2 {BlockState:{Name:\"minecraft:command_block\"},TileEntityData:{Command:\"/summon falling_block ~ ~ ~2 {BlockState:{Name:\\"minecraft:command_block\\"},TileEntityData:{Command:\\"say here\\"},Time:1}\"},Time:1}"},Time:1}

It still doesn't work

what do i do?

solution

was shown how it works it just three dashes not just two, like this

 

/summon falling_block ~ ~ ~2 {BlockState:{Name:"minecraft:command_block"},TileEntityData:{Command:"/summon falling_block ~ ~ ~2 {BlockState:{Name:\"minecraft:command_block\"},TileEntityData:{Command:\"/summon falling_block ~ ~ ~2 {BlockState:{Name:\\\"minecraft:command_block\\\"},TileEntityData:{Command:\\\"say here\\\"},Time:1}\"},Time:1}"},Time:1}

Comments 2

Double or triple escape the backslashes with more backslashes.

For future reference, don't put commands questions as a report on the bug tracker.

yes sorry, where do i put the questions then

Bjarne Crone Søllner

(Unassigned)

Unconfirmed

(Unassigned)

1.14.4

Retrieved