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
- Place a structure block
/setblock ~ ~ ~2 structure_block
- Enable the debug menu and hover over the block and see the mode block state
- Use the /data get command to to read the NBT
/data get block ~ ~ ~2 mode
2017-03-06, 08:06 AM
2024-07-28, 03:06 AM
13
5
NBT, block-entity, blockstate, mode, structure_block
Minecraft 1.11.2 - 1.21
Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12, Minecraft 1.12.1 Pre-Release 1, Minecraft 1.12.2, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47a, Minecraft 17w47b, Minecraft 18w02a, Minecraft 18w19b, Minecraft 1.13-pre1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, 1.16.3, 20w51a, 21w03a, 1.16.5, 21w06a, 1.17.1, 1.18.1, 1.19, 1.19.1 Pre-release 5, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b, 1.21
-