BotanyPots support for RU trees

This commit is contained in:
oitsjustjose 2024-04-22 08:41:20 -05:00
commit b793f5efab
2 changed files with 193 additions and 0 deletions

View file

@ -0,0 +1,24 @@
ServerEvents.recipes(event => {
const trees = JsonIO.read('kubejs/globals/trees.json').trees;
trees.forEach(tree => {
event.custom({
type: "botanypots:crop",
seed: { item: tree.sapling },
categories: ["dirt"],
growthTicks: 2400,
display: { block: tree.sapling },
drops: [
{
output: { item: tree.log },
chance: 1.0,
minRolls: 2,
maxRolls: 3
},
{
output: { item: tree.sapling },
chance: 0.05
}
].concat(tree.extras.map(x => ({ output: { item: x }, chance: 0.25 })))
});
});
});