1
Help with summong command blocks
Im trying to run this command:
/setblock ~ ~1 ~ command_block{Command:'execute as @e[type=item] run data modify entity @s merge value {tag:{display:{Name:"{\"text\":\"test\"}"}}}'}
but it doesn't work. Does anybody have a solution?
/setblock ~ ~1 ~ command_block{Command:'execute as @e[type=item] run data modify entity @s merge value {tag:{display:{Name:"{\"text\":\"test\"}"}}}'}
but it doesn't work. Does anybody have a solution?
2
Ah, yes... "summong". What a legendary word.
Nvm, I just had to double-escape some characters:
/setblock ~ ~1 ~ command_block{Command:'execute as @e[type=item] run data modify entity @s merge value {tag{display:{Name:"{\\"text\\":\\"test\\"}"}}}'}
/setblock ~ ~1 ~ command_block{Command:'execute as @e[type=item] run data modify entity @s merge value {tag{display:{Name:"{\\"text\\":\\"test\\"}"}}}'}
