#Scores
scoreboard players add @e[tag=!detected] Success 0
execute @e[tag=!detected] ~ ~ ~ stats entity @s set SuccessCount @s Success
scoreboard players tag @e[tag=!detected] add detected
#Functions
execute @r ~ ~ ~ function mctsts:util/area_main

execute @e[tag=blockS] ~ ~ ~ function mctsts:mechanic/block
scoreboard players add @e[tag=block] block 1
kill @e[tag=block,score_block_min=40]
execute @e[tag=block] ~ ~ ~ detect ~ ~ ~ lava -1 kill @s

function mctsts:mechanic/pushing
function mctsts:mechanic/pushing_magma
function mctsts:mechanic/pushing_powerful
function mctsts:mechanic/fly
execute @e[score_starttimer_min=1] ~ ~ ~ function mctsts:starttimer
execute @e[score_starttimere_min=1] ~ ~ ~ function mctsts:starttimere
execute @r[x=-31,y=5,z=-36,r=25] ~ ~ ~ function mctsts:mechanic/canimation