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

169
kubejs/globals/trees.json Normal file
View file

@ -0,0 +1,169 @@
{
"trees": [
{
"sapling": "sushigocrafting:avocado_sapling",
"log": "sushigocrafting:avocado_log",
"extras": ["sushigocrafting:avocado"]
},
{
"sapling": "regions_unexplored:alpha_sapling",
"log": "regions_unexplored:alpha_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:apple_oak_sapling",
"log": "minecraft:oak_log",
"extras": ["minecraft:apple", "minecraft:apple"]
},
{
"sapling": "regions_unexplored:ashen_sapling",
"log": "regions_unexplored:ashen_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:bamboo_sapling",
"log": "regions_unexplored:bamboo_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:baobab_sapling",
"log": "regions_unexplored:baobab_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:blackwood_sapling",
"log": "regions_unexplored:blackwood_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:blue_magnolia_sapling",
"log": "regions_unexplored:magnolia_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:brimwood_sapling",
"log": "regions_unexplored:brimwood_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:cobalt_sapling",
"log": "regions_unexplored:cobalt_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:cypress_sapling",
"log": "regions_unexplored:cypress_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:dead_sapling",
"log": "regions_unexplored:dead_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:enchanted_birch_sapling",
"log": "regions_unexplored:enchanted_birch_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:eucalyptus_sapling",
"log": "regions_unexplored:eucalyptus_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:flowering_sapling",
"log": "minecraft:oak_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:golden_larch_sapling",
"log": "regions_unexplored:larch_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:joshua_sapling",
"log": "regions_unexplored:joshua_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:kapok_sapling",
"log": "regions_unexplored:kapok_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:larch_sapling",
"log": "regions_unexplored:larch_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:magnolia_sapling",
"log": "regions_unexplored:magnolia_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:maple_sapling",
"log": "regions_unexplored:maple_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:mauve_sapling",
"log": "regions_unexplored:mauve_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:orange_maple_sapling",
"log": "regions_unexplored:maple_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:palm_sapling",
"log": "regions_unexplored:palm_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:pine_sapling",
"log": "regions_unexplored:pine_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:pink_magnolia_sapling",
"log": "regions_unexplored:magnolia_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:red_maple_sapling",
"log": "regions_unexplored:maple_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:redwood_sapling",
"log": "regions_unexplored:redwood_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:silver_birch_sapling",
"log": "regions_unexplored:silver_birch_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:small_oak_sapling",
"log": "regions_unexplored:small_oak_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:socotra_sapling",
"log": "regions_unexplored:socotra_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:white_magnolia_sapling",
"log": "regions_unexplored:magnolia_log",
"extras": ["minecraft:stick"]
},
{
"sapling": "regions_unexplored:willow_sapling",
"log": "regions_unexplored:willow_log",
"extras": ["minecraft:stick"]
}
]
}

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 })))
});
});
});