How do I /setblock
a sign with text?
I've tried
/setblock ~ ~1 ~ minecraft:wall_sign 5 {id:"Sign",Text1:"hi;,Text2:""}
minecraft-commandsminecraft-java-edition
How do I /setblock
a sign with text?
I've tried
/setblock ~ ~1 ~ minecraft:wall_sign 5 {id:"Sign",Text1:"hi;,Text2:""}
Best Answer
In commands, the order of arguments is important. This is the syntax of
/setblock
:You have given
/setblock
a[dataTag]
argument where[oldBlockHandling]
should be, so it doesn't do anything with it.You will need to give an old block handling mode, such as
replace
before you give the data tag.Although likely a typo, it is also important to have correct a JSON format. You have put a
;
where a"
is needed.The corrected command should be: