The bug
After using "/place structure minecraft:buried_treasure" the height at which the treasure generated is the max height for subsequent uses for this command even after creating suitable conditions higher up until re-entering the world.
How to reproduce
Create a default Superflat world
Create a pillar of stone
/fill 9 -60 9 9 -57 9 stone
Generate a buried treasure chest at the pillar's location:
/place structure buried_treasure 8 -60 8
→ ✔ The chest is placed at the top of the pillar
Destroy the stone, sand and chest
Create a taller pillar of stone at the location of the previous pillar:
/fill 9 -60 9 9 -52 9 stone
Generate a buried treasure chest at the pillar's location:
/place structure buried_treasure 8 -60 8
→ ❌ The chest is placed midway up the pillar, at the same height as the first chest
Exit and reopen the world
Generate another buried treasure chest at the pillar's location:
/place structure buried_treasure 8 -60 8
→ ✔ The chest is placed at the top of the pillar
Expected behavior
The buried treasure chest should always be placed at highest possible block, regardless of whether the world is reloaded first.
Attachments
Comments 5
Now I understand this issue, but I still can't reproduce this issue in 1.19.3 and 23w03a. First I created a superflat world using "Desert" present. Once I entered the world, I used the command "/place structure minecraft:buried_treasure". Then I went to a different chunk and pressed F3 to went to (9, X, 9). After that, I dig straight down until I touched the sandstone layer, then placed a sandstone block 1 block above it. Once again, I used the command "/place structure minecraft:buried_treasure". Finally I switched into Spectator mode and compared the height of 2 buried treasure chests. The result is the buried treasure that I placed second is higher than the buried treasure that I placed first, which is contrary to assumption for this issue, therefore "Cannot Reproduce".
[media]Considering the previous comment @unknown, can you please clarify the issue better with reliable steps to reproduce the behavior you've observed if this is still present in 1.20.3?
Sorry for unclear bug report, I meant for subsequent placings in the same chunk, using this commands should show it
/fill 9 0 9 9 10 9 stone
/place structure minecraft:buried_treasure 8 5 8
/fill 9 0 9 9 20 9 stone
/place structure minecraft:buried_treasure 9 15 9
I can't confirm this issue because of the lack of information.