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

Started by Ping Pong on Mon, 06/29/2020 - 14:04

Topic category: Help with modding (Java Edition)

Last seen on 03:00, 6. Aug 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How can I make mob give me potion effect when attack?
Mon, 06/29/2020 - 14:04

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

Last seen on 20:54, 7. Aug 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 03:00, 6. Aug 2020
Joined Jun 2020
User points:

User statistics:

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

when the mob attacks you.

Last seen on 20:54, 7. Aug 2020
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 03:00, 6. Aug 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 20:54, 7. Aug 2020
Joined Nov 2019
User points:

User statistics:

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

no you don't

Last seen on 03:00, 6. Aug 2020
Joined Jun 2020
User points:

User statistics:

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 03:00, 6. Aug 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 20:54, 7. Aug 2020
Joined Nov 2019
User points:

User statistics:

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

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

Last seen on 03:00, 6. Aug 2020
Joined Jun 2020
User points:

User statistics:

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

Thank