Skip to content
yurisuika edited this page Aug 23, 2023 · 9 revisions

Config Options

These are Compost's config options and what they control.

Items

The bulk of the config is under the items option. This is where all of the item entries are contained; each group contains 4 values that you must enter. You may have as many entries as you like, but be aware of the hopper extraction bottleneck.

  1. Item: A string value of the item. This is done in the standard namespace:item format and can contain NBT data as well.
  2. Chance: A double value of the chance that the item is generated. This may be from 0.0 to 1.0. Each chance is individual to the entry and is not a sum total amongst all entries.
  3. Min: An integer value of the minimum count of items to receive. This can be from 0 to 64, and must be equal to or less than the maximum and equal to or less than the max vanilla stack size.
  4. Max: An integer value of the maximum count of items to receive. This can be from 1 to 64, and must be equal to or greater than the minimum and equal to or less than the max vanilla stack size.

Default Config

Here is an example of the default config.

{
  "items": [
    {
      "item": "minecraft:bonemeal",
      "chance": 1.0,
      "min": 1,
      "max": 1
    },
    {
      "item": "minecraft:dirt",
      "chance": 1.0,
      "min": 1,
      "max": 1
    }
  ]
}

Customized Config

Compost will automatically correct discrepancies in regards to the chance and count range. Be sure to break out your quotation marks (see the pumpkin pie entry below)!

Here is an example of a customized config.

{
  "items": [
    {
      "item": "minecraft:apple",
      "chance": 1.0,
      "min": 1,
      "max": 1
    },
    {
      "item": "minecraft:cookie",
      "chance": 1.0,
      "min": 2,
      "max": 4
    },
    {
      "item": "minecraft:pumpkin_pie{Enchantments:[{id:\"knockback\",lvl:2}]}",
      "chance": 0.25,
      "min": 1,
      "max": 1
    }
  ]
}
Clone this wiki locally