Swamp hut

Swamp huts (also known as witch huts) are generated structures that have the ability to spawn witches and black cats.

Generation
Swamp huts will rarely generate in a swamp biome. However, they do not generate in the swamp hills biome variant.

Structure
Swamp huts consist of a small square building made of spruce planks, with oak log pillars extending down to the ground. There is a small platform outside of the hut that could be an entrance; however, it is many blocks above the ground, and there are no stairs that go upwards to the hut. The roof of the swamp hut is made up of spruce wood stairs and spruce wood planks.

The inside of a swamp hut consists of an empty cauldron, a crafting table, and a flower pot with a red mushroom in it.

However, $$, the cauldron generates with a random potion inside of it in random amounts. These potions include Swiftness, Slowness, Weakness, Healing, and Poison. Water Breathing, Fire Resistance, Night Vision, and Harming, have a rare chance of being spawned, and rarely the cauldron may contain a splash potion.

Mobs

 * (one spawns in the hut)
 * (one spawns in the hut)

Upon world generation, one witch and one stray black cat spawn inside the hut. These never naturally despawn, however, the witch does not spawn when the difficulty is set to Peaceful.

Additionally, witches can spawn on any block within the 7×7×9 (x×y×z) area that constitutes the hut (this is the size of the roof and one block over the porch, from one level below the floor of the hut to two blocks above the roof). Cats can also spawn within this area. However, they require a grass block to spawn on. Any other cats to spawn within the swamp hut (from spawn eggs, breeding, and commands without cat type set) always spawn as black.

Trivia

 * The "hut" part of a swamp hut generates on or above the surface, while the wood "pillars" extend down until they reach solid ground. This means that if part of a swamp hut is at sea level and another part is on top of deep ground, such as a ravine, the pillars on the deep-ground side go all the way down to the bottom.
 * It is possible for swamp huts to generate on top of one another.
 * Swamp huts are one of five generated structures that do not generate loot chests (the others are desert wells, fossils, nether fossil and ocean monuments).