Topic category: User side tutorials
example mob is ghost that causes wither when it hits you.
STEP BY STEP GUIDE
Make a procedure and call it something along the lines of mobeffects.
put if source entity is type (mob) for example
inside the if/else block put effect event/target entity with (effect) for (duration)
I made my boss set you on fire with a 10% chance and for testing i made it angry at ravagers for some reason. After a few times the boss hit the ravager, the ravager set ablaze!