execute at @p[tag=setp] unless entity @e[tag=set] run playsound minecraft:template6 master @p[tag=setp] ~ ~ ~
execute at @p[tag=setp] unless entity @e[tag=set] run summon minecraft:text_display ^-1 ^2 ^ {Tags:["custom_font"],background:0,billboard:"center",text:'\uE000'}
execute at @p[tag=setp] unless entity @e[tag=set] run summon minecraft:text_display ^-0.6 ^1.8 ^ {Tags:["custom_font"],background:0,billboard:"center",text:'\uE000'}
execute as @e[tag=custom_font] at @s run tp @s ~ ~0.02 ~
schedule function template:kill_menacing 15t append
execute at @p[tag=setp] unless entity @e[tag=set] run particle dust{color:[1.1,1.1,1.1],scale:2} ~ ~1 ~ 0.5 0.5 0.5 0 30 normal
execute at @p[tag=setp] unless entity @e[tag=set] run function template:sethan/summon {args:{}}
execute at @e[tag=set] run attribute @e[distance=..3,limit=1,sort=nearest,tag=!setp,tag=!set] minecraft:scale base set 0.5
execute at @e[tag=set] run attribute @e[distance=..3,limit=1,sort=nearest,tag=!setp,tag=!set] minecraft:max_health base set 10
execute at @e[tag=set] run attribute @e[distance=..3,limit=1,sort=nearest,tag=!setp,tag=!set] minecraft:attack_damage base set 0.5
clear @p[distance=..3,limit=1,sort=nearest] minecraft:slime_ball[minecraft:custom_data={hg:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:breeze_rod[minecraft:custom_data={sc:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:nether_star[minecraft:custom_data={sp:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:magma_cream[minecraft:custom_data={sun:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:heart_of_the_sea[minecraft:custom_data={dbm:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:blaze_powder[minecraft:custom_data={mr:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:gray_dye[minecraft:custom_data={tog:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:book[minecraft:custom_data={tohth:true}]
execute at @e[tag=set] run effect give @e[distance=..3,limit=1,sort=nearest,tag=!setp,tag=!set] slowness infinite 1 true
execute at @e[tag=set] run effect give @e[distance=..3,limit=1,sort=nearest,tag=!setp,tag=!set] mining_fatigue infinite 1 true
schedule function template:sethan/stand_remove 10t
schedule function template:sethan/stand_remove 10t