How to strike Lightning on all mobs?

Started by Loic_MaitreDuFeu on

Topic category: Advanced modding

Active 3 years ago
Joined May 2018
Points:
1343

User statistics:

  • Modifications: 4
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1069
How to strike Lightning on all mobs?

Someone know a Procedure or command/function to strike lightning on all entities around? I need this for my mod

Active 6 years ago
Joined Aug 2018
Points:
688

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
I'm not going to lie and say…
Thu, 11/01/2018 - 18:40

I'm not going to lie and say I know that specific kind of procedure, but I do know an alternative for striking an area around the player on right click with an item in hand. If this will help you, you can find me at (link sends email)James666buck@gmail.com

Active 3 years ago
Joined May 2018
Points:
1343

User statistics:

  • Modifications: 4
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1069
You can send an Image on the…
Thu, 11/01/2018 - 19:06

You can send an Image on the forum to see the procedure?

Active 6 years ago
Joined Aug 2018
Points:
688

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
I can't, that's why I used…
Thu, 11/01/2018 - 19:35

I can't, that's why I used my email. With it I can send attachmets from my phone

Active 3 years ago
Joined May 2018
Points:
1343

User statistics:

  • Modifications: 4
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1069
Ok i will give you my mail…
Thu, 11/01/2018 - 19:39

Ok i will give you my mail tomorrow

Active 5 years ago
Joined Apr 2020
Points:
641

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
Can you send a picture of…
Fri, 04/10/2020 - 17:57

Can you send a picture of the solution that you found to this please?

 

Active 4 years ago
Joined May 2020
Points:
665

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 66
you can use the command …
Fri, 06/12/2020 - 02:25

you can use the command

/execute at @p run execute at @e[distance=distance entity needs to be away from player] run summon minecraft:lightning ~ ~ ~

that should work :)

Active 3 years ago
Joined May 2018
Points:
1343

User statistics:

  • Modifications: 4
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1069
nice
Sun, 06/14/2020 - 11:36

nice

Active 3 years ago
Joined May 2018
Points:
1343

User statistics:

  • Modifications: 4
  • Forum topics: 17
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1069
the distance doesn't work
Sun, 06/14/2020 - 13:00

the distance doesn't work

Active 1 month ago
Joined May 2019
Points:
1216

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 2
  • MCreator plugins: 1
  • Comments: 839
it should be distnace[2…
Sun, 06/14/2020 - 14:21

it should be distnace[2..whatever your max distance is]

StarLander5772 = only finds the enitity exactly this distance away.

Active 4 years ago
Joined May 2020
Points:
665

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 66
Oh really? woops, well at…
Thu, 06/18/2020 - 03:29

Oh really?

woops, well at least now I know how to do it!

Active 1 week ago
Joined Feb 2018
Points:
2015

User statistics:

  • Modifications: 1
  • Forum topics: 166
  • Wiki pages: 0
  • MCreator plugins: 3
  • Comments: 795
The Image is not going to…
Sat, 03/25/2023 - 21:53

The Image is not going to work properly.

You need to check that the Entity Iterator should not be the Player.

Active 9 months ago
Joined Aug 2020
Points:
715

User statistics:

  • Modifications: 0
  • Forum topics: 18
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
how could I check if the…
Tue, 11/14/2023 - 19:59

how could I check if the entity iterator is not a player?