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

Started by Mod Lover on

Topic category: Help with modding (Java Edition)

Last seen on 13:56, 28. Jan 2024
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?

Last seen on 13:56, 28. Jan 2024
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. :(

Last seen on 19:19, 27. Mar 2024
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Fri, 01/21/2022 - 05:11

For example:

Last seen on 10:06, 9. Jun 2022
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.

Last seen on 13:56, 28. Jan 2024
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.

Last seen on 02:51, 19. Feb 2022
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?

Last seen on 13:56, 28. Jan 2024
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.

Last seen on 06:40, 14. May 2023
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 :)

Last seen on 13:56, 28. Jan 2024
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...

Last seen on 13:56, 28. Jan 2024
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!

Last seen on 00:45, 16. Apr 2022
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:

Last seen on 22:07, 28. Mar 2024
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