How do I make a mob give an effect to the player when they attack in Mcreator 2021.3?

Started by Alex Khang on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a mob give an effect to the player when they attack in Mcreator 2021.3?

I want to know how to make a mob that when attacks the player it gives a potion effect. I already tried to search forum topics but it didn't help. Can someone help me?

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And by the way, sorry for…
Fri, 01/21/2022 - 04:39

And by the way, sorry for bad English. :(

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I didn't see anything.
Fri, 01/21/2022 - 05:26

I didn't see anything.

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I didn't see the picture.
Fri, 01/21/2022 - 10:15

I didn't see the picture.

Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is the entity a melee (makes…
Sun, 01/23/2022 - 07:46

Is the entity a melee (makes contact with the player) or ranged entity?

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Melee because it is a spider.
Tue, 01/25/2022 - 02:42

Melee because it is a spider.

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Select trigger "When entity…
Sat, 02/12/2022 - 17:18

Select trigger "When entity is hurt" and do something like this:procedure

I hope i can help :)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It crash the game when I hit…
Fri, 02/18/2022 - 14:21

It crash the game when I hit the entity...

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also I want the entity gives…
Fri, 02/18/2022 - 14:44

Also I want the entity gives you the effect when it attacks the player, not by hurting it. Thanks anyways!

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you want to make the…
Fri, 02/25/2022 - 03:35

If you want to make the player get an effect, replace source entity with event target entity and make this block:

IF: Is (Source Entity) sub-type of (Custom Mob)
Then:

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i have the same problem. i…
Mon, 09/11/2023 - 13:27

i have the same problem. i am making a mod that adds a new bee variant, and i want to make it so when IT attacks SOMETHING, it gives THAT TARGET a custom effect