The Best Resource for Minecraft
The Best Resource for Minecraft

Compost Mod Wiki

Compost Mod (Expanded Composting Rewards) overhauls the vanilla Minecraft composter into a dynamic recycling system that provides diverse rewards based on environmental conditions, input materials, and customizable loot tables.

7 sections · 805 words

Overview#

The Compost Mod (Expanded Composting Rewards) is a comprehensive overhaul of the composting mechanic in Minecraft. Developed by yurisuika, this mod transforms the vanilla composter from a simple bone meal generator into a versatile recycling machine. By utilizing a data-driven loot table system, the mod allows players to receive a wide variety of resources—ranging from common dirt to rare diamonds—based on what they compost and the environment around them.

The Composter block with various items being processed

Unlike the vanilla system, which has a fixed output, this mod introduces logic that considers the player's location, the current weather, and the specific items being recycled. It is designed to be highly compatible with other mods and fully customizable via data packs, making it a staple for survival, skyblock, and realism-focused modpacks.

Core Mechanics#

The fundamental change introduced by the Compost mod is the transition from a hardcoded output to a Loot Table System. When a composter reaches its final stage (Level 7/8), the item it produces is determined by the compost:composter loot table.

Composting Process

  1. Input: Players add compostable items (food, plants, seeds) to the composter as usual.
  2. Leveling: Each successful addition has a chance to raise the compost level.
  3. Output Generation: Once the composter is full, the mod checks the loot table and environmental predicates to determine the reward.
  4. Collection: Right-clicking the full composter yields the generated item.

Key Features

  • Dynamic Outputs: Instead of only Bone Meal, players can obtain Dirt, Seeds, or even rare minerals.
  • Contextual Logic: The mod can check if it is raining, the current light level, or the player's dimension before deciding the output.
  • Villager Integration: The default configuration ensures that Villager Farmers can still operate and receive Bone Meal, maintaining vanilla village mechanics.

Environmental Conditions#

One of the most advanced features of the Compost mod is its support for Origin-Based Conditions. This allows nature to play a direct role in the composting process. The mod can detect various world states to alter the rewards.

Condition Effect on Composting
Weather Composting during rain or snow can trigger unique rewards, such as mushrooms or specialized mulch.
Light Level Certain items may only "grow" in the compost if the light level is low (e.g., fungal growth) or high (e.g., sun-dried materials).
Biome Specific biomes can have unique loot tables. Composting in a Jungle might yield cocoa beans, while a Desert might yield sand.
Dimension Rewards can be restricted to the Overworld, Nether, or End.
Elevation High-altitude composting (above Y=100) or deep-underground composting can produce different results.

A composter in a rainy forest biome producing mushrooms

Compostable Matching#

The mod introduces a Loot Condition that matches the specific compostables used. This means the "recipe" of what you put in can influence what you get out. This mechanic allows for intuitive recycling loops.

  • Seed Recovery: Composting Apples has a chance to return Apple Seeds (if a seed mod is present) or standard Seeds.
  • Material Recycling: Composting Saplings might yield specialized Mulch or Sticks.
  • Organic Waste: Composting Rotten Flesh or Poisonous Potatoes can be configured to yield Dirt, making these items useful for terraforming in resource-scarce environments like Skyblock.

Default Rewards#

While the mod is designed for customization, it comes with a balanced default loot table that showcases its capabilities. Below are common rewards found in the base configuration:

Reward Item Rarity Condition/Source
Bone Meal Common Standard output; always available for Villagers.
Dirt Common Often produced from general organic waste.
Mushrooms Uncommon Produced when the composter is rained upon.
Seeds Uncommon Produced when composting crops or grass.
Apples Rare Small chance when composting large amounts of leaves/saplings.
Diamonds Very Rare Extremely low chance from high-tier composting (configurable).

Configuration & Data Packs#

The Compost mod is built to be a framework for pack creators. All composting rewards are handled through standard Minecraft JSON loot tables.

Customizing Rewards

To change the rewards, you must create a data pack and navigate to: data/compost/loot_tables/composter.json

Within this file, you can define multiple "pools" of items. You can use standard vanilla predicates (like location_check or weather_check) and the mod's custom match_compostable condition to create complex logic.

Example Logic:

  • If is_raining is true, add brown_mushroom to the pool with a weight of 50.
  • If composted_item is minecraft:apple, add minecraft:apple_seeds to the pool.

Compatibility#

The Compost mod is highly compatible with the broader Minecraft ecosystem:

  • Farmer's Delight: Works seamlessly with modded crops; modded compost items (like Organic Compost) can be added to the loot tables.
  • Villagers: As mentioned, the mod includes a specific check to ensure Villager Farmers can still produce Bone Meal to grow their crops, preventing village economies from breaking.
  • Modded Items: Any item from any mod can be added to the composting list or the reward list via tags and data packs.
  • Automation: Compatible with Hoppers and Pipes. Hoppers can pull the generated rewards out of the bottom of the composter just like vanilla Bone Meal.