So I tried to spawn a structure block with load mode using this command:

/setblock ~ ~ ~ minecraft:structure_block mode=load

and it worked. But not like I expected. It spawned a structure block without load mode, but with data mode.

Am I doing something wrong? Please help

1 Answer 1


Structure blocks store their mode in both NBT data and as a block state, but only the NBT data will decide its mode when setting it:

/setblock ~ ~ ~ structure_block 0 replace {mode:"LOAD"}
  • Thank you very much! But I kinda don't get it why 0 and replace? In minecraft wiki in commands, block states, structure blocks, they didn't talk about it. At least I didn't see it.
    – BitCrack
    Commented Jan 26, 2017 at 13:38
  • @BitCrack The syntax of /setblock is: setblock <x> <y> <z> <block> [dataValue|state] [oldBlockHandling] [dataTag]. I've given a dataValue of 0 (just because it doesn't matter in this case and it's shorter than any state) and an oldBlockHandling mode of replace (ie: it will replace old blocks).
    – SirBenet
    Commented Jan 26, 2017 at 13:40
  • @BitCrack However, keep in mind that numerical metadata values are not going to last as they are being replaced with blockstates (which is what you were using in your original command). Instead of a 0, you'd use default.
    – Skylinerw
    Commented Jan 26, 2017 at 14:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .