Minecraft Data Packs / Farming and Food

More Compostable Items

  • check_circle Advancements
  • check_circle Functions
  • 25,013 views, 14 today
  • 5,539 downloads, 4 today
  • 117
  • 130
  • 16
daenvil's Avatar daenvil
Level 58 : Grandmaster Creeper Hugger
105
Important: the link above is just for Minecraft 1.21+. If you are using an older version, check the table at the bottom of this page.




This datapack aims to add composting mechanics to all vanilla items which should be compostable, being as close as possible to vanilla mechanics.

Features

New compostable items, including rotten flesh, poisonous potatoes, foods, and many more (see the list below). These new items are 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.
Composting a poisonous potato via hopper
  • By dropping them inside a composter (vanilla items are also given this feature).
Composting a poisonous potato via hopper

Note: composting items by dropping them inside composters can be disabled (see the "Available commands" section)

WARNING: Custom-composting via hoppers only works with composters that are placed by players. This means that it wont 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.

Full list of new compostable items:

10% chance:

- 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

30% chance:

- Chorus fruit
- Popped chorus fruit
- Chorus flower
- Honey block
- Honeycomb block
- Rotten flesh
- Egg
- Turtle egg
- Leather
- Dead bush
- Charcoal
- Wool
- Slime block
- Nautilus shell
- Paper
- Cobweb
- Goat horn
- Muddy mangrove roots

50% chance:

- Cooked chicken, cod, mutton, porkchop, rabbit, beef, and salmon
- Crimson/warped nylium

65% chance:

- Poisonous potato
- Corals (dead or alive)
- Bee nest

85% chance:

- Beetroot soup
- Mushroom/rabbit/suspicious stew
- Coral blocks (dead or alive)
- Sculk vein

100% chance:

- Mycelium
- Sculk
- Sculk catalyst/shrieker/sensor/calibrated sensor

Other info:


Customization
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 (simply add/remove any item you want in those lists and it will become compostable/uncompostable).

Warning: there is another item tag for vanilla-compostable items, do not edit that one unless you know what you are doing. It is used to detect when a hopper is containing them as to not overlap vanilla-composting with custom-composting, otherwise, both mechanics would function at the same time, breaking the intended effect of this datapack.

Available commands
There are some commands that you can optionally use with this datapack:

- "/function dnv.compost:dropping_toggle": enables or disables compost-by-dropping (on by default). Disable it if you don't want compostable items that drop inside a composter to be composted.
- "/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.

Legal terms
You are allowed to:

- Download, use, and edit this datapack* 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 to this PlanetMinecraft page or to its webpage.
- 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 this text is included with the files you share.

You are not allowed to:

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

*For all legal purposes, "this datapack" refers to all the files (source code, images, and any other) present in this repository (https://github.com/daenvil/more_compostable_items) or downloadable from this page's Download button.


Older versions

Supported Minecraft versions
Tested in
Donwload link
1.21 or superior
1.21
Use the download button on this page.
1.20.5–1.20.6
1.20.6
1.20–1.20.4
1.20.4
1.16.2–1.19.4
1.16.5, 1.17.1, 1.18.2, 1.19.3



You can find more info on this datapack's Github repository and on my website.
CompatibilityMinecraft 1.16
toMinecraft 1.21
Tags

5 Update Logs

v1.3.1 update - for Minecraft 1.21+ : by daenvil 06/14/2024 8:15:14 amJun 14th

- Slightly optimized datapack functions
- Adapted to new 1.21 pack format
LOAD MORE LOGS

Create an account or sign in to comment.

Lucky_Owlmc
08/11/2024 11:02 pm
Level 1 : New Crafter
Lucky_Owlmc's Avatar
doesn't seem to be working with raw cod on 1.21 - awesome pack though :)
1
LadyYepperz
06/23/2024 10:46 pm
She/Her • Level 1 : New Crafter
LadyYepperz's Avatar
does this include composable fish & eggs?
i always have so much of these items and has to constantly build trash cans.
2
Finnodile
07/16/2024 10:16 pm
Level 35 : Artisan Goblin Goblin
Finnodile's Avatar
Yes, it does
1
Chocleoma
07/23/2023 3:35 pm
Level 1 : New Crafter
Chocleoma's Avatar
i'm pretty sure you can't compost meat irl, since it spreads nasty bacteria and can attract pests. neither of those things exist in minecraft, but i feel like allowing to compost it is a bit questionable, kinda like feeding cookies to parrots? otherwise i'm glad the datapack exist, might put it on my server
1
daenvil
01/02/2024 8:31 am
Level 58 : Grandmaster Creeper Hugger
daenvil's Avatar
Thanks, I didn't know that, you are completely right. I'll reconsider the inclusion of meat for the next big update.
2
User4624549D
06/11/2023 10:44 pm
Level 1 : New Miner
User4624549D's Avatar
Using this on my minecraft realm seems to cause alot of stress on the server and causes alot of rubberbanding but when disabled the server runs without lag which is sad cause i really like the datapack but its borderline unplayable
1
daenvil
06/15/2023 10:47 am
Level 58 : Grandmaster Creeper Hugger
history
daenvil's Avatar
Weird, I used to own a server with this datapack along with many others and I never noticed performance issues. Sadly I don't think there is any way of optimizing it much more, there is only so much you can do with datapacks...

Edit: since Minecraft 1.20.5, the datapack should now be more optimized thanks to new datapack features
1
KateYagi
05/26/2024 4:57 pm
She/They • Level 26 : Expert Engineer
KateYagi's Avatar
Maybe for pre-1.20.5 versions--if you chose to maintain them--you could place a composter without the armorstand by holding shift?
1
SirFluffyPuffs
06/07/2023 1:24 am
Level 10 : Journeyman Miner
SirFluffyPuffs's Avatar
what do you mean by like 10% chance what happens to it if it doesnt compost?
1
daenvil
06/07/2023 9:16 am
Level 58 : Grandmaster Creeper Hugger
daenvil's Avatar
The item is consumed. It works the same as the regular game, each compostable items has a % chance of not composting: https://minecraft.fandom.com/wiki/Composter#Composting
1

Welcome