1. Wiki
  2. /Items
  3. /minecraft:compostable

minecraft:compostable

Don't want to write this by hand? GodCraft sets minecraft:compostable for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
composting_chanceintegernonePercent 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
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more