KubeJS Botany Pots

Quick rating

Community listing page, reviews here may not be monitored by the author.

KubeJS Botany Pots

No reviews yet

A KubeJS addon that allows you to create crops, soils, and fertilizers for Botany Pots

Mod Loaders
Minecraft

About

Description

This mod allows you to create crops, soils, and fertilizers for the Botany Pots mod. The provided methods are displayed below.

ServerEvents.recipes(event => {
    // for DisplayState, DropItem, and GrowthAmount please install ProbeJS for reference

    event.recipes.botanypots.crop(
        "minecraft:candle", // seed item
        "#minecraft:leaves", // soils that this crop can be planted on
        DisplayState.basic("minecraft:candle"), // the block that is displayed while growing
        [
            DropItem.item("minecraft:candle", 1.0) // item (use Item.of to include stack size), chance
        ],
        100, // how many ticks this takes to grow
        0.1 // optional, yield, chance for the crop to drop
    );

    event.recipes.botanypots.soil(
        "minecraft:oak_leaves", // the item that this soil is attached to
        DisplayState.basic("minecraft:oak_leaves"), // the block that is displayed while growing
        0.5, // optional, growth modifier, example: 0.5 means all crops will grow an additional 50% faster
        0.0 // optional, yield modifier, example: 0.5 means that all crops have a additional 50% chance to drop a crop
    );

    event.recipes.botanypots.fertilizer(
        "minecraft:iron_ingot", // fertilizer item
        GrowthAmount.range(10, 20) // min growth ticks, max growth ticks
    )
})

This mod allows you to create crops, soils, and fertilizers for the Botany Pots mod.

Note: The Botany Pots mod is not available in Modrinth, so the mod must be downloaded from another source for this mod to work

ServerEvents.recipes(event => {
    event.recipes.botanypots.crop(
        "minecraft:candle", // seed item
        ["oak_leaves"], // categories that this crop can be planted on
        10, // growthTicks
        1, // growthModifier - this can be set to 1 in most cases
        { block: "minecraft:candle" }, // display block
        [
            {
                output: "minecraft:candle", // item
                chance: 100, // weight of this entry compared to the others
                minRolls: 1, // the minimum times this loot will be chosen
                maxRolls: 2, // the maximum times this loot will be chosen
                // for example, when chosen this will give 1 to 2 candles
            }
        ]
    )

    event.recipes.botanypots.soil(
        "minecraft:oak_leaves", // the item that this soil is attached to
        { block: "minecraft:oak_leaves" }, // display block
        ["oak_leaves"], // categories that this soil provides
        100, // growth ticks that this soil will provide, set to -1 for no modifier
        0.5 // optional, growth modifier, example: 0.5 means all crops will take half the time
    )

    event.recipes.botanypots.fertilizer(
        "minecraft:iron_ingot", // fertilizer item
        10, // min growth ticks applied
        20 // max growth ticks applied
        // ex: 10 to 20 ticks will be randomly given to the crop
    )
})