jsp
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// priority: 997
|
||||
|
||||
const compostables = [
|
||||
{
|
||||
input: '#minecraft:leaves',
|
||||
chance: 0.30
|
||||
}
|
||||
];
|
||||
|
||||
ServerEvents.compostableRecipes((event) => {
|
||||
compostables.forEach((compostable) => {
|
||||
event.add(compostable.input, compostable.chance);
|
||||
});
|
||||
});
|
||||
|
||||
ServerEvents.generateData('before_mods', (event) => {
|
||||
let data_map = { values: {} };
|
||||
compostables.forEach((compostable) => {
|
||||
data_map.values[compostable.input] = { chance: compostable.chance };
|
||||
});
|
||||
|
||||
event.json(`neoforge:data_maps/item/compostables.json`, data_map);
|
||||
});
|
||||
Reference in New Issue
Block a user