execute at @p[tag=dbmp] unless entity @e[tag=dbm] run playsound minecraft:template6 master @p[tag=dbmp] ~ ~ ~
execute at @p[tag=dbmp] unless entity @e[type=marker,tag=dbmpa] run summon marker ~ ~ ~ {Tags:["dbmpa"]}
execute at @p rotated ~ 0 run tp @e[type=marker,tag=dbmpa] ^-0.3 ^ ^-0.7
execute at @e[type=marker,tag=dbmpa] as @e[tag=dbm] facing entity @p[tag=dbmp] feet run tp @s ~ ~0.5 ~ ~ 0
execute at @p[tag=dbmp] unless entity @e[tag=dbm] run summon minecraft:text_display ^-1 ^2 ^ {Tags:["custom_font"],background:0,billboard:"center",text:'\uE000'}
execute at @p[tag=dbmp] unless entity @e[tag=dbm] 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=dbmp] unless entity @e[tag=dbm] run function template:dark_blue_moon/summon {args:{}}
execute as @a[tag=dbmp,predicate=template:is_sneaking] run function template:dark_blue_moon/barrage
execute as @e[tag=menacing3] at @s run tp @s ~ ~0.02 ~
execute at @p[tag=dbmp] if block ~1 ~1 ~1 minecraft:water run effect give @p[tag=dbmp] dolphins_grace 1 1 true
execute at @p[tag=dbmp] if block ~1 ~1 ~1 minecraft:water run effect give @p[tag=dbmp] water_breathing 1 1 true
execute as @e[tag=dbm] at @e[name=whirlpoola] if block ~1 ~1 ~1 minecraft:water run particle minecraft:splash ~ ~ ~ 1 1 1 0 50 force
execute as @e[tag=dbm] at @e[name=whirlpoola] if block ~1 ~1 ~1 minecraft:water run particle minecraft:spit ~ ~-1 ~ 2 2 2 0 40 normal
execute as @e[tag=dbm] at @e[name=whirlpoola] if block ~1 ~1 ~1 minecraft:water run effect give @e[distance=..7,tag=!dbmp] wither 1 1 true
execute as @e[tag=dbm] at @e[name=whirlpoola] if block ~1 ~1 ~1 minecraft:water run tp @e[distance=..3,tag=!dbmp] ~ ~ ~
schedule function template:dark_blue_moon/stand_display_end 10t