A swamp hut, also called a witch hut, is a small Overworld building associated with a Witch and a Cat. Its furnishings and local mob-spawning rules distinguish it from an ordinary player-built shelter.
Swamp huts generate in the ordinary Swamp, not Mangrove Swamp. Java 26.3's biome-tag generator explicitly assigns only Swamp to the hut's start-biome tag.
Java's registered structure ID is minecraft:swamp_hut. Its structure set uses random-spread placement with spacing 32 chunks and separation 8 chunks. These parameters determine candidate placement, not a guaranteed hut in every region. Bedrock's released witch-spawning fixes independently document the generated hut as an active structure.
The building has spruce-plank walls and a roof supported above the terrain by log stilts. Inside are a crafting table, flower pot and cauldron. The raised entrance normally has no staircase leading up from the ground.
Java's structure piece places these blocks directly and creates its initial witch and cat separately from the later natural-spawning rules.
A newly generated hut has a witch and a cat. The witch is hostile, while the cat can be approached and tamed according to normal cat mechanics.
In Java, the initial occupants are marked persistent, and the structure piece records whether each has already been created. This initial generation process is distinct from subsequent spawning. The structure configuration overrides the monster spawn list with witches and the creature spawn list with cats within the structure-piece bounding box. Later spawns still depend on applicable spawning conditions; removing the original occupant does not itself cause an immediate replacement.
Bedrock also supports witch spawning at huts after generation. Its 1.19.20 release fixed witches stopping spawning by classifying the hut as a surface spawner. This does not establish an identical Java-style spawning volume or an automatic replacement rule for cats.
A swamp hut has no generated loot chest. Its furnishings can be collected, while witch drops are mob loot rather than a hidden hut inventory. Both covered editions' witch loot tables include a separate roll for four to eight redstone dust before Looting increases, alongside other possible drops.
Bedrock hut cauldrons can contain potions. Released Bedrock notes document the ability to remove those potions completely; potion type and amount are not specified here.
Java uses structure-piece spawn overrides for both witches and cats; Bedrock's documented witch mechanism is a structure surface spawner. The Java placement figures above should not be treated as Bedrock placement parameters.
Java places an empty cauldron. Bedrock can provide potion contents in the generated cauldron, giving it a collectible resource beyond the building blocks and mob drops.