Topic category: Help with Minecraft modding (Java Edition)
Put Event Trigger to Entity Attacked
IF
DO: Set the attack targer of [EVENT/TARGET Entity] to [Source Entity]
Add potion [EFFECT] with level [VALUE] for [VALUE] ticks to [EVENT/TARGET Entity]
Also make sure any trigger in your Living Entity to all be default, no extra procedures.
(pictures here of your living entity properties, you can add or remove stuff here if you want but keep it all blank if you just want standard Entity/Mob give "Effect(s)" when hitting Player or Entity vice versa.
(example) https://imgur.com/a/XetLHVU if you want to see the picture of how i made it, will be easier to look at :)
if you have any question i might be able to help you. Although i'm barely active on here. So add my discord: bajgen
I made this because there is currently almost no tutorial for it.
tysm!!!