scoreboard players add @s svm_ep.lifetime 1
execute at @s[scores={svm_ep.lifetime=1}] positioned ~ ~ ~ run function svm_ep:power/slime/spit/place_slime_block

execute at @s[scores={svm_ep.lifetime=5}] positioned ~1 ~ ~ run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=5}] positioned ~-1 ~ ~ run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=5}] positioned ~ ~1 ~ run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=5}] positioned ~ ~-1 ~ run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=5}] positioned ~ ~ ~1 run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=5}] positioned ~ ~ ~-1 run function svm_ep:power/slime/spit/place_slime_block


execute at @s[scores={svm_ep.lifetime=9..}] if predicate svm_ep:chance/25_percent positioned ~1 ~ ~1 run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=9..}] if predicate svm_ep:chance/25_percent positioned ~1 ~ ~-1 run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=9..}] if predicate svm_ep:chance/25_percent positioned ~-1 ~ ~1 run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=9..}] if predicate svm_ep:chance/25_percent positioned ~-1 ~ ~-1 run function svm_ep:power/slime/spit/place_slime_block

execute at @s[scores={svm_ep.lifetime=9..}] if predicate svm_ep:chance/25_percent positioned ~1 ~1 ~ run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=9..}] if predicate svm_ep:chance/25_percent positioned ~1 ~-1 ~ run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=9..}] if predicate svm_ep:chance/25_percent positioned ~-1 ~1 ~ run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=9..}] if predicate svm_ep:chance/25_percent positioned ~-1 ~-1 ~ run function svm_ep:power/slime/spit/place_slime_block

execute at @s[scores={svm_ep.lifetime=9..}] if predicate svm_ep:chance/25_percent positioned ~ ~1 ~1 run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=9..}] if predicate svm_ep:chance/25_percent positioned ~ ~1 ~-1 run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=9..}] if predicate svm_ep:chance/25_percent positioned ~ ~-1 ~1 run function svm_ep:power/slime/spit/place_slime_block
execute at @s[scores={svm_ep.lifetime=9..}] if predicate svm_ep:chance/25_percent positioned ~ ~-1 ~-1 run function svm_ep:power/slime/spit/place_slime_block


execute as @e[type=!#svm_ep:technical,dx=2] if predicate svm_ep:chance/25_percent at @s positioned ~ ~1 ~ run function svm_ep:power/slime/spit/place_slime_block
execute as @e[type=!#svm_ep:technical,dx=2] if predicate svm_ep:chance/25_percent at @s positioned ~ ~ ~ run function svm_ep:power/slime/spit/place_slime_block
execute as @e[type=!#svm_ep:technical,dx=2] if predicate svm_ep:chance/25_percent at @s positioned ~ ~-1 ~ run function svm_ep:power/slime/spit/place_slime_block
execute as @e[type=!#svm_ep:technical,dx=2] if predicate svm_ep:chance/25_percent at @s positioned ~1 ~-1 ~1 run function svm_ep:power/slime/spit/place_slime_block
execute as @e[type=!#svm_ep:technical,dx=2] if predicate svm_ep:chance/25_percent at @s positioned ~1 ~-1 ~-1 run function svm_ep:power/slime/spit/place_slime_block
execute as @e[type=!#svm_ep:technical,dx=2] if predicate svm_ep:chance/25_percent at @s positioned ~-1 ~-1 ~1 run function svm_ep:power/slime/spit/place_slime_block
execute as @e[type=!#svm_ep:technical,dx=2] if predicate svm_ep:chance/25_percent at @s positioned ~-1 ~-1 ~-1 run function svm_ep:power/slime/spit/place_slime_block

execute as @e[type=!#svm_ep:technical,dx=2] if predicate svm_ep:chance/25_percent at @s positioned ~1 ~-1 ~ run function svm_ep:power/slime/spit/place_slime_block
execute as @e[type=!#svm_ep:technical,dx=2] if predicate svm_ep:chance/25_percent at @s positioned ~ ~-1 ~1 run function svm_ep:power/slime/spit/place_slime_block

execute as @e[type=!#svm_ep:technical,dx=2] if predicate svm_ep:chance/25_percent at @s positioned ~-1 ~-1 ~ run function svm_ep:power/slime/spit/place_slime_block
execute as @e[type=!#svm_ep:technical,dx=2] if predicate svm_ep:chance/25_percent at @s positioned ~ ~-1 ~-1 run function svm_ep:power/slime/spit/place_slime_block


execute at @s run particle minecraft:item{item:slime_ball} ~ ~0.5 ~ 1 1 1 0.15 10
execute at @s run playsound minecraft:entity.slime.squish_small master @a[distance=..20] ~ ~1 ~ 1 0.7
kill @s[scores={svm_ep.lifetime=13..}]