execute if data block ~ ~-.5 ~ {MaxSpawnDelay:800s} run tag @s add used
execute if data block ~ ~-.5 ~ {MaxSpawnDelay:400s} run tag @s add used
execute if data block ~ ~-.5 ~ {MaxSpawnDelay:200s} run tag @s add used

execute if data block ~ ~-.5 ~ {MaxSpawnDelay:200s} run data modify block ~ ~-.5 ~ MaxSpawnDelay set value 120s
execute if data block ~ ~-.5 ~ {MinSpawnDelay:50s} run data modify block ~ ~-.5 ~ MinSpawnDelay set value 30s

execute if data block ~ ~-.5 ~ {MaxSpawnDelay:400s} run data modify block ~ ~-.5 ~ MaxSpawnDelay set value 200s
execute if data block ~ ~-.5 ~ {MinSpawnDelay:100s} run data modify block ~ ~-.5 ~ MinSpawnDelay set value 50s

execute if data block ~ ~-.5 ~ {MaxSpawnDelay:800s} run data modify block ~ ~-.5 ~ MaxSpawnDelay set value 400s
execute if data block ~ ~-.5 ~ {MinSpawnDelay:200s} run data modify block ~ ~-.5 ~ MinSpawnDelay set value 100s

execute if entity @s[tag=used] unless data block ~ ~-.5 ~ {MinSpawnDelay:30s} align xyz run particle small_flame ~.5 ~-.5 ~.5 0 0 0 .1 20
execute if entity @s[tag=used] if data block ~ ~-.5 ~ {MinSpawnDelay:30s} align xyz run particle minecraft:soul_fire_flame ~.5 ~-.5 ~.5 0 0 0 .1 20
execute if entity @s[tag=used] run playsound minecraft:block.vault.eject_item block @a ~ ~ ~ 1 .8
execute if entity @s[tag=used] run kill @s