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.

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.

Carpet can be placed on any block, including non-solid blocks.

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.

Carpet can be placed over water blocks, but to do so you must target an adjacent block with a visible hitbox.

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

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

Breaking tall grass
When replacing the top half of tall grass, the grass 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 carpet, the particle effects are those of the blocks that are directly below it.
 * Carpet will not prevent the formation of ice.
 * Carpet can safely be placed on top of farmland, although it will not protect the farmland from jumping entities.