title @p[tag=hgp] actionbar "EMERALD SPLASH"
execute at @p[tag=hgp] run playsound minecraft:template8 master @p[tag=hgp] ~ ~ ~
item replace entity @p[tag=hgp] weapon.offhand with air
give @p[tag=hgp] minecraft:slime_ball[minecraft:custom_name="hieraphont green",minecraft:piercing_weapon={},custom_data={hg:true},enchantments={"template:stretchy_punch": 1 },minecraft:consumable={consume_seconds:0.05,has_consume_particles:false,sound:{sound_id:""}},minecraft:use_cooldown={seconds: 30}] 1
execute as @e[tag=hg] run function template:hieraphont_green/animations/emerald_splash/play
execute at @p[sort=nearest,limit=1,tag=hgp] run summon minecraft:armor_stand ^-0.5 ^ ^2 {ShowArms:1b,Invisible:1b,CustomName:'emerald_splash1',CustomNameVisible:0b,equipment:{mainhand:{id:"minecraft:emerald",count:1}}}
execute at @p[sort=nearest,limit=1,tag=hgp] run summon minecraft:armor_stand ^ ^ ^2 {ShowArms:1b,Invisible:1b,CustomName:'emerald_splash2',CustomNameVisible:0b,equipment:{mainhand:{id:"minecraft:emerald",count:1}}}
execute at @p[sort=nearest,limit=1,tag=hgp] run summon minecraft:armor_stand ^0.5 ^ ^2 {ShowArms:1b,Invisible:1b,CustomName:'emerald_splash3',CustomNameVisible:0b,equipment:{mainhand:{id:"minecraft:emerald",count:1}}}
execute at @p[sort=nearest,limit=1,tag=hgp] run tp @e[name=emerald_splash1,type=armor_stand,limit=1] ^-0.2 ^ ^1
execute at @p[sort=nearest,limit=1,tag=hgp] run tp @e[name=emerald_splash2,type=armor_stand,limit=1] ^ ^ ^1
execute at @p[sort=nearest,limit=1,tag=hgp] run tp @e[name=emerald_splash3,type=armor_stand,limit=1] ^0.2 ^ ^1
schedule function template:kill_armor_stands 10t
schedule function template:hieraphont_green/settle 6t