Clears specific effect when full armor is worn

Started by GoldenDarius on

Topic category: Advanced modding

Last seen on 15:43, 4. Dec 2020
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Clears specific effect when full armor is worn

I want this custom armor to remove specific effects from any player that wears it. I tried making the procedure, but it gave me an error. I will leave an image down here, i would like to know what i did wrong

the procedure i made and the error it gave me

Last seen on 00:03, 27. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this procedure should work…
Sat, 11/21/2020 - 05:38

this procedure should work only when the player has the effect but you will get errors if the player does not have the effect because you are trying to remove something that does not exist.

have an if statement check if the player has the effect that should fix the problem you have.

Last seen on 15:43, 4. Dec 2020
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh i see, i cant believe i…
Sat, 11/21/2020 - 07:23

oh i see, i cant believe i didnt think about that. thanks

Last seen on 15:43, 4. Dec 2020
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
One last thing. I am still…
Sat, 11/21/2020 - 07:46

One last thing. I am still kinda new to procedures, where do i find a procedure that checks if entity has a specific effect?