Woodland Mansion

A woodland mansion is a massive systematically-generated structure found in dark forests, often far away from the world spawn point. A mansion is inhabited by evokers and vindicators, and is one of the few places where a totem of undying can be obtained, aside from raids. Besides illager mobs, a mansion's interior lighting is sufficiently low for other overworld monsters to spawn.

Generation
Woodland mansions typically generate thousands of blocks from the spawn point. They can be located with woodland explorer maps, which are obtained from cartographer villagers, but a map may not always point to the nearest one. The nearest woodland mansion may also be located via the command enabled by cheats. A dark forest biome with a woodland mansion is rarer than a mushroom fields biome.

Mobs
A woodland mansion naturally generates vindicators, evokers, and allays inside the mansion, but because the entrance is open and most rooms in the woodland mansion are dark, Overworld monsters sometimes spawn in these rooms or come in through the entrance at night.

The number of vindicators and evokers depends on which types of rooms are in the mansion. Some rooms, such as conference rooms, map rooms, altar rooms, or triple bedrooms, generate both vindicators and evokers inside. Vindicators may also randomly spawn in the hallways of the mansion upon generation.

Once all the vindicators and evokers are killed in a woodland mansion, they do not respawn, unlike pillagers, who respawn when all of them are killed in a pillager outpost.

In Java Edition, an illager captain, whether being a vindicator and rarely an evoker, spawns in the mansion.

Structure
Although their exact structure varies, all woodland mansions have some things in common: they all have three floors with a variety of rooms, and generate a cobblestone foundation underneath the entire structure if there are any gaps between the bottom of the mansion and the ground. The top floor is about half the size of the lower floors, but the size of each top floor is pretty random for each mansion, depending on how many rooms are going to be generated on the top floor. Each mansion includes a large foyer that leads to the corridors connecting the rooms, a giant staircase also generates there, which leads up to the second floor. The foyer is dark and many hostile mobs spawn under the staircase.

Rooms
A woodland mansion contains many types of rooms. Because the layout is randomly generated, some room types may not be present. Furthermore, certain rooms within the mansion are not readily accessible – some may have sealed entrances, while secret rooms have no entrances at all.

One may access the individual structures of a woodland mansion by using structure blocks to manually load room structures from the  folder in minecraft.jar. To do so, set a structure block to Load mode, enter, and press LOAD. A list of possible rooms, the names of these structures, and small descriptions are provided in the table below. Note that the room names are conjectural.

Main and secret rooms
A woodland mansion sometimes generate secret rooms on each floor. A secret room can be one of the following type: "X" room, spider room, fake end portal room, obsidian room, birch pillar room, clean chest room, lava room, and attic room, with the 'X" room being the most common, and the "lava" room being the rarest. A way to look for a secret room is looking for gaps between normal rooms, this way is the best on the first floor, as there are no windows. Another way is looking through the windows through the second and third floors of the mansion, since some secret rooms are exposed to windows. A last way to look for a secret room is cutting down the roof, which works best for the third floor alone. Then you can see any secret rooms from the roof of the floor, as the whole floor's layout.

In the table below, a indicates either a chest with random loot, or the spawn point of an illager.