How to deal potion effects to an oppenent after critically damaging them.

Started by TheMarksman12 on Sat, 02/06/2021 - 16:18

Topic category: Help with modding (Java Edition)

Last seen on 22:09, 29. Sep 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to deal potion effects to an oppenent after critically damaging them.
Sat, 02/06/2021 - 16:18

I am making a mod that adds emerald sword, tools and armor. I want to make it so when I attack someone with an emerald sword (critically) they get poisoned for a few seconds. I'm not sure how to do this. Please help!