#Issue adding custom Botany Pot recipe

13 messages · Page 1 of 1 (latest)

amber wave
#

Playing on a modpack that does not include Botany Pots, added Botany Pots, Botany Trees and KubeJS Botany Pots.

Botany Trees comes with a recipe that makes the rubber sapling from GregTech CEu Modern give logs, sticks and saplings, however i want to make it so that the sapling also give sticky resin, an item that the rubber tree drops when it's planted on the ground.

Script i'm using to make this change: https://pastebin.com/iMyLd8q7
Latest server log after running the script: https://pastebin.com/tAekmLMh

The default Botany Trees, without the sticky resin, recipe does get removed, but the custom recipe i'm trying to add does not get added.

No errors on log and to me everything seems correct with script so i'm not sure what's going on.

zinc knotBOT
#

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

amber wave
#

other info i think might be useful:

modpack is GregTech Community Pack Modern

i have tried this script in other modpacks before, with no success, including one i made myself, so i have no reasons to believe that some other script in the modpack could be causing this issue

hollow notch
#

cant you change the output with a datapack?

wispy larkBOT
#

Paste version of rubber.json from @hollow notch

hollow notch
#

put this inside .../kubejs/data/botanytrees/recipes/gtceu

#

or create a fast datapack

azure lotus
#

the category-array needs to be just this ['dirt'],

#

i used this and it works:

 e.recipes.botanypots.crop(
    'gtceu:rubber_sapling', // seed item
    ['dirt'], // categories that this crop can be planted on
    { block: 'gtceu:rubber_sapling' }, // display block
    [
        Item.of('gtceu:rubber_log') // item
            .withChance(100) // weight of this entry compared to the others
            .withRolls(2, 4) // the times this loot will be chosen (min, max)
        ,   
        Item.of('minecraft:stick') // item
            .withChance(25) // weight of this entry compared to the others
            .withRolls(1, 2) // the times this loot will be chosen (min, max)
        ,   
        Item.of('gtceu:rubber_sapling') // item
            .withChance(15) // weight of this entry compared to the others
            .withRolls(1, 2) // the times this loot will be chosen (min, max)
        ,   
        Item.of('gtceu:sticky_resin') // item
            .withChance(50) // weight of this entry compared to the others
            .withRolls(2, 4) // the times this loot will be chosen (min, max)
    ],
    10, // growthTicks
    1 // optional, growthModifier - this can be set to 1 in most cases
)
amber wave
#

i don't really mess with data packs so i had no idead about this

#

thank you