How can I make my custom entity attack other modded entity from other mods?

Started by garlicdemarlic on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make my custom entity attack other modded entity from other mods?

I want to make my custom mob attack other custom mobs.

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you are having your…
Thu, 04/23/2026 - 22:21

If you are having your custom entity attack other custom entities from the same mod, you simply add it as an attack target in AI.

 

If you are trying to get your custom entity to attack entities not included in your mod, you will have to edit/change the code to include the entity from the other mod (would be something like modid:entity_name)

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! I'll try it. I was…
Tue, 04/28/2026 - 05:28

Thanks! I'll try it. I was trying to ask how to attack my custom mob to attack other mobs from different mods.