How to make a mob poison the player?

Started by Hakann on

Topic category: Help with MCreator software

Last seen on 16:20, 17. Mar 2018
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a mob poison the player?
Tue, 02/06/2018 - 16:15 (edited)

In my mod I have a mushroom, that supposed to poison the player when it attacks the player, but when I use the "When Entity Attacks: Add Potion Effect" event, it is not working. Is there a way to make it poison the player?

Edited by Hakann on Tue, 02/06/2018 - 16:15
Last seen on 17:37, 30. Mar 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
go in the events section, in…
Sat, 02/03/2018 - 18:32

go in the events section, in the thing that says when mob hits player, then click on it and select poison if its in there.

Last seen on 16:20, 17. Mar 2018
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No, I need to do so for only…
Sat, 02/03/2018 - 19:09

No, I need to do so for only one mob

Last seen on 17:37, 30. Mar 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i meant edit ur mob and go…
Sun, 02/04/2018 - 00:13

i meant edit ur mob and go into the when mob hits player event. I didnt mean global events. I meant events specific to that mob

Last seen on 17:37, 30. Mar 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oops, i meant the when mob…
Sun, 02/04/2018 - 00:14

oops, i meant the when mob attacks event

Last seen on 17:37, 30. Mar 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
go in there and select add…
Sun, 02/04/2018 - 00:15

go in there and select add potion effect. Poison is a potion effect, so u can do it :)

Last seen on 16:20, 17. Mar 2018
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
please write the code of…
Sun, 02/04/2018 - 12:19

please write the code of event (when the mob hits the player)

Last seen on 17:37, 30. Mar 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
edit the mob, click next…
Sun, 02/04/2018 - 13:11

edit the mob, click next until you see a string that says "when mob attacks", then add event and find the choice that says "add potion effect". Go in it and then type 19 for the id. 19 is the poison effect, so it should make the mob poison you. Is that what you asked for? :)

Last seen on 17:37, 30. Mar 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Duration means how long the…
Sun, 02/04/2018 - 13:14

Duration means how long the poison potion lasts in seconds(i recommend doing it for at least 10 seconds), and Amplifier means how strong you want it to be(I recommend 1 so it isn't insanely strong but still hurts you).

Last seen on 16:20, 17. Mar 2018
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When mob attacks event is…
Tue, 02/06/2018 - 09:07

When mob attacks event is not working 

Last seen on 21:12, 14. Jul 2023
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make sure you're setting the…
Tue, 02/06/2018 - 14:46

Make sure you're setting the duration correctly. The duration for the potion effect is in ticks, not seconds. There are 20 ticks in a second, so for 10 seconds set it to 200. If you have it set to 10, the effect happens for half a second which you won't notice.

That's all I can think of, if that doesn't help let me know :P

Also, try not to spam.