mojira.dev
MC-109667

Structure blocks obtained with /give act like they don't have NBT tags when they should.

Use this command:

/give @p minecraft:structure_block 1 0 {ignoreEntities:0b,posX:1,posY:-1,posZ:1,sizeX:17,sizeY:17,sizeZ:17,mode:"SAVE",name:"My Structure",id:"minecraft:structure_block",showboundingbox:1b}
/give @p minecraft:structure_block 1 0 {ignoreEntities:0b,posX:1,posY:-1,posZ:1,sizeX:17,sizeY:17,sizeZ:17,mode:"SAVE",name:"My Structure",id:"minecraft:structure_block",showboundingbox:1b}

You'll get a structure block that says it has 11 NBT tags (if you have advanced tooltips on). But when you set it down, you'll see it acts as a regular non-tagged structure block.

We know it's not the tags themselves because they work with /setblock. This command works just fine:

/setblock ~ ~ ~ minecraft:structure_block 0 replace {ignoreEntities:0b,posX:1,posY:-1,posZ:1,sizeX:17,sizeY:17,sizeZ:17,mode:"SAVE",name:"My Structure",id:"minecraft:structure_block",showboundingbox:1b}
/setblock ~ ~ ~ minecraft:structure_block 0 replace {ignoreEntities:0b,posX:1,posY:-1,posZ:1,sizeX:17,sizeY:17,sizeZ:17,mode:"SAVE",name:"My Structure",id:"minecraft:structure_block",showboundingbox:1b}

So it must be something wrong with the /give command specifically. Thanks.

Comments 1

Potential tile entity data from items goes in the BlockEntityTag compound:

/give @p minecraft:structure_block 1 0 {BlockEntityTag:{ignoreEntities:0b,posX:1,posY:-1,posZ:1,sizeX:17,sizeY:17,sizeZ:17,mode:"SAVE",name:"My Structure",id:"minecraft:structure_block",showboundingbox:1b}}
/give @p minecraft:structure_block 1 0 {BlockEntityTag:{ignoreEntities:0b,posX:1,posY:-1,posZ:1,sizeX:17,sizeY:17,sizeZ:17,mode:"SAVE",name:"My Structure",id:"minecraft:structure_block",showboundingbox:1b}}

Paint

(Unassigned)

Unconfirmed

Minecraft 16w43a, Minecraft 16w44a

Retrieved