Carpet

Carpets are thin blocks which are mainly used for decoration.

Obtaining
Carpets can be mined using any tool, or without a tool. Unlike wool, carpets are not destroyed quicker when using shears.

Natural generation
White, light gray and red carpet can be found in igloos.

All carpet colors except for orange generate within woodland mansions.

The tables in village libraries each contain two brown carpets. Small huts in villages can also contain one brown carpet.

Yellow, orange, white, red, blue, purple, lime, and green carpets generate in villages.

Trading
Apprentice-level shepherd villagers have a $1/32$ (3.125%) chance to sell one of 16 types of carpets as part of their trades. They sell 4 carpets of the same color for an emerald.

Usage
Carpet has the same thickness as a pressure plate. It has a hitbox of $1/16$ of a block and covers the entire surface of the block it is placed on, unlike pressure plates. This thickness prevents mob spawning.

Carpet can be placed on any block, including non-solid blocks, except paintings and item frames. When placed on grass or fern, they break and the carpet is placed on the block below. When placed on vines, the topmost block of vines breaks and the carpet is placed on the block below, any vines blocks below the first one don't break. It can even be placed over water blocks, but to do so you must target an adjacent block with a visible hitbox.

Carpet can be pushed and pulled by pistons but will pop off if pushed onto a hole or pulled downwards. It can also break falling sand and gravel.

Carpet is an opaque block but does not decrease light going through it. Because of this and the fact that it can be placed on any block, a common decorative strategy is to place carpet on glowstone, illuminating a room and hiding the light source at the same time.

Carpets can be used to give llamas a distinct saddle pattern.

Carpets can be placed on top of fences to allow the player to jump on top of it.

Fuel
Carpet can be used as a fuel in furnaces, smelting 0.335 items per carpet square.

Breaking tall grass and vines
When placed on the top half of tall grass or large fern, they will break and the carpet will drop as an item.

Block data
In Bedrock Edition, carpet uses the following data values:

Trivia

 * If the player sprints across a carpet, the particle effects are those of the blocks that are directly below it.
 * Carpets will not prevent the formation of ice.
 * Carpets can safely be placed on top of farmland, although it will not protect the farmland from jumping entities.