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

Started by Kiko07 on

Topic category: Help with Minecraft modding (Java Edition)

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
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.

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?