mojira.dev
MC-206911

setblock command_block with command "summon entity with custom name" not working

setblock command_block with command "summon entity with custom name" not working

What I expected to happen was...:
This command "setblock ~ ~ ~ command_block{Command:"summon armor_stand ~ ~ ~ {CustomName:'

{"text":"NameExample"}

'}"} replace" to work

What actually happened was...:
Error - Expected '}' at position 75: CustomName:'{" <-- here

Steps to Reproduce:
1. Type command "setblock ~ ~ ~ command_block{Command:"summon armor_stand ~ ~ ~ {CustomName:'{"text":"NameExample"}'}"} replace" in command console
2. Get error

Attachments

Comments 1

You need to escape your quotes

Rinalds

(Unassigned)

Unconfirmed

1.16.4

Retrieved