Check for certain armor equipped not working. [FIXED]

Started by CharlyMan on Sun, 05/08/2022 - 16:20

Topic category: Help with modding (Java Edition)

Last seen on 17:27, 29. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 17:27, 29. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.