I'm doing an armor that if you get struck by lightning wearing it

Started by Patricio1104 on

Topic category: Help with MCreator software

Last seen on 15:23, 4. Aug 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm doing an armor that if you get struck by lightning wearing it
Fri, 04/30/2021 - 17:18 (edited)

I'm trying to make an armor that if you get struck with lightning while wearing it you get effects but i can't find any procedures block for that

I found that on the Event trigger - triggered by external call you can select "Entity struck by lighting" but that's basically it

If you know any procedure blocks for that please help

Edited by Patricio1104 on Fri, 04/30/2021 - 17:18
Last seen on 00:59, 19. Oct 2022
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is possible, create a…
Sat, 05/01/2021 - 23:52

is possible, create a procedure that is not linked to anything, in the global trigger select "Entity struck by lightning".
https://imgur.com/a/c50vK6g
now use "if" and use the procedure "is event entity (sub)type of "
and select PlayerMP
Now add the procedure "get item from armor slot " and compare it as shown in the picture
0 = boots
1 = leggins
2 = chestplate
3 = helmet
https://imgur.com/a/ncp3qnA
now join all the conditions with "and".
it's in the "logic" tab is the blue option where the "=" sign is shown
you can change that equal to "and".
https://imgur.com/a/EIOmWPk
Now that you set all the conditions, put what you want to perform
for example a potion effect

 

 
Last seen on 15:23, 4. Aug 2022
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wow, thank you so much,…
Sat, 10/30/2021 - 09:35

Wow, thank you so much, sorry for not seeing it earlier.