How can I make mob give me potion effect when attack?

Started by Ping Pong on

Topic category: Help with modding (Java Edition)

Last seen on 08:09, 18. Sep 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make mob give me potion effect when attack?

How can I make mob give me potion effect when attack?

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
when the mob attacks you or…
Mon, 06/29/2020 - 15:48

when the mob attacks you or when you attack the mob?

Last seen on 08:09, 18. Sep 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
when the mob attacks you.
Tue, 06/30/2020 - 05:45

when the mob attacks you.

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
create a new procedure and…
Tue, 06/30/2020 - 20:46

create a new procedure and use global trigger "Entity attacked". check the source entity if it is of subtype {your mob}, then add potion effect to target entity

Last seen on 08:09, 18. Sep 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But I need to lock my code.
Wed, 07/01/2020 - 01:45

But I need to lock my code.

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
no you don't
Wed, 07/01/2020 - 10:48

no you don't

Last seen on 08:09, 18. Sep 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But I cannot choose the mob.
Thu, 07/02/2020 - 08:54

But I cannot choose the mob.

Last seen on 16:53, 8. Jul 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what do you mean you cant…
Thu, 07/02/2020 - 10:10

what do you mean you cant Change the mob ?

If:

      Is Entity (Sub)type of: [Special: [Your Entity]]

Do:

Give target Entity potion effect Level: [x] Durability: [x]

Last seen on 08:09, 18. Sep 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I said do I need to go in…
Thu, 07/02/2020 - 11:36

I said do I need to go in the code or I just open something

Last seen on 05:29, 31. Jan 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Thu, 07/02/2020 - 12:27

https://cdn.discordapp.com/attachments/599250311852458006/728224959712985148/Untitled.png

Last seen on 08:09, 18. Sep 2020
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank
Thu, 07/02/2020 - 13:08

Thank

Last seen on 01:55, 8. Jan 2023
Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wow thanks @ahznb hopefully…
Fri, 10/07/2022 - 14:06

Wow thanks @ahznb hopefully this other way dose not crash my game lol