#How do i make an effect?

8 messages · Page 1 of 1 (latest)

foggy blaze
#

Im trying to make a lifedrain effect which halves player hp, but i made some error with it which i havnt found. What did i do wrong?

onEvent('mob_effect', event => {
    event.create('life_drain').modifyAttribute('minecraft:generic.max_health',
    '837ccc62-fc36-4485-ba50-5f218e6da42e',
    0.5, 'multiply_total').color(Color.RED_DYE)
})
tulip raptorBOT
#

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

lethal terraceBOT
#

Never say 'it crashed', 'it errored', or 'it didn't work' without providing the full crash report, log, and scripts!

#

You can find your KubeJS startup log in /minecraft/logs/kubejs/startup.log.
If you are on 1.18 or below it will be called startup.txt.
Please send it if asked, as it contains helpful information.

night spear
#

you just have 'mob_effect'