Compost Mod — Guide
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. |

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). |
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
- Input: Players add compostable items (food, plants, seeds) to the composter as usual.
- Leveling: Each successful addition has a chance to raise the compost level.
- Output Generation: Once the composter is full, the mod checks the loot table and environmental predicates to determine the reward.
- 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.