particle minecraft:snowflake ~ ~ ~ 0.1 0.1 0.1 0 2

scoreboard players add @s vb.timer.boss_attack 1
execute if entity @s[nbt={inGround:1b}] run scoreboard players add @s vb.timer.boss_attack 20
execute if entity @s[nbt={inGround:1b}] store result score @s vb.dummy1 run random value 1..100
execute if entity @s[nbt={inGround:1b}] if score @s vb.dummy1 matches 1 run summon lightning_bolt
execute if entity @s[nbt={inGround:1b}] if score @s vb.dummy1 matches 1 run kill @s
execute if score @s vb.timer.boss_attack matches 300.. run kill @s