#how to make custom potion in kubejs?
15 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
plz give example
first, do you use probejs?
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
second, is it mob effect or potion item?
nope
potion item
use it, it can be helpful
also a mod
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
);
});
ok thankyou
Ticket closed!