minecraft:compostable

Specifies that an item is compostable and provides the chance of creating a composting layer in the composter

Properties

PropertyTypeDefaultWhat it does
composting_chance requiredInteger1 to 100—The chance of this item to create a layer upon composting with the composter. Valid value range is 1 - 100 inclusive

Example from the game files

This is how vanilla red_shrub uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:compostable": {
    "composting_chance": 30
  }
}

Used by 2

Vanilla items with minecraft:compostable in their definition:

red_shrubshelf_mushroom

Related components