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

Started by Rareshero_ on

Topic category: Help with Minecraft modding (Java Edition)

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
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

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.

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

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 !

 

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

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

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.

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....

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

 

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

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

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.