mojira.dev
MC-102082

Structure block selection box is affected by rotation arguments in save mode

The bug

When the rotation arguments are changed for a structure block (because you edited it in load mode before) the selection box in save mode is affected by these arguments. However the structure that is saved and showed invisible blocks ignore the rotation values.

How to reproduce (Saving a structure)

  1. Use the following command (changed rotation)

    /setblock ~ ~ ~ structure_block{metadata:"",mirror:"NONE",ignoreEntities:1b,powered:0b,author:"-",rotation:"CLOCKWISE_90",posX:1,mode:"SAVE",posY:0,sizeX:2,posZ:1,showair:0b,name:"test_structure",sizeY:1,sizeZ:2,showboundingbox:1b}
  2. Place blocks inside the selection box

  3. Save the structure

  4. Load the structure
    → ❌ Not all the blocks are copied

How to reproduce (Showing invisible blocks)

Use the following command

/setblock ~ ~1 ~ minecraft:structure_block{metadata:"",mirror:"NONE",ignoreEntities:1b,powered:0b,seed:0L,rotation:"CLOCKWISE_90",posX:0,mode:"SAVE",posY:1,sizeX:3,posZ:0,integrity:1.0f,showair:1b,sizeY:1,sizeZ:2,showboundingbox:1b}

→ ❌ Observe that some showed invisible blocks are not inside the selection box

Linked issues

Attachments

Comments 9

I've had a similar issue. When you try to load in a structure block with a different rotation, it dosen't update it relatively. For example, if your structure is a 3x3 as follows (I represented this using characters):

x x x
x X x
x x x

The capital "X" is the centre of the structure. When you rotate it, its no longer the centre, even though you have set the relative coordinates there before.

Please fix this! It would allow me to add more diverse, rotatable structures in the world through my Dynamo command block machine without having them cut into mountains or trees, which makes me cringe because mountains sliced like cake look so ugly... :S

Confirmed in 17w50a. Found this one today.

confirmed for 18w20c

Confirmed for 18w50a

This is still the case in 1.14.3

@@unknown, would you like to become the reporter so you can update the affected versions yourself?

Confirmed for 1.16-pre4

@Marcono1234 yes I would like it.

Thanks, you are now the reporter.

Confirmed in 1.18.2.

Marcono1234

Nethonos

(Unassigned)

Confirmed

Platform

Low

Structures

rotation, save, selection, structure_block

Minecraft 16w20a, Minecraft 16w21b, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b, ..., 1.20.2, 23w42a, 1.21.4, 25w05a, 25w08a

Retrieved