scoreboard players set @e[name=DayQ,type=armor_stand] KyuSinkholeNum 0
execute as @e[type=marker,name=BUQ] run scoreboard players add @e[type=armor_stand,name=DayQ] KyuSinkholeNum 1
tag @e[tag=K,type=zombie] add BUQ
tag @e[tag=K,type=skeleton] add BUQ
tag @e[tag=K,type=creeper] add BUQ
tag @e[tag=K,type=spider] add BUQ
execute as @a[tag=K] run execute at @s run function zzzzdonotuse:randomevent/sinkholechecknumber
execute at @e[name=SafeSpot] run kill @e[distance=..25,name=BUQ]
execute at @e[type=villager] run kill @e[distance=..25,name=BUQ]
execute at @e[type=player] run kill @e[distance=..25,name=BUQ]
execute as @a[tag=K,nbt=!{Dimension:"minecraft:overworld"}] run execute at @s run kill @e[type=minecraft:marker,name=BUQ,distance=..250]

tellraw @a[team=P] ["",{"text":"The ground in nearby areas has become unstable!","color":"dark_red","italic":true}]