Minecraft [1.11.2]: Structure block won't change it block state /setblock

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


Solution 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"}