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 modding (Java Edition)

Last seen on 15:09, 13. Jun 2024
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.

Last seen on 05:10, 3. Dec 2023
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.

Last seen on 15:09, 13. Jun 2024
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!

 

Last seen on 05:10, 3. Dec 2023
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem!
Fri, 09/29/2023 - 16:33

No problem!