Desert pyramid

A desert temple, often referred to as a desert pyramid, is a sandstone structure sometimes generated in deserts. It contains 4 chests under the floor in the center protected by a TNT trap.

Generation
Desert pyramids are uncommon and may generate in deserts.

Structure
Desert pyramids are constructed with normal, chiseled, and cut sandstone, orange and blue terracotta, sandstone slabs, and sandstone stairs. There is one main entrance in the front, two more entrances in the back on both the left and right sides near the top of the pyramid, and a one block wide hole at the top. Even if the rest of the pyramid generates mostly buried by sand, the tip of the pyramid is almost always above ground. If necessary, a mostly buried pyramid can still be accessed by dropping through the hole in the top, though fall damage is likely. In the center of the pyramid's 21×21 ground floor is a checkerboard pattern of terracotta and sandstone in a wind rose symbol, with a block of blue terracotta in the center. Underneath this terracotta is a secret room containing four chests, which are rigged by a stone pressure plate directly under the blue terracotta block. The pressure plate is connected to a 3×3 grid of TNT, which means that if a player or mob unintentionally steps on the plate, it sets off the nine TNT blocks, which destroy the chests and their loot.

As there is no light in the chest room, mobs sometimes spawn inside it and trigger the TNT trap, destroying the chests and loot before any player can reach it.

When a desert pyramid generates above a canyon (ravine), the foundation extends downward until it reaches the bottom.

Loot
The loot chances above are per chest. As each chest has a 2.6% chance to contain an enchanted golden apple for example, with four chests, each pyramid has about a 10% chance overall of having at least one.

Trivia

 * The pattern of orange terracotta on the towers of desert pyramids resemble an ; the ancient Egyptian symbol for life or the key.