BotanyPots support for RU trees
This commit is contained in:
parent
26faf9e62a
commit
b793f5efab
2 changed files with 193 additions and 0 deletions
24
kubejs/server_scripts/BotanyPots.js
Normal file
24
kubejs/server_scripts/BotanyPots.js
Normal 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 })))
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue