Check for certain armor equipped not working. [FIXED]

Started by CharlyMan on

Topic category: Help with modding (Java Edition)

Last seen on 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Check for certain armor equipped not working. [FIXED]
Sun, 05/08/2022 - 16:38 (edited)

I am trying to make an armor set where if you if you have certain armor equipped it will remove a potion effect and deal damage to the armor.

Here what I have now, but it's not working:

If] [Get item from armor slot [3] of [Event/target entity] = Helmet] [AND] [Get item from armor slot [2] of [Event/target entity] = Chestplate] [AND] [Get item from armor slot [1] of [Event/target entity] = Leggings] [AND] [Get item from armor slot [0] of [Event/target entity] = Boots]

Do] [Remove specific potion effect from [Event/target entity] type [Custom Effect]]

[Deal [1] damage to [Provided itemstack]]

Also this procedure is put on tick event for all the armor pieces.

Edited by CharlyMan on Sun, 05/08/2022 - 16:38
Last seen on 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Nevermind, I found out that…
Sun, 05/08/2022 - 16:38

Nevermind, I found out that my boots were set on slot 1 instead of 0. All I need to do now is adjust the tick speed so the armor durability doesn't keep going down like crazy.

Last seen on 01:33, 31. Oct 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Man I'm sorry nobody…
Wed, 09/28/2022 - 04:21

Man I'm sorry nobody responded to you but THANK YOU SO MUCH

Last seen on 04:08, 14. Dec 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem
Sun, 10/02/2022 - 07:01

No problem