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

Started by TheMarksman12 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to deal potion effects to an oppenent after critically damaging them.

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!