#Is it possible to make a sword inflict an effect on hit?

12 messages · Page 1 of 1 (latest)

kind bolt
#

Is there a way i could make it so hitting an entity with a custom sword inflicts a potion effect (specifically wither) for 10s I realllyyyy need it for my modpack and i have no idea what to do

dusk ridgeBOT
#

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

kind bolt
#

Is it possible to make a custom sword inflict am effect on hit?

#

I am gonna assume again it's not possible and i have too high expectations of kubejs

kind bolt
#

Is it possible to make a sword inflict am effect on hit?

#

Is it possible to make a sword inflict an effect on hit?

#

nothing ever happens

frank isle
#

bro gave up it like a day 😔

#

ik you closed it but mayeb try smth like

player.potionEffects.add('mod:new_effect', 60, 1, false, false);
#

idk if it works

#

nope doesnt work sorry