diff --git a/kubejs/globals/trees.json b/kubejs/globals/trees.json new file mode 100644 index 0000000..18478b7 --- /dev/null +++ b/kubejs/globals/trees.json @@ -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"] + } + ] +} diff --git a/kubejs/server_scripts/BotanyPots.js b/kubejs/server_scripts/BotanyPots.js new file mode 100644 index 0000000..6872c9e --- /dev/null +++ b/kubejs/server_scripts/BotanyPots.js @@ -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 }))) + }); + }); +}); \ No newline at end of file