This datapack aims to add composting mechanics to all vanilla items which should be compostable.

View project on GitHub View datapack on Modrinth

Downloads

Choose the option compatible with your Minecraft version:

Minecraft supported versions Tested versions

Minecraft supported versions Tested versions

Minecraft supported versions Tested versions

For older Minecraft versions (no longer maintained, features may be different than described in this page):
Supported Minecraft versions Datapack version Tested in Download links
1.20.5–1.20.6 1.3 1.20.6 Github
1.20–1.20.4 1.2.1 1.20, 1.20.4 Github
1.16.2–1.19.4 1.1 1.16.5, 1.17.1, 1.18.2, 1.19.3 Github
  • Drop the datapack zip file inside the "datapacks" folder of your world folder (<your minecraft folder>/saves/<your world>/datapacks/).
If you have any doubts, consult the Minecraft Wiki.

Features

New compostable items, including rotten flesh, poisonous potatoes, foods, and many more (see the list below).

Prior to Minecraft 26.3, items could not be made compostable in a fully vanilla way. These items were compostable in the following ways:
  • By putting them in a hopper on top of a composter, the same way you would do with vanilla-compostable items.
  • By dropping them *inside* a composter (vanilla items are also given this feature).
Composting items by dropping them inside composters can be disabled (see the Available commands section)

List of new compostable items

(Click to expand)

  • Sugar
  • Honeycomb
  • Spider eye
  • Fermented spider eye
  • Phantom membrane
  • Turtle and armadillo scutes
  • Rabbit hide
  • Bamboo
  • String
  • Feather
  • Slimeball
  • Magma cream
  • Ink Sac (both glow and regular)
  • Any dye
  • Stick
  • Carpets
  • Chorus fruit
  • Popped chorus fruit
  • Chorus flower
  • Honey block
  • Honeycomb block
  • Rotten flesh
  • Chicken eggs
  • Turtle egg
  • Leather
  • Dead bush
  • Charcoal
  • Wool
  • Slime block
  • Nautilus shell
  • Paper
  • Cobweb
  • Goat horn
  • Muddy mangrove roots
  • </li>
  • Pale moss carpet
  • </li>
  • Pale hanging moss
  • </li>
  • Bush and firefly bush
  • </li>
  • Cactus flower
  • </li>
  • Dry grass
  • </li>
  • Leaf litter
  • </li>
  • Wildflowers
  • Cooked chicken, cod, mutton, porkchop, rabbit, beef, and salmon
  • Crimson/warped nylium
  • Poisonous potato
  • Corals (dead or alive)
  • Bee nest
  • Beetroot soup
  • Mushroom/rabbit/suspicious stew
  • Coral blocks (dead or alive)
  • Sculk vein
  • Mycelium
  • Sculk
  • Sculk catalyst/shrieker/sensor/calibrated sensor

Known issues (and solutions)

  • Custom-composting via hoppers only works with composters that are placed by players. This means that it won’t work with world-generated composters, with composters summoned via commands, or with composters placed before the datapack was installed. Simply break a composter and place it again manually to make the datapack register it.
  • The datapack might have trouble detecting a placed composter if you are moving very fast while placing it. This shouldn’t be a problem as long as you are not MLG-360-no-scoping composters. If a composter is not working, just break it and place it again while not moving.
  • Some things are hardcoded in this datapack, which means that it can interact in unexpected ways with mods that alter vanilla mechanics:
    • Hopper-custom-composting uses the hopper built-in TransferCooldown variable, so it might conflict with any mod or datapack that changes the vanilla behaviour of hopper cooldowns.
    • Since vanilla-compostable items are hardcoded in Minecraft, I had to hardcode them also in this datapack, so it detects when one of them is present in a hopper and avoids composting other items at the same time. This means that any mod that changes which items are compostable with vanilla mechanics might cause unintended behaviours (but nothing game-breaking).

Adding new compostable items

This datapack provides item tags for 10%, 30%, 50%, 65%, 85%, and 100% composting chances. You can find their .json files in <this datapack>/data/dnv.compost/tags/items/. If you want to customize the datapack for your own use, edit those files however you want.

Available commands

  • /function dnv.compost:uninstall: removes all the entities and scoreboard objectives created by this datapack. Run this function if you want to stop using the datapack to ensure it leaves no trace. All composter markers will be removed, meaning that if you want to use the datapack again after uninstalling it, you will have to manually replace already existing composters in order for the datapack to register them again.

Image gallery

Changelog

VersionDateSummary
v2.0 11/Oct/2026 Added composting with right click, improved performance
v1.4.2 28/Sep/2026 Adapted for MC 26.3
v1.4.1 03/Oct/2025 Adapted for MC 1.21.9
v1.4 07/Apr/2025 Updated for MC 1.21.5
v1.3.3 04/Jan/2025 Updated for MC 1.21.4+
v1.3.2 30/Oct/2024 Updated for MC 1.21.2+
v1.3.1 14/Jun/2024 Updated for MC 1.21 + minor optimization
v1.3 26/Apr/2024 Compatibility with MC1.20.5 + excluded raw meats + added armadillo scute + optimization
v1.2.1 02/Jan/2024 Fixed compatibility with 1.20.3 + minor fix
v1.2 06/Jun/2023 Added composting mechanics to new Minecraft 1.20 items + datapack optimization
v1.1 08/Jun/2022 Added composting mechanics to new Minecraft 1.19 items.
v1 18/Jan/2022 Added composting mechanics (by dropping and by hopper) to all organic items.

You are allowed to:

  • Download, use, and edit this datapack1 for personal use.
  • Use this datapack or variations of it in a Minecraft server.
  • Publish audiovisual content that uses this datapack or variations of it (e.g. gameplay videos on online platforms), as long as you acknowledge me (Daenvil) as the author of this datapack and provide a link either to this website or to the datapack’s Modrinth page, if listed above.
  • Share this datapack or variations of it privately (e.g. transferring the files to friends), as long as there is no financial profit involved, the files are not publicly available, and these terms are included with the files you share in text format (these terms are already included in all my datapacks, just don’t remove them).

You are not allowed to:

  • Publish this datapack or variations of it without explicit permission from me.

  1. For all legal purposes, “this datapack” refers to all the files (source code, images, and any other) downloadable from this webpage or from its Modrinth page, if listed above. ↩