Moss Block

A moss block is a natural block that can be spread to some other blocks by using bone meal.

Natural generation
Moss generates on the floor and ceiling within the lush caves biome.

Trading
Moss blocks can be obtained by trading with a wandering trader, who may sell 2 moss blocks for 1 emerald.

Breaking
Moss blocks can be mined using any tool or by hand, but a hoe is the fastest way to break it.

Post–generation
$$, using bone meal on a moss block causes nearby blocks with the,   and   tags to be converted to moss blocks.

Moss spreads to any blocks with air above them in a corner-less 7×11×7 volume centered on the original moss block. Foliage can replace air on any of these blocks.

Behavior
$$, all plants can be placed on moss except for cactus. Nether fungi can also be placed on moss, but mushrooms can only be placed at light level 12 or below. $$, cactus, bamboo, dead bush, and sugar cane are the only plants which can not be placed on moss.

Using bone meal on moss blocks causes certain types of adjacent blocks to be replaced with moss blocks. To allow moss to spread to them, blocks need to have air above.

When a moss block generates with air above it, it has a chance to have grass, an azalea, or a moss carpet growing on it.

Spreading specifics
$$, when bone meal is used on a moss block, first it is checked that the block directly above the moss block is air. If successful, maximum X and Z distances are chosen (independently from each other) with a 50% chance of being either 2 or 3. Then, in a rectangular area centered on the moss block restricted by those maximum distances, it is decided independently for each vertical column whether a block will be converted to moss or not. This chance is 0% for the corners of the chosen area, 75% for the edges and 100% for the other columns. If this check succeeds a scan is started at a y-level one above the moss block to find a block with air above it. If the scan starts in an air block it will search up to 6 blocks downwards, if it starts in a non-air block it will search up to up to 4 blocks upwards. Both scans stop on the first block with air above it, even if it can not be converted to moss. The chosen block is converted to moss if it can be, and if it can (or already was a moss block) there is a 60% chance vegetation generates above it.

Piston interactivity
A moss block drops as an item when a piston pushes it.

Composting
Placing a moss block into a composter has a 65% chance of raising the compost level by 1.

ID