scoreboard players add @s ramtp 1

execute if predicate aop1:ran1 run tp @s[scores={ramtp=..10},tag=!stay] ^ ^ ^3.7
execute if predicate aop1:ran1 run tp @s[scores={ramtp=..10},tag=!stay] ^ ^ ^-3.7
execute if predicate aop1:ran1 run tp @s[scores={ramtp=..10},tag=!stay] ^3.7 ^ ^
execute if predicate aop1:ran1 run tp @s[scores={ramtp=..10},tag=!stay] ^-3.7 ^ ^






execute unless block ~ ~ ~ #aop1:air run tp @s[scores={ramtp=..10}] ^ ^2 ^

execute unless block ~ ~ ~ #aop1:air unless block ~ ~3 ~ #aop1:air run tp @s[scores={ramtp=..10}] @p
execute if block ~ ~-1 ~ #aop1:air run tp @s ~ ~-1 ~
execute unless block ~ ~-1 ~ #aop1:air run tag @s add gr
execute if block ~ ~-0.3 ~ #aop1:air run tp @s[tag=gr] ~ ~-0.3 ~

execute at @s[scores={ramtp=10..}] unless block ~ ~-0.9 ~ dirt unless block ~ ~-0.9 ~ #aop1:air unless block ~ ~-0.9 ~ stone unless block ~ ~-0.9 ~ sand unless block ~ ~-0.9 ~ water run tag @s add p

execute at @s[scores={ramtp=10..}] unless block ~ ~-0.9 ~ #aop1:air unless block ~ ~-0.9 ~ stone unless block ~ ~-0.9 ~ sand unless block ~ ~-0.9 ~ water run particle item grass_block ~ ~ ~ 0.4 0.3 0.4 0.05 10 force
execute at @s[scores={ramtp=10..},tag=!p] unless block ~ ~-0.9 ~ #aop1:air unless block ~ ~-0.9 ~ dirt unless block ~ ~-0.9 ~ sand unless block ~ ~-0.9 ~ water run particle item stone ~ ~ ~ 0.4 0.3 0.4 0.05 10 force
execute at @s[scores={ramtp=10..},tag=!p] unless block ~ ~-0.9 ~ #aop1:air unless block ~ ~-0.9 ~ dirt unless block ~ ~-0.9 ~ stone unless block ~ ~-0.9 ~ water run particle item sand ~ ~ ~ 0.4 0.3 0.4 0.05 10 force
execute at @s[scores={ramtp=10..},tag=!p] unless block ~ ~-0.9 ~ #aop1:air unless block ~ ~-0.9 ~ dirt unless block ~ ~-0.9 ~ stone unless block ~ ~-0.9 ~ sand run particle falling_water ~ ~ ~ 0.4 0.3 0.4 0.05 10 force


execute at @s[scores={ramtp=10..70}] run playsound block.rooted_dirt.break voice @a ~ ~ ~ 0.3 0.6

execute at @s[scores={ramtp=70}] run playsound block.rooted_dirt.break voice @a ~ ~ ~ 1 0.5






#######################################
#execute if predicate aop1:ran67 run scoreboard players add @s[scores={ramtp=..70}] summonwhat 1
#execute if predicate aop1:ran67 run scoreboard players add @s[scores={ramtp=..70}] summonwhat 1
#execute if predicate aop1:ran67 run scoreboard players add @s[scores={ramtp=..70}] summonwhat 1
#execute if predicate aop1:ran67 run scoreboard players add @s[scores={ramtp=..70}] summonwhat 1
#
#execute if predicate aop1:ran67 run scoreboard players add @e[type=area_effect_cloud,scores={ramtp=..70},name=summonmob,limit=1,sort=random,distance=..30] summonwhat 1
#
#execute at @s[scores={ramtp=70..,summonwhat=..230}] run summon zombie ~ ~-1.5 ~ {Tags:[mob]}
#execute at @s[scores={ramtp=70..,summonwhat=231..235}] run summon skeleton ~ ~-1.5 ~ {Tags:[mob]}
#execute at @s[scores={ramtp=70..,summonwhat=236..240}] run summon creeper ~ ~-1.5 ~ {Tags:[mob]}
#execute at @s[scores={ramtp=70..,summonwhat=241..245}] run summon spider ~ ~-1.5 ~ {Tags:[mob]}
#execute at @s[scores={ramtp=70..,summonwhat=246..250}] run summon husk ~ ~-1.5 ~ {Tags:[mob]}
#execute at @s[scores={ramtp=70..,summonwhat=251..255}] run summon husk ~ ~-1.5 ~ {Tags:[mob]}
#
##execute at @s[scores={ramtp=70..,summonwhat=260..}] run summon zombie ~ ~-1.5 ~ {Tags:[mob]}


###################################################

execute at @s[scores={ramtp=69}] run summon area_effect_cloud ^ ^ ^ {Duration:1200,PersistenceRequired:1,CustomName:"\"summonmob00\"",Silent:1,NoAI:1,Invisible:1b,NoBasePlate:1b,NoGravity:1b,Tags:["00","mob999"]}
execute at @s[scores={ramtp=69}] run summon area_effect_cloud ^ ^ ^ {Duration:1200,PersistenceRequired:1,CustomName:"\"summonmob00\"",Silent:1,NoAI:1,Invisible:1b,NoBasePlate:1b,NoGravity:1b,Tags:["001","mob999"]}
execute at @s[scores={ramtp=69}] run summon area_effect_cloud ^ ^ ^ {Duration:1200,PersistenceRequired:1,CustomName:"\"summonmob00\"",Silent:1,NoAI:1,Invisible:1b,NoBasePlate:1b,NoGravity:1b,Tags:["002","mob999"]}
execute at @s[scores={ramtp=69}] run summon area_effect_cloud ^ ^ ^ {Duration:1200,PersistenceRequired:1,CustomName:"\"summonmob00\"",Silent:1,NoAI:1,Invisible:1b,NoBasePlate:1b,NoGravity:1b,Tags:["003","mob999"]}
execute at @s[scores={ramtp=69}] run summon area_effect_cloud ^ ^ ^ {Duration:1200,PersistenceRequired:1,CustomName:"\"summonmob00\"",Silent:1,NoAI:1,Invisible:1b,NoBasePlate:1b,NoGravity:1b,Tags:["004","mob999"]}
execute at @s[scores={ramtp=69}] run summon area_effect_cloud ^ ^ ^ {Duration:1200,PersistenceRequired:1,CustomName:"\"summonmob00\"",Silent:1,NoAI:1,Invisible:1b,NoBasePlate:1b,NoGravity:1b,Tags:["005","mob999"]}
execute at @s[scores={ramtp=69}] run summon area_effect_cloud ^ ^ ^ {Duration:1200,PersistenceRequired:1,CustomName:"\"summonmob00\"",Silent:1,NoAI:1,Invisible:1b,NoBasePlate:1b,NoGravity:1b,Tags:["006","mob999"]}
execute at @s[scores={ramtp=69}] run summon area_effect_cloud ^ ^ ^ {Duration:1200,PersistenceRequired:1,CustomName:"\"summonmob00\"",Silent:1,NoAI:1,Invisible:1b,NoBasePlate:1b,NoGravity:1b,Tags:["007","mob999"]}
execute at @s[scores={ramtp=69}] run summon area_effect_cloud ^ ^ ^ {Duration:1200,PersistenceRequired:1,CustomName:"\"summonmob00\"",Silent:1,NoAI:1,Invisible:1b,NoBasePlate:1b,NoGravity:1b,Tags:["008","mob999"]}
execute at @s[scores={ramtp=69}] run summon area_effect_cloud ^ ^ ^ {Duration:1200,PersistenceRequired:1,CustomName:"\"summonmob00\"",Silent:1,NoAI:1,Invisible:1b,NoBasePlate:1b,NoGravity:1b,Tags:["009","mob999"]}
execute at @s[scores={ramtp=69}] run summon area_effect_cloud ^ ^ ^ {Duration:1200,PersistenceRequired:1,CustomName:"\"summonmob00\"",Silent:1,NoAI:1,Invisible:1b,NoBasePlate:1b,NoGravity:1b,Tags:["0010","mob999"]}



execute at @s[scores={ramtp=69},tag=!sum9991] run tag @e[tag=mob999,distance=..1.5,sort=random,limit=1] add sum999

execute at @s[scores={ramtp=70..}] run kill @s