Hey!
I have created new damage source called fire and my goal is that I want to reduce this type of damage in the LivingHurtEvent if the target has resistance to this new source. Now the problem is that I am not able cause this new type of damage from my fire sword.
I've tried adding "target.attackEntityFrom(new DamageSource("mymod.fire"), 10f)" to the hitEntity function in the fire sword, but this seems to cause two attacks. The original attack with the source of player and a new attack with the new source.
So my question is it possible to change this fire swords damage source from player to fire, or is it possible to cancel first damage caused by player and just apply the fire damage?