Triying to make an item that summons mobs that atack everything except the user, any ideas?

Started by Gengar_Marc127 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Triying to make an item that summons mobs that atack everything except the user, any ideas?

I'm making something like a "necromancer staff" or something, it could summon zombies or custom mobs to atack everithing except the user i tried but i can't make that they can't attack the user, if u have it, please send an image or video of the code, i'm not very good when peopple only explain it.

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The simplest way would be to…
Sat, 09/23/2023 - 18:52

The simplest way would be to set the entity up during the creation to be tamable(there is a check box under the entity AI section). Then when your necromancer staff summons the entity, set the summoned entity to be tamed by the player summoning it.

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you very much, rlly…
Fri, 09/29/2023 - 16:22

Thank you very much, rlly worked!