[TUTORIAL] How to Give an Armor Set a Potion Effect

Started by SilentStarling on Sat, 02/06/2021 - 00:29

Topic category: User side tutorials

Last seen on 14:31, 4. Jul 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
[TUTORIAL] How to Give an Armor Set a Potion Effect
Sat, 02/06/2021 - 00:29

Hi there, I've been seeing a lot of people ask for how to do this but I never saw an actual procedure solution posted anywhere so I wanted to throw this on here. It might not be the most "efficient" solution coding-wise, but it worked for me as intended and is easy to follow.

If you want a potion effect to trigger ONLY when a FULL armor set is equipped, you need the mod to check each armor slot before telling it to use a potion effect. So I used cascading if-else statements. Basically it says "if helmet slot = this helmet, AND chestplate slot = chestplate, AND legging slot = leggings, AND boots slot = boots, THEN add potion effect". For the armor slots, 3 is helmet, 2 is chestplate, 1 is leggings, and 0 is boots. So if you wanted only a leggings-boots combo to make you jump high, then you would do this procedure with slot 1 and slot 0 only. Hope this helps!

 

Last seen on 14:31, 4. Jul 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(No subject)
Sat, 02/06/2021 - 00:30

Last seen on 14:31, 4. Jul 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(No subject)
Sat, 02/06/2021 - 00:33

Last seen on 14:31, 4. Jul 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I can't seem to get this…
Sat, 02/06/2021 - 00:34

I can't seem to get this image to post no matter what I do, sorry, feel free to delete

Last seen on 14:31, 4. Jul 2022
Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(No subject)
Sat, 02/06/2021 - 00:36

"Armor Set Potion Procedure"

Last seen on 18:41, 11. Mar 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
thank you so much
Thu, 02/10/2022 - 19:39

thank you so much

Last seen on 04:04, 3. Jun 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
what if the armor set is…
Thu, 04/07/2022 - 05:34

what if the armor set is only 3 pieces  

Last seen on 20:30, 13. Apr 2022
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
This didn't work for me am I…
Tue, 04/12/2022 - 23:56

This didn't work for me am I supposed to add it to a tick event

Last seen on 14:49, 6. Jul 2022
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
This Procedure seems too…
Wed, 04/13/2022 - 00:41

This Procedure seems too weird and doesn't seem to work like how it should.

I found this tutorial here, it has a much simpler procedure and only works if all armor pieces are equiped:

https://www.youtube.com/watch?v=6TbDz8rPtGU

Last seen on 20:30, 13. Apr 2022
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I found the problem i had to…
Wed, 04/13/2022 - 00:51

I found the problem i had to add the procedure to all the tick events