how do i make armor resistant to effects?

Started by Ello.-'_@ on

Topic category: Help with modding (Java Edition)

Last seen on 23:15, 7. Jan 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do i make armor resistant to effects?

how do i make armor resistant to effects, like poison? i am making a mod with element dimensions, like poison, but how do i make armor that is resistant to poison?

Last seen on 05:50, 2. Jun 2023
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On armor tick: If entity has…
Tue, 07/21/2020 - 05:48

On armor tick:

If entity has effect: poison

Execute command /effect clear @e minecraft:poison

Last seen on 23:15, 7. Jan 2023
Joined Oct 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks a lot! 
Wed, 07/22/2020 - 23:30

Thanks a lot! 

Last seen on 16:44, 2. Mar 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wouldn't that clear all of…
Wed, 09/07/2022 - 13:53

Wouldn't that clear all of the entities poison effects?, for example if 2 players have it and it executes the command /effect clear @e minecraft:poison

And yes i awknowledge that you meant that for a singleplayer world but if it's in multiplayer it'd be like

On armor tick:

If entity has effect: poison

remove specific effect poison from entity