KubeJS Botany Pots - Extension for Creating Plants and Soils
This addon opens up the possibility for you to create custom crops, soil types, and fertilizers for the Botany Pots mod directly through KubeJS.
Important note: The main Botany Pots mod is not available on Modrinth, so for this extension to work, it will need to be downloaded from other sources.
Here is an example code demonstrating the main capabilities:
ServerEvents.recipes(event => {
// Creating a new crop
event.recipes.botanypots.crop(
"minecraft:candle", // seed item
["oak_leaves"], // soil categories for planting
10, // growth time in ticks
1, // growth modifier (usually leave as 1)
{ block: "minecraft:candle" }, // display block
[
{
output: "minecraft:candle", // obtained item
chance: 100, // drop probability
minRolls: 1, // minimum quantity
maxRolls: 2, // maximum quantity
// example: when harvested will give 1 to 2 candles
}
]
)
// Creating a new soil type
event.recipes.botanypots.soil(
"minecraft:oak_leaves", // soil item
{ block: "minecraft:oak_leaves" }, // display block
["oak_leaves"], // provided categories
100, // growth acceleration in ticks (-1 to disable)
0.5 // growth modifier (0.5 = twice as fast)
)
// Creating fertilizer
event.recipes.botanypots.fertilizer(
"minecraft:iron_ingot", // fertilizer item
10, // minimum growth acceleration
20 // maximum growth acceleration
// example: random acceleration from 10 to 20 ticks
)
})