Setblocking/filling a sign without explicitly setting all Text tags, shows 'an unexpected error occured'
The bug
When placing a sign (with either /fill or /setblock) with any NBT without explicitly setting `Text1`, `Text2`, `Text3` and `Text4`, shows the message "An unexpected error occurred trying to execute that command", eventhough the sign seems to be placed correctly. This leads to the block nbt not being able to be used in things like /data modify.
How to reproduce
# the following commands work:
setblock ~ ~ ~ minecraft:spruce_sign
setblock ~ ~ ~ minecraft:spruce_sign{Text1:"\"\"",Text2:"\"\"",Text3:"\"\"",Text4:"\"\""}
# the following commands don't work:
setblock ~ ~ ~ minecraft:spruce_sign{Text1:"\"\""}
setblock ~ ~ ~ minecraft:spruce_sign{Color:"blue"}
# trying to copy Text1 to an entity's name doesn't work if it throws the error message:
summon minecraft:armor_stand ~ ~ ~ {CustomNameVisible:1b,Tags:["this"]}
setblock ~ ~ ~ minecraft:spruce_sign{Text1:"{\"score\":{\"objective\":\"tmp\",\"name\":\"@e[limit=1,tag=this]\"}}"}
data modify entity @e[tag=this,limit=1] CustomName set from block ~ ~ ~ Text1
# --> the name doesn't update
Linked Issues
is duplicated by5
Created Issue:
Setblocking a sign with score text component shows 'an unexpected error occured'
The bug
When placing a sign with the score text component, the sign seems to be placed correctly., however the message "An unexpected error occurred trying to execute that command". This leads to the block nbt not being able to be used in /data modify
How to reproduce
# summon testing armor stand summon minecraft:armor_stand ~ ~ ~ {CustomNameVisible:1b,Tags:["this"]} # set the block: the error message appears setblock ~ ~ ~ minecraft:spruce_sign{Text1:"{\"score\":{\"objective\":\"tmp\",\"name\":\"@e[limit=1,tag=this]\"}}"} # try to copy the text to the armor stand data modify entity @e[tag=this,limit=1] CustomName set from block ~ ~ ~ Text1 # --> the name doesn't update
Setblocking a sign withscore text componentshows 'an unexpected error occured'Setblocking a sign with custom NBT shows 'an unexpected error occured'
The bug
When placing a sign with
the score text component, the sign seems to be placed correctly., however the message "An unexpected error occurred trying to execute that command". This leads to the block nbt not being able to be used in /data modifyHow to reproduce
# summon testing armor stand summon minecraft:armor_stand ~ ~ ~ {CustomNameVisible:1b,Tags:["this"]} # set the block: the error message appears setblock ~ ~ ~ minecraft:spruce_sign{Text1:"{\"score\":{\"objective\":\"tmp\",\"name\":\"@e[limit=1,tag=this]\"}}"} # try to copy the text to the armor stand data modify entity @e[tag=this,limit=1] CustomName set from block ~ ~ ~ Text1 # --> the name doesn't updateThe bug
When placing a sign with custom nbt (like Text1), the sign seems to be placed correctly. However the message "An unexpected error occurred trying to execute that command" appears. This leads to the block nbt not being able to be used in things like /data modify.
How to reproduce
# summon testing armor stand summon minecraft:armor_stand ~ ~ ~ {CustomNameVisible:1b,Tags:["this"]} # set the block: the error message appears setblock ~ ~ ~ minecraft:spruce_sign{Text1:"{\"score\":{\"objective\":\"tmp\",\"name\":\"@e[limit=1,tag=this]\"}}"} # try to copy the text to the armor stand data modify entity @e[tag=this,limit=1] CustomName set from block ~ ~ ~ Text1 # --> the name doesn't update
Setblocking a sign withcustom NBTshows 'an unexpected error occured'Setblocking/filling a sign without explicitly setting all Text tags, shows 'an unexpected error occured'
The bug
When placing a sign with
custom nbt (likeText1),the sign seems to be placed correctly. Howeverthe message "An unexpected error occurred trying to execute that command"appears. This leads to the block nbt not being able to be used in things like /data modify.How to reproduce
#summon testing armor standsummon minecraft:armor_stand ~ ~ ~ {CustomNameVisible:1b,Tags:["this"]}# set the block: the error message appearssetblock ~ ~ ~ minecraft:spruce_sign{Text1:"{\"score\":{\"objective\":\"tmp\",\"name\":\"@e[limit=1,tag=this]\"}}"}# try to copy the text to the armor standdata modify entity @e[tag=this,limit=1] CustomName set from block ~ ~ ~ Text1 # --> the name doesn't updateThe bug
When placing a sign (with either /fill or /setblock) with any NBT without explicitly setting `Text1`, `Text2`, `Text3` and `Text4`, shows the message "An unexpected error occurred trying to execute that command", eventhough the sign seems to be placed correctly. This leads to the block nbt not being able to be used in things like /data modify.
How to reproduce
# the following commands work: setblock ~ ~ ~ minecraft:spruce_sign setblock ~ ~ ~ minecraft:spruce_sign{Text1:"\"\"",Text2:"\"\"",Text3:"\"\"",Text4:"\"\""} # the following commands don't work: setblock ~ ~ ~ minecraft:spruce_sign{Text1:"\"\""} setblock ~ ~ ~ minecraft:spruce_sign{Color:"blue"} # trying to copy Text1 to an entity's name doesn't work if it throws the error message: summon minecraft:armor_stand ~ ~ ~ {CustomNameVisible:1b,Tags:["this"]} setblock ~ ~ ~ minecraft:spruce_sign{Text1:"{\"score\":{\"objective\":\"tmp\",\"name\":\"@e[limit=1,tag=this]\"}}"} data modify entity @e[tag=this,limit=1] CustomName set from block ~ ~ ~ Text1 # --> the name doesn't update
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
The bug is not explicitly setting all the 4 Text tags raises a NPE.
Present in 19w08a.
Please do not mark unreleased versions as affected.
You don't have access to them yet.