Mojira Archive
MC-263143

NBT interpret is not working properly with quotation mark

Interpreted array containing <"> (quotation mark) in any configuration

always results in empty line. 

 

How to reproduce:

-create array in storage containing <"> (quotation mark) in any configuration

// examples
/data modify storage test arr set value ["a", "b\\\"", "c", "!"]
/data modify storage test arr set value ["a", "\"", "c", "!"] 
/data modify storage test arr set value ['"']
/data modify storage test arr set value ["\"\\\"\""]

 

-assign this array to sign with interpret flag 

// copy storage array content as string onto sign
/data modify block x y z front_text.messages[0] set value '{"extra":[{"nbt":"arr","storage":"test","interpret":true}],"text":""}' 

 

results (for front_text.messages[0]):

'{"extra":[{"text":""}],"text":""}'

expected:

'{"extra":[{"extra":[{"text":"b\\""},{"text":"c"},{"text":"!"}],"text":"a"}],"text":""}'

 

Invalid

Michał

2023-06-02, 08:04 PM

2023-06-04, 04:14 AM

2023-06-04, 04:14 AM

0

2

Unconfirmed

(Unassigned)

1.20 Release Candidate 1

-