tag @s[nbt={pickup:0b}] add TagLightingEvent
execute as @s[tag=TagLightingEvent] run tag @s[nbt={custom_potion_effects:[{id:"minecraft:hero_of_the_village"}]}] remove TagLightingEvent
tag @s[tag=DoNotLightning] remove TagLightingEvent
execute as @s[tag=TagLightingEvent] run function zzzzdonotuse:randomevent/thunderstruck/summonlightningstand
