How do I make a procedure that gives effect to the mob that is hurt and not the one who hurts it

Started by LavieGamer on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a procedure that gives effect to the mob that is hurt and not the one who hurts it

I have a procedure that activates when entity is hurt with item. It gives and removes the effect on the mob I hit but it removes and adds effects for me too.

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can give it a custom…
Wed, 04/20/2022 - 19:20

you can give it a custom weapon that applies a potion effect to the mob that hit it.

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think I said it…
Wed, 04/20/2022 - 22:02

I think I said it incorrectly. I want the entity to be the only one affected when hit with the item. The procedure gives the effects to me and the entity.

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ah, so when it damages a mob…
Thu, 04/21/2022 - 11:24

ah, so when it damages a mob it gives the attacker an effect

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes and I dont want that
Thu, 04/21/2022 - 13:43

Yes and I dont want that

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I watched the video but it's…
Fri, 04/22/2022 - 16:50

I watched the video but it's not what I'm looking for. I want it to give the entity bad effect and take away the good ones from it as well when entity is hurt by the item. The thing is that it takes away my good effects that my armour give me and give me all the bad ones too. I gonna try a different type of procedure and if it works I will tell you

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I just realise with my…
Fri, 04/22/2022 - 17:00

I just realise with my knowledge I can only use when the entity is hit procedure 

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but ty i am making a…
Tue, 05/24/2022 - 02:26

but ty i am making a projectile instead of a weapon

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this procedure will apply…
Tue, 05/24/2022 - 03:46

this procedure will apply what ever effect you choose to the mob that you hit.

H