Simply Swords [Fabric & Forge]

Simply Swords [Fabric & Forge]

16M Downloads

Weapon Effects Affect Tamed/Summoned Friendly Mobs

fzzyhmstrs opened this issue ยท 3 comments

commented

My poor hamsters got nuked last night by Kami using the active on her axe. It would be nice if those effects avoided Tameable mobs, or maybe Tameable mobs whose getOwner is a teammate, much like how the abilities dodge direct teammates now.

commented

This should be fixed in the latest version. Please let me know if it still occurs.
May the hamsters be at peace

commented

Similarly, Active Defense just shoots arrows at everything. It specifically says it targets enemies, so it should only attack hostiles.

commented

I think this mod should already check to not attack tamed entities.

if (target instanceof TameableEntity tameableEntity && tameableEntity.getOwner() != null) {
return tameableEntity.getOwner() != attacker;
}

The Lichblade was still hurting nearby tamed entities though, even after manually adding the entity to the team.