Lightning strike procedure help

Started by Dasen on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 day ago
Joined Apr 2023
Points:
234

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
Lightning strike procedure help

I want to make an item that makes it so that when used it strikes lightning on all players around you but yourself. I have the item texture and everything but the I am having trouble with the procedure itself. If anyone has an idea on how to help me out I would appreciate it.

Active 1 year ago
Joined Nov 2022
Points:
337

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 93
For each player in the…
Mon, 08/28/2023 - 00:33

For each player in the current world as (Entity iterator)

- if (not (Entity iterator == Event/target entity))

- - Strike lightning at (X position of (Entity iterator)) (Y position of (Entity iterator)) (Z position of (Entity iterator))

Active 1 day ago
Joined Apr 2023
Points:
234

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
I had to test with a friend…
Mon, 08/28/2023 - 01:07

I had to test with a friend and it worked! thank you so much.

Active 9 hours ago
Joined Feb 2025
Points:
18

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 5
you can use a single command…
Mon, 02/17/2025 - 13:35

you can use a single command for this instead the command is:

/execute as @e[distance=1..100] run summon minecraft:lightning_bolt

just up the 100 to whatever distance you want