mojira.dev
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.

Comments 1

Can confirm. Also affects 20w51a.

user-f2760

(Unassigned)

Community Consensus

Entities

1.16.3, 1.16.4, 20w51a, 21w03a, 1.16.5, ..., 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43b

Retrieved