Help! How to put potion effects on only one piece of armor?

Started by Kiko07 on

Topic category: Help with modding (Java Edition)

Last seen on 21:26, 24. Feb 2021
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help! How to put potion effects on only one piece of armor?
Sun, 07/14/2019 - 18:44 (edited)

I am new to MCreator and I would like to know how to put potion effects on a piece of armor, in this case a helmet. How do I put potion effects  permanently when I wear the helmet and then when I take off my helmet the effects stop ?
Thanks for your time!

Edited by Kiko07 on Sun, 07/14/2019 - 18:44
Last seen on 17:12, 27. Mar 2020
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You just have to make a…
Mon, 08/05/2019 - 15:40

You just have to make a procedure that tests for whether a certain piece of armor is in its slot, then if true then add potion effect duration 0 or 1. Then the potion effect will be given when armor on, but when taken off, will almost immediately run out.

Last seen on 21:26, 24. Feb 2021
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks, could you send me a…
Wed, 08/28/2019 - 17:22

Thanks, could you send me a picture please?