#how to make custom potion in kubejs?

15 messages · Page 1 of 1 (latest)

brave plinth
#

/ticket open

violet hareBOT
#

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

brave plinth
#

plz give example

tiny kindle
#

first, do you use probejs?

opal mossBOT
#

ProbeJS is an addon mod for KubeJS that generates typings files for VSCode, allowing VSCode to offer autocompletions for a ton of things!

Mod by @rapid prism

tiny kindle
#

second, is it mob effect or potion item?

brave plinth
brave plinth
tiny kindle
brave plinth
#

ok, ill install that

#

this in vscode?

tiny kindle
#
StartupEvents.registry("potion", (event) => {
  event.create("custom_potion")
    .effect( // add an effect into this potion item
    "speed", // effect id
    20 * 20, // duration (tick), 1 sec = 20 tick
    4 // amplifier, 0 = lv.1
  );
});
brave plinth
#

ok thankyou