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 Wed, 04/20/2022 - 19:04

Topic category: Help with modding (Java Edition)

Last seen on 23:13, 27. Apr 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
Wed, 04/20/2022 - 19:04

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.

Last seen on 14:59, 26. May 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 23:13, 27. Apr 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 14:59, 26. May 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 23:13, 27. Apr 2022
Joined Apr 2022
Points:

User statistics:

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

Yes and I dont want that

Last seen on 23:13, 27. Apr 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 23:13, 27. Apr 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 

Last seen on 01:55, 19. Jun 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
lol
Tue, 05/24/2022 - 02:26

lol

Last seen on 01:55, 19. Jun 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 16:02, 17. Jun 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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