#Startup event error from making food item

13 messages · Page 1 of 1 (latest)

upper hedge
#

making a food item but I got this start up error. (ignore the names)

e.create('blue_meth_bag').texture('kubejs:item/blue_meth_bag').displayName('Blue Meth Bag').food(food => {
        food
            .effect('minecraft:slow_falling', 20, 4)
            .effect('minecraft:strength', 20, 3)
            .effect('brewinandchewin:tipsy', 240, 1)
              .alwaysEdible()//Like golden apples
              .fastToEat()//Like dried kelp
              .meat()//Dogs are willing to eat it
              //.eaten(ctx => {//runs code upon consumption
            //ctx.player.tell(Text.gold('Yummy Yummy!'))
    })
    e.create('white_meth_bag').texture('kubejs:item/blue_meth_bag').displayName('White Meth Bag').food(food => {
        food
            .effect('minecraft:slow_falling', 20, 4)
            .effect('brewinandchewin:tipsy', 480, 1)
              .alwaysEdible()//Like golden apples
              .fastToEat()//Like dried kelp
              .meat()//Dogs are willing to eat it
              //.eaten(ctx => {//runs code upon consumption
            //ctx.player.tell(Text.gold('Yummy Yummy!'))
    })
vocal yarrowBOT
#

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

mystic hemlockBOT
#

Paste version of startup.log from @upper hedge

warm sparrow
#

you need the probability as well

#
FoodBuilder#effect(mobEffectId: Special.MobEffect, duration: number, amplifier: number, probability: number): this;
upper hedge
warm sparrow
#

i dunno
probably just the chance that the effect gets applied

upper hedge
mystic hemlockBOT
#

Paste version of startup.log from @upper hedge

upper hedge
#

oh wait nvm

#

I forgot to do one line

#

Its late for me