giving status effect using armor

Started by tryunt on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 month ago
Joined Apr 2021
Points:
603

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
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!

 

Active 3 years ago
Joined Jul 2020
Points:
671

User statistics:

  • Modifications: 1
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 15
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.

Active 3 years ago
Joined Jul 2020
Points:
671

User statistics:

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

My Code :)