Minecraft Data Packs / Farming and Food

More Compostable Items

  • check_circle Advancements
  • check_circle Functions
  • 20,963 views, 20 today
  • 4,712 downloads, 4 today
  • 110
  • 118
  • 12
daenvil's Avatar daenvil
Level 57 : Grandmaster Creeper Hugger
94
Important: the link above is just for Minecraft 1.20.5. 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.20.5 and later
1.20.5
Use the download button on this page.
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 pre-release
Tags

4 Update Logs

v1.3 update - for Minecraft 1.20.5 : by daenvil 04/26/2024 12:22:45 pmApr 26th

- Raw animal meats are no longer compostable.
- Armadillo scute is compostable with 10% chance.
- Composting by dropping now also works on naturally generated composters.
- Slightly improved composting particle effect.
- Optimized functions.
LOAD MORE LOGS

Create an account or sign in to comment.

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 57 : 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 57 : 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
SirFluffyPuffs
06/07/2023 1:24 am
Level 9 : Apprentice 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 57 : 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
_stampertjegames_
01/14/2023 3:18 pm
Level 1 : New Miner
_stampertjegames_'s Avatar
this does not work in 1.19.2
1
daenvil
01/21/2023 5:23 am
Level 57 : Grandmaster Creeper Hugger
history
daenvil's Avatar
It is working for me, just tested it! In case you want to try again, try the following:

- Make sure you read the instructions, this datapack works on composters you place manually (if a composter isn't working, just pick it and place it again), and you need to drop the items inside them (instead of right clicking).

- If the above really is not working, it may be due to other datapacks or mods that you have installed. If that's the case, you can tell me which datapacks you have installed so I can check for conflicts.
1
Mathayuss
01/30/2022 8:35 am
Level 1 : New Miner
Mathayuss's Avatar
Awesome datapack. Is there a way to change the output of the composter? so I can get other items other than bone meal? say for skyblocks i could make a dirt generator to get dirt easier. Thanks :D
1
Stranded_at_Sea
04/15/2022 9:00 pm
Level 1 : New Miner
Stranded_at_Sea's Avatar
You can do so by modifying the composter.json loot table, which you can find in: .minecraft\versions\version_name\version_name.jar\data\minecraft\tags\items\
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome