You get half the damage you do
Hello. Im trying to make a datapack. that when you attack someone.you take half as much damage as you do. I dont know how to code it. Im searching everywhere and even i ask chat gpt, it doesnt work. Can someone code it.