#Trying to use the Botany pots addons,

1 messages · Page 1 of 1 (latest)

frozen marsh
#

But I cant even get my Probe JS to work in VScode

craggy folioBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

frozen marsh
mortal badgeBOT
#

WIP

frozen marsh
#
ServerEvents.recipes(event => {
    event.recipes.botanypots.crop(
        "gtceu:rubber_sapling", // seed item
        ["minecraft:dirt"], // categories that this crop can be planted on
        { block: "gtceu:rubber_sapling" }, // display block
        [
            Item.of ("gtceu:rubber_sapling") // item
                .withChance(30) // weight of this entry compared to the others
                .withRolls(1, 4) // the times this loot will be chosen (min, max)
            // for example, when chosen this will give 1 to 2 candles
            Item.of ("gtceu:rubber_log") // item
                .withChance(100) // weight of this entry compared to the others
                .withRolls(1, 6) // the times this loot will be chosen (min, max)
            // for example, when chosen this will give 1 to 2 candles
            Item.of ("gtceu:rubber_leaves") // item
                .withChance(10) // weight of this entry compared to the others
                .withRolls(1, 16) // the times this loot will be chosen (min, max)
            // for example, when chosen this will give 1 to 2 candles
        ],
        10, // growthTicks
        1, // optional, growthModifier - this can be set to 1 in most cases
    )
})
#

this is what ive come up with- without probe JS

#

I am a pretty terrible coder and new to kubejs in general

robust estuary
frozen marsh
#

I have no idea ?

#

probe js was version 7.0.1

robust estuary
frozen marsh
robust estuary
#

Does not work with pre-1.21 ProbeJS due to completely rewritten.

  • [0.2.0] changelog
frozen marsh
#

oh

#

well it didnt matter I made a code mistake anyway

frozen marsh
#

now this error

#

but that cant be right

#

how does that look?