Disable friendly fire for ranged mobs

Started by JerCoolDude on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Disable friendly fire for ranged mobs

I'm making a mod that has some ranged enemies, and I am trying to disable friendly fire for them, but I can't figure out how. I tried adding them to a team and disabling friendly fire for that team in-game, but their projectiles ignore it and damage them anyway. The projectiles are shot by the mob's AI and by procedures.