tag @s add exclude
execute at @s if block ~ ~-.1 ~ #mineable/pickaxe run particle block{block_state:{Name:stone}} ~ ~ ~ 1.5 0 1.5 0 100
execute at @s if block ~ ~-.1 ~ #mineable/shovel run particle block{block_state:{Name:dirt}} ~ ~ ~ 1.5 0 1.5 0 100
execute at @s if block ~ ~-.1 ~ #mineable/axe run particle block{block_state:{Name:oak_planks}} ~ ~ ~ 1.5 0 1.5 0 100
execute at @s if block ~ ~-.1 ~ #mineable/hoe run particle block{block_state:{Name:moss_block}} ~ ~ ~ 1.5 0 1.5 0 100
execute at @s unless block ~ ~-.1 ~ #mineable/pickaxe unless block ~ ~-.1 ~ #mineable/shovel unless block ~ ~-.1 ~ #mineable/axe unless block ~ ~-.1 ~ #mineable/hoe run particle block{block_state:{Name:glass}} ~ ~ ~ 1.5 0 1.5 0 100
#execute at @s run function particle macro
execute at @s as @e[distance=..4,type=!#survivalplus:notalive,tag=!exclude] run damage @s 10 player_attack by @e[tag=exclude,limit=1]
effect give @e[distance=..4,type=!#survivalplus:notalive,tag=!exclude] slowness 1 2 true
playsound minecraft:item.mace.smash_ground player @a ~ ~ ~ .8 1.1
playsound minecraft:entity.piglin_brute.step player @a ~ ~ ~ 1 0
tag @s remove exclude
advancement revoke @s only survivalplus:tools/armor/giantstomp

execute if entity @s[type=giant] run scoreboard players set @s timer 20