scoreboard players add @e[distance=..3,type=marker,tag=ThunderStruckEvent] KyuDummy 1
scoreboard players add @e[distance=..3,type=marker,tag=ThunderStruckEvent] KyuDummy2 1
function zzzzdonotuse:randomevent/thunderstruck/movemobs
execute if entity @e[distance=..3,type=marker,tag=ThunderStruckEvent,scores={KyuDummy=..6000}] run execute as @e[type=arrow,tag=!TagLightingEvent] run execute as @s[nbt={life:0s}] run function zzzzdonotuse:randomevent/thunderstruck/tagarrows
execute as @e[type=armor_stand,tag=LightningStandMove] run execute at @s run function zzzzdonotuse:randomevent/thunderstruck/lightningstandmove

execute if entity @e[distance=..3,type=marker,tag=ThunderStruckEvent,scores={KyuDummy=6400..}] run execute in overworld run data merge block 999982 128 999972 {auto:0b}
execute if entity @e[distance=..3,type=marker,tag=ThunderStruckEvent,scores={KyuDummy=6000}] run tellraw @a[team=P] ["",{"text":"The god of thunder has deemed your suffering satisfying enough for now, and you feel a little bit safer.","color":"gray","italic":true}]
execute if entity @e[distance=..3,type=marker,tag=ThunderStruckEvent,scores={KyuDummy=6400..}] run kill @e[distance=..3,type=marker,tag=ThunderStruckEvent,scores={KyuDummy=6400..}]




execute unless entity @e[distance=..3,type=marker,tag=ThunderStruckEvent] run execute in overworld run data merge block 999982 128 999972 {auto:0b}
