execute as @e[tag=gbody] at @s positioned ~ ~10 ~ unless entity @e[dx=0,tag=gbrain] run kill @s
execute as @e[tag=gbrain] at @s positioned ~ ~-9 ~ unless entity @e[dx=0,tag=gbody] run kill @s
execute as @e[tag=gbrain] at @s positioned ~ ~-9 ~ if entity @e[dx=0,tag=gbody,nbt={HurtTime:10s}] run damage @s .0000001 player_attack
execute as @e[tag=gbody] at @s if entity @e[type=player,distance=..3.5,gamemode=!creative,gamemode=!spectator] if score @s timer matches 0 run function survivalplus:tools/armor/giantstomp
execute as @e[tag=gbody,scores={timer=1..}] run scoreboard players remove @s timer 1
execute as @e[tag=gbody] unless data entity @s {Motion:[0d,0d,0d]} run scoreboard players add @s time 1
execute at @e[tag=gbody,scores={time=8}] run playsound minecraft:entity.zombie.step hostile @a ~ ~ ~ 1 .7
execute as @e[tag=gbody,scores={time=8..}] run scoreboard players reset @s time