Help with armor and potion effect

Started by giz_Apex on

Topic category: Help with modding (Java Edition)

Last seen on 12:14, 10. Jan 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with armor and potion effect

Hello,

I've created a new potion effect (bad for the player) on Mcreator and a new armor as well and I'd like to know how can I make my armor immune to this effect with a procedure ?

I tried with the bloc Execute command /"effect clear @p [my effect]" in the name of Event/target entity that i see in an other topic without success...

Thank you !

giz_Apex

Last seen on 13:56, 19. Dec 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make a procedure. Then make…
Wed, 07/27/2022 - 19:38

Make a procedure. Then make an if statement with "has _ active potion:" procedure block. In the do section(of the if statement) put the "Remove specific potion effect from _ type" block. (The underscore is just where the "event/target entity" block goes). Make sure to select your effect in both blocks. Lastly make sure you put this on your armor triggers, however you want.

Last seen on 12:14, 10. Jan 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It works thank you ! 
Thu, 07/28/2022 - 12:50

It works thank you !