Topic category: Help with modding (Java Edition)
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!