giving status effect using armor

Started by tryunt on

Topic category: Help with modding (Java Edition)

Last seen on 03:47, 31. Mar 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
giving status effect using armor

Hello, I was looking for some help with giving status effect to players while wearing a full armor set.

Any code examples, function examples and tips would be very appreciated!

 

Last seen on 14:30, 14. Jul 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you can make a…
Fri, 04/23/2021 - 17:18

I think you can make a procedure that checks the head, body, pants, and boots slots of the player (head/body/pants/boots tick event) If it sees that all 4 armor slots are want you want, give the status effect for 1 second. It will repeatedly give it to you, and taking a piece of armor off will remove the effect.

Last seen on 14:30, 14. Jul 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Fri, 04/23/2021 - 17:33

My Code :)