Started by
Gengar_Marc127
on
Topic category: Help with modding (Java Edition)
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.
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.
Thank you very much, rlly worked!
No problem!