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


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"}
| improve this answer | |
  • 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 Jan 26 '17 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 Jan 26 '17 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 Jan 26 '17 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.