Clear certain effect from the player while keeping all others

Started by UltroGmr on Sat, 10/10/2020 - 17:13

Topic category: Help with modding (Java Edition)

Last seen on 19:50, 15. Nov 2020
Joined Apr 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Clear certain effect from the player while keeping all others
Sat, 10/10/2020 - 18:17 (edited)

I'm working on a poison resistant armor for my mod, and I'm making it clear the poison effect from you when you wear the full set, but I can't figure out how to clear a certain potion effect from the player while keeping all the others that the player has. Help!

 

EDIT: nvm i figured it out you have to use the execute command block

Edited by UltroGmr on Sat, 10/10/2020 - 18:17
Last seen on 13:51, 23. Nov 2020
Joined Jun 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There's a procedure block…
Sat, 10/10/2020 - 20:02

There's a procedure block coming in 2020.5 to remove specific potion effect from an entity. If you don't want to wait, seek for ExtraProcedures plugin. The procedure block is in it for 2020.4 and before.