minecraft:compostable for you with a switch.Get GodCraftOverview
minecraft:compostable is an item component: it goes in the components object of a custom item. Lets the item be put into a composter, with a chance to raise the compost level by one layer.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
composting_chance | integer | none | Percent chance (1 to 100) that one item adds a layer of compost.Range: 1 to 100 |
Example
Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):
BP/items/<name>.json
{
"minecraft:compostable": {
"composting_chance": 1
}
}