- check_circle Functions
- check_circle Loot Tables
- check_circle Predicates
- 12,800 views, 6 today
- 871 downloads, 0 today
76
This data pack is meant to be edited and as a template.
This data pack lets you compost any item (that you have been added manually. See below.) and change what the compost drops.
The custom compost item and drop that is made as a template when you install this data pack is Rotten Flesh item that have 20% chance to become composted and have a chance (after compost is full and clicked) 5/3/1 to drop dirt/coarse_dirt/diamond
To compost a custom item, the user must drop the item into the composter
To have the custom compost drop the user must drop a custom compostable item into the compost first
Before editing extract downloaded zip file into Custom Compost folder
How to add your own custom compost item:
How to add custom compost drop:
This data pack lets you compost any item (that you have been added manually. See below.) and change what the compost drops.
The custom compost item and drop that is made as a template when you install this data pack is Rotten Flesh item that have 20% chance to become composted and have a chance (after compost is full and clicked) 5/3/1 to drop dirt/coarse_dirt/diamond
To compost a custom item, the user must drop the item into the composter
To have the custom compost drop the user must drop a custom compostable item into the compost first
Before editing extract downloaded zip file into Custom Compost folder
How to add your own custom compost item:
- Go to "Custom Compost > data > c_compost > functions > item" and duplicate rotten_flesh.mcfunction
- Rename the duplicated file to your custom compost item. Let's use gravel item. so rename it to gravel.mcfunction
- Open gravel.mcfunction and change the code below
execute as @e[type=item,nbt={Item:{id:"minecraft:rotten_flesh"}}] at @s if block ~ ~ ~ minecraft:composter unless block ~ ~ ~ minecraft:composter[level=7] unless block ~ ~ ~ minecraft:composter[level=8] run function c_compost:chance/50
#From the code above, change it to this below. 100% chance.
execute as @e[type=item,nbt={Item:{id:"minecraft:gravel"}}] at @s if block ~ ~ ~ minecraft:composter unless block ~ ~ ~ minecraft:composter[level=7] unless block ~ ~ ~ minecraft:composter[level=8] run function c_compost:chance/100
Do note: beside 5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 percent chance. You have to add the chances your self - Go to "Custom Compost > data > c_compost > functions" and open main.mcfunction
- Below this code
function c_compost:item/rotten_flesh
Add this code (calls the function file you just made)function c_compost:item/gravel
How to add custom compost drop:
- Go to "Custom Compost > data > c_compost > loot_tables" and open c_compost.json
- Change it as you wish
Compatibility | Minecraft 1.15 |
Tags |
1 Update Logs
v1.1 : by RevonZev 04/21/2020 8:59:52 pmApr 21st, 2020
Made it easier to add custom compostable item
Added composting sound
Added composting particles
Added Predicates for generating chances
Removed AoE for generating chances
Added composting sound
Added composting particles
Added Predicates for generating chances
Removed AoE for generating chances
tools/tracking
4464042
119
custom-compost
Create an account or sign in to comment.
i don't know what code to change
2) Is there any way to obtain custom compost drops without player interaction?
A hopper only collected bone meal for me. Maybe implement an option to make the compost drop item instantly pop-off when the composter is full?
Edit: maybe the instant pop-off could be conditional on the composter being powered by redstone, or having a redstone block adjacent to it?