Check for certain armor equipped not working. [FIXED]

Started by CharlyMan on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined May 2022
Points:
462

User statistics:

  • Modifications: 1
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 70
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
Active 2 years ago
Joined May 2022
Points:
462

User statistics:

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

Active 2 years ago
Joined Aug 2022
Points:
306

User statistics:

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

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

Active 2 years ago
Joined May 2022
Points:
462

User statistics:

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

No problem