Clear certain effect from the player while keeping all others

Started by UltroGmr on

Topic category: Help with modding (Java Edition)

Last seen on 02:21, 30. Jul 2023
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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:50, 6. Apr 2024
Joined Jun 2015
Points:

User statistics:

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