When Player attacks custom mob, Player gets certain potion effects

Started by Smakced on

Topic category: Feature requests and ideas for MCreator

Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When Player attacks custom mob, Player gets certain potion effects

I'd like a feature that makes it so when the player attacks your custom mob, you can have certain potion effects be applied to the player for a certain duration.

Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok. Thanks for letting me…
Tue, 10/22/2019 - 04:05

Ok. Thanks for letting me know

Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could probably find some…
Tue, 10/29/2019 - 15:13

You could probably find some way to do it using the "When Entity Is Hurt" procedure so it applies potion effects to whatever attacked it

Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I’ve already tried this the…
Tue, 10/29/2019 - 15:15

I’ve already tried this the effects only get applied the mob not the player. Like the developer Klemen said we need to wait until they fix the ticket.

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have created a mob in the …
Fri, 09/02/2022 - 18:56

I have created a mob in the "when entity is hurt" section and I put the "add potion", only I change the event/target entity for a source entity.
Also, because of how my mob works, I also put the "add potion" in "when player collides with this entity". I hope it helps you even if it's a year late :v