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)

Active 1 month ago
Joined Jan 2022
Points:
401

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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?

Active 1 month ago
Joined Jan 2022
Points:
401

User statistics:

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

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

Active 2 weeks ago
Joined Nov 2021
Points:
517

User statistics:

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

For example:

Active 2 years ago
Joined Jan 2022
Points:
375

User statistics:

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

I didn't see anything.

Active 1 month ago
Joined Jan 2022
Points:
401

User statistics:

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

I didn't see the picture.

Active 2 years ago
Joined Dec 2021
Points:
423

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 53
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?

Active 1 month ago
Joined Jan 2022
Points:
401

User statistics:

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

Melee because it is a spider.

Active 1 year ago
Joined Jan 2022
Points:
427

User statistics:

  • Modifications: 3
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 24
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 :)

Active 1 month ago
Joined Jan 2022
Points:
401

User statistics:

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

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

Active 1 month ago
Joined Jan 2022
Points:
401

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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!

Active 2 years ago
Joined Feb 2022
Points:
387

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 39
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:

Active 1 day ago
Joined Sep 2021
Points:
885

User statistics:

  • Modifications: 0
  • Forum topics: 77
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 117
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