mojira.dev
MC-127425

[UPDATE] Command Blocks 'Last Output' shows Java Exception instead of normal Minecraft Syntax Parser

I already reported this bug to 1.12.2,but this bug is still relevant!

I was playing around with the LastOutput NBT Tag in CommandBlocks.
When you run this code

data merge block ~ ~1 ~ {LastOutput:"{{\"text\":\"This is a output message.\"}"}

with another (empty) CommandBlock on top, you will get an Java error message in the LastOutput panel.
The LastOutput Panel in the CommandBlock you just ran this command from doesn't show any errors. But ofcourse there is just one { to much!

Attachments

Comments 5

This bug is outdated, as all bugs are focused on 1.13. /blockdata has also been phased out in favor of /data, so see if this happens with /data as well.

Is this an issue in 18w11a?

Can confir, for 1.13-pre3.

This is the full output of the upper command block:

com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 3 path $. \

Confirmed for 1.13.1.

This is the same message that appears for all invalid JSON:

/tellraw @s invalid

David D

(Unassigned)

Community Consensus

command, json, nbt, parsing

Minecraft 1.12.2, Minecraft 1.13-pre2, Minecraft 1.13-pre3

Retrieved