Clears specific effect when full armor is worn

Started by GoldenDarius on Fri, 11/20/2020 - 23:13

Topic category: Advanced modding

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Clears specific effect when full armor is worn
Fri, 11/20/2020 - 23:13

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 21:51, 20. Aug 2021
Joined Jul 2020
Points:

User statistics:

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