mojira.dev
MC-123836

Double blocks aren't loaded in structures

The bug

When loading a structure, double-blocks (blocks taking up space of two blocks) aren't loaded. This affects vanilla structures such as igloos and mansions (MC-124390 and MC-124388)

The following blocks are affected:

  • Doors (all variants, excluding trapdoors) (Fixed in 1.13-pre7)

  • Beds (all variants)

  • Tall flowers (all variants, including large fern) (Fixed in 1.13-pre7)

How to reproduce

  1. Install the data pack

[media]
  1. Place a structure block and load the structure bugtest:loadbug
    → ❌ Notice that nothing is generated. If you check the structure file contained in the data pack, you'll see that everything has been saved correctly.

Linked issues

Attachments

Comments 18

Can Confirm. Doors do not load, but they do save.

This seems to affect all double blocks (doors, tall grass and flowers, large fern and beds). I reworked the ticket accordingly, I hope you're fine with that.

ok, hope this gets fixed in the future

Provided an image with seed and coordinates. The igloo also did not have a Zombie Villager ....

8 more comments

Just checked, and beds still break when loaded from structure blocks, in Minecraft release 1.13.

However, I did figure out how to use the setblock command as a work-around.  I didn't understand how to modify block states in the setblock command, with the new 1.13 syntax, but now I've got it.  I updated the Minecraft commands wiki to include the code: https://minecraft.gamepedia.com/Commands/setblock

Here is Cloud Wolf's video that helped me learn this:  https://www.youtube.com/watch?time_continue=196&v=R3plRS5eAb4

I've reopened this issue, as it is not resolved for beds.

Still in the 1.14 snapshot 18w48

Can confirm for Minecraft 1.14. Although you can replace a bed with two Impulse Command Blocks set to "Always Active" (so it replaces itself with a bed the second it's placed in the structure) there's no good way to have that be compatible with rotated structures.

To bypass this bug, I wrote a function that would work with rotated structures.  The function detects a wool block directly next to the command block that ran the function, and then uses the relative position of that wool block to determine the direction of the bed, and the color of the wool block to determine the color of the bed.  I used about 260 lines of code to make sure it had a setblock for the head and foot of each color of bed in each rotation.

Christopher James Gamblin

migrated

Confirmed

(Unassigned)

beds, doors, double-plant, structure_block

Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03a, Minecraft 18w03b, Minecraft 18w05a, ..., Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 1.14

Minecraft 1.13-pre7, Minecraft 1.14.3 Pre-Release 1

Retrieved