giving status effect using armor

Started by tryunt on

Topic category: Help with Minecraft modding (Java Edition)

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!

 

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.