For Nether fortresses, the building element with the id:NeMT, i.e. the one with the spawner.
The bounding box is one block too low, which is why the top 3 fences are not in the bounding box.
In the screenshots you can see the coordinates of the bounding box and then what the structure in question looks like.
Example:
Seed:-3960378471346730310
Coords: -142 80 86
Steps to Reproduce:
Create a world and enter the Nether
Use an NBT editor and search for the structure data of a Nether fortress
Find a structure part with the id:NeMT, i.e. the one with the spawner.
The int array BB now provides the corner coordinates of the bounding box
Observed Behavior:
The bounding box is 1 block too small
Expected Behavior:
The three upper fences of the structure are inside the bounding box
Linked issues
relates to 1
Attachments
Comments 3
Thank you for updating the issue. Though, it is still unclear to me how to find the bounding box of the fortress. An exact step-by-step showcase would be appreciated, as "Use an NBT editor and search for the structure data of a Nether fortress" is very vague considering there's a lot of data to look through.
Can confirm in 26.4 snapshot 10 and 26.3, the report’s reproduction steps are quite ambiguous so here are the updated steps:
Create a world with seed 1234, world type: default.
Run /execute in minecraft:the_nether run locate structure minecraft:fortress. It should report a fortress at [-576, ~, 160]. But if the coordinates differ, use those and adjust the numbers below.
Run /execute in minecraft:the_nether run forceload add -640 96 -512 224. Stay in the game for a few seconds without opening the pause menu so the area generates.
Check the blocks at the top of the throne piece and run /execute in minecraft:the_nether if block -579 60 159 minecraft:nether_brick_fence, then the same command with 61, then with 62. Expected: 60 says “Test passed”, 61 says “Test passed”, 62 says “Test failed”. Repeat at x=-578 and x=-577.
Leave the world and open %appdata%\.minecraft\saves\<your world name>\dimensions\minecraft\the_nether\region\r.-2.0.mca in an NBT editor, go to the chunk at x=-36, z=10, then structures, then starts, then minecraft:fortress. Find the entries with id minecraft:nemt since that’s the throne piece with the spawner. There should be two. Each one’s BB tag is [minX, minY, minZ, maxX, maxY, maxZ]:
[-581, 53, 159, -575, 60, 167][-568, 53, 181, -562, 60, 189]
Both boxes end at y=60, but the fences from step 4 at y=61 are above that, so they are outside the bounding box. Counting fence blocks over each piece’s 7x9 footprint gives y=59: 19, y=60: 5, y=61: 3, y=62: 0
FYI: I tested this on a dedicated server.
I am unsure how to confirm this issue. How have you checked to see the area of the bounding box of the structure?
Adding steps to reproduce this issue would be very helpful.