Help with armor and potion effect

Started by giz_Apex on Wed, 07/27/2022 - 19:15

Topic category: Help with modding (Java Edition)

Last seen on 17:46, 10. Sep 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help with armor and potion effect
Wed, 07/27/2022 - 19:15

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 22:06, 3. Oct 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 17:46, 10. Sep 2022
Joined Apr 2020
Points:

User statistics:

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

It works thank you !