How to make mobs not attack player when has an certain effect

Started by Rareshero_ on

Topic category: Help with modding (Java Edition)

Last seen on 17:56, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make mobs not attack player when has an certain effect
Fri, 11/05/2021 - 20:02 (edited)

I made a custom zombie, and if he hits you, you will get an Infected effect. And if you have the Infected effect the custom mob will not attack you, unlike when you did not have the effect. Is there an way to do this ?

Edited by Rareshero_ on Fri, 11/05/2021 - 20:02
Last seen on 03:32, 22. Jul 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could try doing mixes…
Fri, 11/05/2021 - 18:57

you could try doing mixes with the trigger

Entity sets its target attack

and/or the procedure block Entity is targeting for attack

Last seen on 17:56, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you show me with an…
Fri, 11/05/2021 - 19:13

Can you show me with an screenshot ? I don't get what you said.

Last seen on 03:32, 22. Jul 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't have any procedures,…
Fri, 11/05/2021 - 19:29

I don't have any procedures, you would have to figure it out, I gave tips, use the trigger Entity sets its target attack and/or the procedure block Entity is targeting for attack

Last seen on 17:56, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did something :D. It only…
Fri, 11/05/2021 - 19:42

I did something :D. It only semi-works. Let me expain. So if I have the Infected effect, and a zombie sees me for the first time, he will attack me. But if he loses sight of me, and I come back he is frendly. I did this by being able to tame the zombie. Here is my procedure : 

My procedure ( Please tell me if you know how to make it work better )

Keep in mind I would like someone to make my procedure better, because it dosen't work 100% of the time !

 

Last seen on 03:32, 22. Jul 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I will try to make smt for ya
Fri, 11/05/2021 - 19:48

I will try to make smt for ya

Last seen on 17:56, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you make send me a photo…
Fri, 11/05/2021 - 19:54

Can you make send me a photo, it takes ages to read, and then find what I must do. Thanks for the link, even if you don't send me a photo at least I can still make it work :D

Last seen on 17:56, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I still did not manage to…
Fri, 11/05/2021 - 21:02

I still did not manage to fix my problem :( . I'll try tommorow again.

Last seen on 08:07, 22. Sep 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ages to read ? It's 10 lines…
Fri, 11/05/2021 - 21:18

Ages to read ? It's 10 lines....

Last seen on 17:56, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yea, but I'm new, and it…
Mon, 11/08/2021 - 17:25

Yea, but I'm new, and it takes time to find the respective thing, and then place it in the correct spot

 

Last seen on 03:32, 22. Jul 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what does age have to do…
Mon, 11/08/2021 - 17:36

what does age have to do with reading xd

Last seen on 03:32, 22. Jul 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
age with mcreator* I meant…
Mon, 11/08/2021 - 17:37

age with mcreator* I meant age with mcreator not age xd

Last seen on 17:56, 14. Nov 2021
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Like 3 weeks now.  
Thu, 11/11/2021 - 06:37

Like 3 weeks now.