When Player attacks custom mob, Player gets certain potion effects

Started by Smakced on

Topic category: Feature requests and ideas for MCreator

Active 3 years ago
Joined Jun 2015
Points:
853

User statistics:

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

Active 3 years ago
Joined Jun 2015
Points:
853

User statistics:

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

Ok. Thanks for letting me know

Active 5 years ago
Joined Oct 2019
Points:
646

User statistics:

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

Active 3 years ago
Joined Jun 2015
Points:
853

User statistics:

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

Active 10 months ago
Joined Jun 2020
Points:
714

User statistics:

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