Closed talhanation closed 1 month ago
*to be compatible with recruits mod as the entities are not players
sure, that looks reasonable
done.
I also added mobReload
helper method to complement mobUse
and aimAt
that hopefully should make integrating guns in other mods easier. RangedGunAttackGoal
can serve as example
Minecraft Version
No response
ModLoader
No response
Request information
add friendly fire support, by adding this line to onHitEntityMethod(Hitresult)
Entity hitEntity = hitResult.getEntity(); Entity ownerEntity = this.getOwner();
if(ownerEntity.getTeam() != null && ownerEntity.getTeam().isAlliedTo(hitEntity.getTeam()) && !ownerEntity.getTeam().isAllowFriendlyFire()) return;
Other information
No response