execute at @s if score @s cooldown matches 1 run summon iron_golem ~ ~ ~ {CustomNameVisible:1b,PersistenceRequired:1b,Health:100f,PlayerCreated:1b,AngerTime:0,Tags:["Iron"],CustomName:[{"color":"dark_gray","text":"[Golem] "},{"color":"gray","text":"Iron"}],attributes:[{id:"minecraft:max_health",base:150}]}
execute at @s if score @s cooldown matches 1.. run clear @s minecraft:goat_horn[instrument="minecraft:call_goat_horn"] 1
execute at @s if score @s cooldown matches 1.. run playsound entity.item.break master @s ~ ~ ~ 10 0.9
execute at @s if score @s cooldown matches 1.. run scoreboard players remove @s cooldown 1