Mojira Archive
MC-201982

Lightning bolts get saved to chunk

Since selectors can target lightning bolts, they get saved to chunks.
If you use this command setup for a while, and then shut it down and load some chunks, lightning will load in in the newly loaded chunks, looking very odd with the constant flashing of the sky.

summon minecraft:area_effect_cloud ~ ~ ~ {Tags:["lightning"],Duration:1}
spreadplayers ~ ~ 1 300 false @e[tag=lightning,type=minecraft:area_effect_cloud,limit=1]
execute at @e[tag=lightning,type=minecraft:area_effect_cloud,limit=1] run summon minecraft:lightning_bolt ~ ~ ~

Do note, that this setup is only a way to trigger it on demand; it can happen with natural lightning strikes too, just much more hard to do so.

Unresolved

user-f2760

2020-10-12, 06:23 PM

2023-10-28, 11:56 AM

8

5

Community Consensus

Entities

1.16.3 - 23w43b1.16.3, 1.16.4, 20w51a, 21w03a, 1.16.5, 21w13a, 1.17.1, 1.18.1, 1.19.2, 22w43a, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b

-