mojira.dev
MC-114394

Structure block mode is saved in both block state and nbt data

The bug

It appears that the structure block saves its mode in both the block state and its nbt data.

Expected: it is only saved in the block's states or nbt data, not both.

How to reproduce

  1. Place a structure block

    /setblock ~ ~ ~2 structure_block
  2. Enable the debug menu and hover over the block and see the mode block state

  3. Use the /data get command to to read the NBT

    /data get block ~ ~ ~2 mode

Linked issues

Attachments

Comments 5

Can confirm in 20w51a.

Can confirm in 21w06a.

Can confirm in 1.19.

[media]

user-f2760

(Unassigned)

Confirmed

Block states, Save Data

NBT, block-entity, blockstate, mode, structure_block

Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.2, ..., 1.19.4, 1.20.1, 1.20.2, 23w43b, 1.21

Retrieved