Thorn/Spike Effect

I have been trying to get a thorn/spike state into my game project though I have not had much success. I've tried to use the Yanfly Thronmail tutorial (http://www.yanfly.moe/wiki/Thornmail_(MV_Plugin_Tips_&_Tricks)) though it does not work on MZ based on my attempts. I can get a state onto the actor through equipment but the actually spike effect itself does not work. So I was hoping someone here would either know a plugin or in general how I could get this or a similar effect working in MZ.
Did you change the name of the notetag to reflect what VisuStella Skills and States uses?

Do you have the Skills and States plugin installed, to get access to the notetags?

None of the actual code inside would be different. If you need more help, you can look up Trihan's thread of reproducing the Yanfly Tips in VisuStella, but literally all you need to do is change to the correct notetag.

If you still can't get it to work, post a screenshot of the state and however you're getting it.
Use the VS Battle Core and use the following code:
JavaScript:
<JS Post-Damage As Target>
  if (value > 0 && this.isPhysical()) {
    const rate = 0.1;
    const recoil = value * rate;
    const defRate = 0.25;
    const bonus = target.def * defRate;
    const damage = Math.ceil(bonus + recoil);
    user.gainHp(-damage);
    if (user.isDead()) {
      user.performCollapse();
    }
  }
</JS Post-Damage As Target>

I grabbed that bit of code from this thread, which was made to help others recreate the various tips and tricks stuff in MZ.
Thank you both for the help!
I wish I knew of Trihan's thread earlier since that code worked right away!

Original thread: https://forums.rpgmakerweb.com/threads/thorn-spike-effect.160652/